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