Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: mso |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 5 | namespace: "{{ .Values.nsPrefix }}-mso" |
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: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame^] | 50 | - mountPath: /etc/localtime |
| 51 | name: localtime |
| 52 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 53 | - mountPath: /shared |
| 54 | name: mso |
| 55 | - mountPath: /docker-files |
| 56 | name: mso-docker-files |
| 57 | env: |
| 58 | - name: JBOSS_DEBUG |
| 59 | value: "false" |
| 60 | ports: |
| 61 | - containerPort: 3904 |
| 62 | - containerPort: 3905 |
| 63 | - containerPort: 8080 |
| 64 | - containerPort: 9990 |
| 65 | - containerPort: 8787 |
| 66 | readinessProbe: |
| 67 | tcpSocket: |
| 68 | port: 8080 |
| 69 | initialDelaySeconds: 5 |
| 70 | periodSeconds: 10 |
| 71 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame^] | 72 | - name: localtime |
| 73 | hostPath: |
| 74 | path: /etc/localtime |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 75 | - name: mso |
| 76 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 77 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/mso |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 78 | - name: mso-docker-files |
| 79 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 80 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/mso/docker-files |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 81 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 82 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |