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