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