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