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