appc config seg
[oom.git] / kubernetes / appc / templates / appc-deployment.yaml
1 #{{ if not .Values.disableAppcAppc }}
2 apiVersion: extensions/v1beta1
3 kind: Deployment
4 metadata:
5   name: appc
6   namespace: "{{ .Values.nsPrefix }}-appc"
7 spec:
8   selector:
9     matchLabels:
10       app: appc
11   template:
12     metadata:
13       labels:
14         app: appc
15       name: appc
16     spec:
17       initContainers:
18       - command:
19         - /root/ready.py
20         args:
21         - --container-name
22         - appc-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: appc-readiness
32       containers:
33       - command:
34         - /opt/openecomp/appc/bin/startODL.sh
35         env:
36         - name: MYSQL_ROOT_PASSWORD
37           value: openECOMP1.0
38         - name: SDNC_CONFIG_DIR
39           value: /opt/openecomp/appc/data/properties
40         - name: APPC_CONFIG_DIR
41           value: /opt/openecomp/appc/data/properties
42         - name: DMAAP_TOPIC_ENV
43           value: SUCCESS
44         image: {{ .Values.image.appc }}
45         imagePullPolicy: {{ .Values.pullPolicy }}
46         name: appc-controller-container
47         volumeMounts:
48         - mountPath: /etc/localtime
49           name: localtime
50           readOnly: true
51         - mountPath: /opt/openecomp/appc/data/properties/appc.properties
52           name: appc-conf
53           subPath: appc.properties
54         - mountPath: /opt/openecomp/appc/data/properties/aaiclient.properties
55           name: appc-conf
56           subPath: aaiclient.properties
57         - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties
58           name: appc-conf
59           subPath: aaiclient.properties
60         - mountPath: /var/log/onap
61           name: appc-logs
62         - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
63           name: appc-log-config
64           subPath: org.ops4j.pax.logging.cfg
65         ports:
66         - containerPort: 8181
67         - containerPort: 1830
68         readinessProbe:
69           tcpSocket:
70             port: 8181
71           initialDelaySeconds: 5
72           periodSeconds: 10
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           subPath: filebeat.yml
80         - mountPath: /var/log/onap
81           name: appc-logs
82         - mountPath: /usr/share/filebeat/data
83           name: appc-data-filebeat
84       volumes:
85         - name: localtime
86           hostPath:
87             path: /etc/localtime
88         - name: filebeat-conf
89           configMap:
90             name: appc-filebeat-configmap
91         - name: appc-log-config
92           configMap:
93             name: appc-logging-cfg-configmap
94         - name: appc-logs
95           emptyDir: {}
96         - name: appc-data-filebeat
97           emptyDir: {}
98         - name: appc-conf
99           configMap:
100             name: appc-conf-configmap
101       imagePullSecrets:
102       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
103 #{{ end }}