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