Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: sdnc-dgbuilder |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 5 | namespace: "{{ .Values.nsPrefix }}-sdnc" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 6 | spec: |
| 7 | selector: |
| 8 | matchLabels: |
| 9 | app: sdnc-dgbuilder |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: sdnc-dgbuilder |
| 14 | name: sdnc-dgbuilder |
| 15 | annotations: |
| 16 | pod.beta.kubernetes.io/init-containers: '[ |
| 17 | { |
| 18 | "args": [ |
| 19 | "--container-name", |
| 20 | "sdnc-db-container", |
| 21 | "--container-name", |
| 22 | "sdnc-controller-container" |
| 23 | ], |
| 24 | "command": [ |
| 25 | "/root/ready.py" |
| 26 | ], |
| 27 | "env": [ |
| 28 | { |
| 29 | "name": "NAMESPACE", |
| 30 | "valueFrom": { |
| 31 | "fieldRef": { |
| 32 | "apiVersion": "v1", |
| 33 | "fieldPath": "metadata.namespace" |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | ], |
kerenj | 9daad02 | 2017-08-23 13:35:43 +0000 | [diff] [blame] | 38 | "image": "{{ .Values.image.readiness }}", |
| 39 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 40 | "name": "sdnc-dgbuilder-readiness" |
| 41 | } |
| 42 | ]' |
| 43 | spec: |
| 44 | containers: |
| 45 | - command: |
| 46 | - /bin/bash |
| 47 | - -c |
Mandeep Khinda | edc5941 | 2017-10-05 12:18:14 +0000 | [diff] [blame^] | 48 | - cd /opt/onap/sdnc/dgbuilder/ && ./start.sh sdnc1.0 && wait |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 49 | env: |
| 50 | - name: MYSQL_ROOT_PASSWORD |
| 51 | value: openECOMP1.0 |
| 52 | - name: SDNC_CONFIG_DIR |
Mandeep Khinda | edc5941 | 2017-10-05 12:18:14 +0000 | [diff] [blame^] | 53 | value: /opt/onap/sdnc/data/properties |
kerenj | 9daad02 | 2017-08-23 13:35:43 +0000 | [diff] [blame] | 54 | image: {{ .Values.image.dgbuilderSdnc }} |
| 55 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 56 | name: sdnc-dgbuilder-container |
| 57 | ports: |
| 58 | - containerPort: 3100 |
| 59 | readinessProbe: |
| 60 | tcpSocket: |
| 61 | port: 3100 |
| 62 | initialDelaySeconds: 5 |
| 63 | periodSeconds: 10 |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 64 | volumeMounts: |
| 65 | - name: localtime |
| 66 | mountPath: /etc/localtime |
| 67 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 68 | restartPolicy: Always |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 69 | volumes: |
| 70 | - name: localtime |
| 71 | hostPath: |
| 72 | path: /etc/localtime |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 73 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 74 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |