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 |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}" |
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 |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 59 | - name: dgbuilder-conf |
| 60 | mountPath: /opt/onap/sdnc/dgbuilder/releases/sdnc1.0/conf/svclogic.properties |
| 61 | subPath: svclogic.properties |
| 62 | - name: dgbuilder-conf |
| 63 | mountPath: /opt/onap/sdnc/dgbuilder/svclogic/svclogic.properties |
| 64 | subPath: svclogic.properties |
| 65 | - name: dgbuilder-scripts |
| 66 | mountPath: /opt/onap/sdnc/dgbuilder/createReleaseDir.sh |
| 67 | subPath: createReleaseDir.sh |
| 68 | - name: dgbuilder-scripts |
| 69 | mountPath: /opt/onap/sdnc/dgbuilder/releases/sdnc1.0/customSettings.js |
| 70 | subPath: customSettings.js |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 71 | volumes: |
| 72 | - name: localtime |
| 73 | hostPath: |
| 74 | path: /etc/localtime |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 75 | - name: dgbuilder-conf |
| 76 | configMap: |
| 77 | name: appc-dgbuilder-conf-configmap |
| 78 | - name: dgbuilder-scripts |
| 79 | configMap: |
| 80 | name: appc-dgbuilder-scripts-configmap |
| 81 | defaultMode: 0755 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 82 | restartPolicy: Always |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 83 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 84 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
kiranya | fd58313 | 2017-11-22 12:34:34 +0000 | [diff] [blame] | 85 | #{{ end }} |