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