yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableSdncSdncPortal }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: sdnc-portal |
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-portal |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: sdnc-portal |
| 15 | name: sdnc-portal |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 16 | spec: |
vasundhra | d76102d | 2017-11-22 13:13:27 +0000 | [diff] [blame] | 17 | initContainers: |
| 18 | - command: |
| 19 | - /root/ready.py |
| 20 | args: |
| 21 | - --container-name |
| 22 | - sdnc-db-container |
| 23 | - --container-name |
| 24 | - sdnc-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: sdnc-portal-readiness |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 34 | containers: |
| 35 | - command: |
| 36 | - /bin/bash |
| 37 | - -c |
Mandeep Khinda | edc5941 | 2017-10-05 12:18:14 +0000 | [diff] [blame] | 38 | - cd /opt/onap/sdnc/admportal/shell && ./start_portal.sh |
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 |
Mandeep Khinda | edc5941 | 2017-10-05 12:18:14 +0000 | [diff] [blame] | 43 | value: /opt/onap/sdnc/data/properties |
kerenj | 9daad02 | 2017-08-23 13:35:43 +0000 | [diff] [blame] | 44 | image: {{ .Values.image.admportalSdnc }} |
| 45 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 46 | name: sdnc-portal-container |
| 47 | ports: |
| 48 | - containerPort: 8843 |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 49 | volumeMounts: |
| 50 | - name: localtime |
| 51 | mountPath: /etc/localtime |
| 52 | readOnly: true |
mayankg2703 | 6af54e6 | 2018-01-16 05:33:08 +0000 | [diff] [blame^] | 53 | - mountPath: /opt/onap/sdnc/data/properties/ |
| 54 | name: sdnc-conf |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 55 | readinessProbe: |
| 56 | tcpSocket: |
| 57 | port: 8843 |
| 58 | initialDelaySeconds: 5 |
| 59 | periodSeconds: 10 |
| 60 | restartPolicy: Always |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 61 | volumes: |
| 62 | - name: localtime |
| 63 | hostPath: |
| 64 | path: /etc/localtime |
mayankg2703 | 6af54e6 | 2018-01-16 05:33:08 +0000 | [diff] [blame^] | 65 | - name: sdnc-conf |
| 66 | configMap: |
| 67 | name: sdnc-conf-configmap |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 68 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 69 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
vasundhra | d76102d | 2017-11-22 13:13:27 +0000 | [diff] [blame] | 70 | #{{ end }} |