Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: mso |
| 5 | spec: |
| 6 | replicas: 1 |
| 7 | selector: |
| 8 | matchLabels: |
| 9 | app: mso |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: mso |
| 14 | name: mso |
| 15 | annotations: |
| 16 | pod.beta.kubernetes.io/init-containers: '[ |
| 17 | { |
| 18 | "args": [ |
| 19 | "--container-name", |
| 20 | "mariadb" |
| 21 | ], |
| 22 | "command": [ |
| 23 | "/root/ready.py" |
| 24 | ], |
| 25 | "env": [ |
| 26 | { |
| 27 | "name": "NAMESPACE", |
| 28 | "valueFrom": { |
| 29 | "fieldRef": { |
| 30 | "apiVersion": "v1", |
| 31 | "fieldPath": "metadata.namespace" |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | ], |
| 36 | "image": "oomk8s/readiness-check:1.0.0", |
| 37 | "imagePullPolicy": "Always", |
| 38 | "name": "mso-readiness" |
| 39 | } |
| 40 | ]' |
| 41 | spec: |
| 42 | containers: |
| 43 | - command: |
| 44 | - /docker-files/scripts/start-jboss-server.sh |
| 45 | image: nexus3.onap.org:10001/openecomp/mso:1.0-STAGING-latest |
| 46 | name: mso |
| 47 | volumeMounts: |
| 48 | - mountPath: /shared |
| 49 | name: mso |
| 50 | - mountPath: /docker-files |
| 51 | name: mso-docker-files |
| 52 | env: |
| 53 | - name: JBOSS_DEBUG |
| 54 | value: "false" |
| 55 | ports: |
| 56 | - containerPort: 3904 |
| 57 | - containerPort: 3905 |
| 58 | - containerPort: 8080 |
| 59 | - containerPort: 9990 |
| 60 | - containerPort: 8787 |
| 61 | readinessProbe: |
| 62 | tcpSocket: |
| 63 | port: 8080 |
| 64 | initialDelaySeconds: 5 |
| 65 | periodSeconds: 10 |
| 66 | volumes: |
| 67 | - name: mso |
| 68 | hostPath: |
| 69 | path: /dockerdata-nfs/onapdemo/mso/mso |
| 70 | - name: mso-docker-files |
| 71 | hostPath: |
| 72 | path: /dockerdata-nfs/onapdemo/mso/docker-files |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame^] | 73 | imagePullSecrets: |
| 74 | - name: onap-docker-registry-key |