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