vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 15 | #{{ if not .Values.disableSdncSdncPortal }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 16 | apiVersion: extensions/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | name: sdnc-portal |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 20 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 21 | spec: |
vaibhav_16dec | b23999a | 2018-02-14 09:00:07 +0000 | [diff] [blame] | 22 | replicas: {{ .Values.portalReplicas }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 23 | selector: |
| 24 | matchLabels: |
| 25 | app: sdnc-portal |
| 26 | template: |
| 27 | metadata: |
| 28 | labels: |
| 29 | app: sdnc-portal |
| 30 | name: sdnc-portal |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 31 | spec: |
vasundhra | d76102d | 2017-11-22 13:13:27 +0000 | [diff] [blame] | 32 | initContainers: |
| 33 | - command: |
| 34 | - /root/ready.py |
| 35 | args: |
| 36 | - --container-name |
| 37 | - sdnc-db-container |
| 38 | - --container-name |
| 39 | - sdnc-controller-container |
| 40 | env: |
| 41 | - name: NAMESPACE |
| 42 | valueFrom: |
| 43 | fieldRef: |
| 44 | apiVersion: v1 |
| 45 | fieldPath: metadata.namespace |
| 46 | image: {{ .Values.image.readiness }} |
| 47 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 48 | name: sdnc-portal-readiness |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 49 | containers: |
| 50 | - command: |
| 51 | - /bin/bash |
| 52 | - -c |
Mandeep Khinda | edc5941 | 2017-10-05 12:18:14 +0000 | [diff] [blame] | 53 | - cd /opt/onap/sdnc/admportal/shell && ./start_portal.sh |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 54 | env: |
| 55 | - name: MYSQL_ROOT_PASSWORD |
| 56 | value: openECOMP1.0 |
| 57 | - name: SDNC_CONFIG_DIR |
Mandeep Khinda | edc5941 | 2017-10-05 12:18:14 +0000 | [diff] [blame] | 58 | value: /opt/onap/sdnc/data/properties |
kerenj | 9daad02 | 2017-08-23 13:35:43 +0000 | [diff] [blame] | 59 | image: {{ .Values.image.admportalSdnc }} |
| 60 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 61 | name: sdnc-portal-container |
| 62 | ports: |
| 63 | - containerPort: 8843 |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 64 | volumeMounts: |
| 65 | - name: localtime |
| 66 | mountPath: /etc/localtime |
| 67 | readOnly: true |
mayankg2703 | 6af54e6 | 2018-01-16 05:33:08 +0000 | [diff] [blame] | 68 | - mountPath: /opt/onap/sdnc/data/properties/ |
| 69 | name: sdnc-conf |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 70 | readinessProbe: |
| 71 | tcpSocket: |
| 72 | port: 8843 |
| 73 | initialDelaySeconds: 5 |
| 74 | periodSeconds: 10 |
| 75 | restartPolicy: Always |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 76 | volumes: |
| 77 | - name: localtime |
| 78 | hostPath: |
| 79 | path: /etc/localtime |
mayankg2703 | 6af54e6 | 2018-01-16 05:33:08 +0000 | [diff] [blame] | 80 | - name: sdnc-conf |
| 81 | configMap: |
| 82 | name: sdnc-conf-configmap |
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" |
vasundhra | d76102d | 2017-11-22 13:13:27 +0000 | [diff] [blame] | 85 | #{{ end }} |