yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableSdncSdnc }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: sdnc |
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 |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: sdnc |
| 15 | name: sdnc |
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 | env: |
| 24 | - name: NAMESPACE |
| 25 | valueFrom: |
| 26 | fieldRef: |
| 27 | apiVersion: v1 |
| 28 | fieldPath: metadata.namespace |
| 29 | image: {{ .Values.image.readiness }} |
| 30 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 31 | name: sdnc-readiness |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 32 | containers: |
| 33 | - command: |
Mandeep Khinda | edc5941 | 2017-10-05 12:18:14 +0000 | [diff] [blame] | 34 | - /opt/onap/sdnc/bin/startODL.sh |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 35 | env: |
| 36 | - name: MYSQL_ROOT_PASSWORD |
| 37 | value: openECOMP1.0 |
| 38 | - name: SDNC_CONFIG_DIR |
Mandeep Khinda | edc5941 | 2017-10-05 12:18:14 +0000 | [diff] [blame] | 39 | value: /opt/onap/sdnc/data/properties |
kerenj | 9daad02 | 2017-08-23 13:35:43 +0000 | [diff] [blame] | 40 | image: {{ .Values.image.sdnc }} |
| 41 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 42 | name: sdnc-controller-container |
| 43 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 44 | - mountPath: /etc/localtime |
| 45 | name: localtime |
| 46 | readOnly: true |
Mandeep Khinda | edc5941 | 2017-10-05 12:18:14 +0000 | [diff] [blame] | 47 | - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 48 | name: sdnc-aaiclient-properties |
Mandeep Khinda | edc5941 | 2017-10-05 12:18:14 +0000 | [diff] [blame] | 49 | - mountPath: /opt/onap/sdnc/data/properties/admportal.json |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 50 | name: sdnc-admportal-json |
| 51 | - mountPath: /var/log/onap |
| 52 | name: sdnc-logs |
| 53 | - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg |
| 54 | name: sdnc-log-config |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 55 | ports: |
| 56 | - containerPort: 8181 |
Mandeep Khinda | edc5941 | 2017-10-05 12:18:14 +0000 | [diff] [blame] | 57 | - containerPort: 8101 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 58 | readinessProbe: |
| 59 | tcpSocket: |
| 60 | port: 8181 |
| 61 | initialDelaySeconds: 5 |
| 62 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 63 | - image: {{ .Values.image.filebeat }} |
| 64 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 65 | name: filebeat-onap |
| 66 | volumeMounts: |
| 67 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 68 | name: filebeat-conf |
| 69 | - mountPath: /var/log/onap |
| 70 | name: sdnc-logs |
| 71 | - mountPath: /usr/share/filebeat/data |
| 72 | name: sdnc-data-filebeat |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 73 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 74 | - name: localtime |
| 75 | hostPath: |
| 76 | path: /etc/localtime |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 77 | - name: filebeat-conf |
| 78 | hostPath: |
| 79 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml |
| 80 | - name: sdnc-log-config |
| 81 | hostPath: |
| 82 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/sdnc/org.ops4j.pax.logging.cfg |
| 83 | - name: sdnc-logs |
| 84 | emptyDir: {} |
| 85 | - name: sdnc-data-filebeat |
| 86 | emptyDir: {} |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 87 | - name: sdnc-aaiclient-properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 88 | hostPath: |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 89 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties |
| 90 | - name: sdnc-admportal-json |
| 91 | hostPath: |
| 92 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/admportal.json |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 93 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 94 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
vasundhra | d76102d | 2017-11-22 13:13:27 +0000 | [diff] [blame^] | 95 | #{{ end }} |