yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame^] | 1 | #{{ if not .Values.disableAppcAppc }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: appc |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}-appc" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: appc |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: appc |
| 15 | name: appc |
| 16 | annotations: |
| 17 | pod.beta.kubernetes.io/init-containers: '[ |
| 18 | { |
| 19 | "args": [ |
| 20 | "--container-name", |
| 21 | "appc-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 | 6ca15a7 | 2017-08-23 12:05:23 +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": "appc-readiness" |
| 40 | } |
| 41 | ]' |
| 42 | spec: |
| 43 | containers: |
| 44 | - command: |
| 45 | - /opt/openecomp/appc/bin/startODL.sh |
| 46 | env: |
| 47 | - name: MYSQL_ROOT_PASSWORD |
| 48 | value: openECOMP1.0 |
| 49 | - name: SDNC_CONFIG_DIR |
Alexis de Talhouƫt | 91c7710 | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 50 | value: /opt/openecomp/appc/data/properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 51 | - name: APPC_CONFIG_DIR |
| 52 | value: /opt/openecomp/appc/data/properties |
| 53 | - name: DMAAP_TOPIC_ENV |
| 54 | value: SUCCESS |
kerenj | 6ca15a7 | 2017-08-23 12:05:23 +0000 | [diff] [blame] | 55 | image: {{ .Values.image.appc }} |
| 56 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 57 | name: appc-controller-container |
| 58 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 59 | - mountPath: /etc/localtime |
| 60 | name: localtime |
| 61 | readOnly: true |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 62 | - mountPath: /opt/openecomp/appc/data/properties/appc.properties |
| 63 | name: appc-properties |
| 64 | - mountPath: /opt/openecomp/appc/data/properties/aaiclient.properties |
| 65 | name: appc-aaiclient-properties |
Mandeep Khinda | 9743d84 | 2017-10-05 22:08:08 +0000 | [diff] [blame] | 66 | - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 67 | name: sdnc-aaiclient-properties |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 68 | - mountPath: /var/log/onap |
| 69 | name: appc-logs |
| 70 | - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg |
| 71 | name: appc-log-config |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 72 | ports: |
| 73 | - containerPort: 8181 |
| 74 | - containerPort: 1830 |
| 75 | readinessProbe: |
| 76 | tcpSocket: |
| 77 | port: 8181 |
| 78 | initialDelaySeconds: 5 |
| 79 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 80 | - image: {{ .Values.image.filebeat }} |
| 81 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 82 | name: filebeat-onap |
| 83 | volumeMounts: |
| 84 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 85 | name: filebeat-conf |
| 86 | - mountPath: /var/log/onap |
| 87 | name: appc-logs |
| 88 | - mountPath: /usr/share/filebeat/data |
| 89 | name: appc-data-filebeat |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 90 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 91 | - name: localtime |
| 92 | hostPath: |
| 93 | path: /etc/localtime |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 94 | - name: filebeat-conf |
| 95 | hostPath: |
| 96 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml |
| 97 | - name: appc-log-config |
| 98 | hostPath: |
| 99 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/appc/org.ops4j.pax.logging.cfg |
| 100 | - name: appc-logs |
| 101 | emptyDir: {} |
| 102 | - name: appc-data-filebeat |
| 103 | emptyDir: {} |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 104 | - name: appc-properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 105 | hostPath: |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 106 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/appc.properties |
| 107 | - name: appc-aaiclient-properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 108 | hostPath: |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 109 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/aaiclient.properties |
| 110 | - name: sdnc-aaiclient-properties |
| 111 | hostPath: |
| 112 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 113 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 114 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame^] | 115 | #{{ end }} |