blob: 0bd93f8fb6fd341ee312d4821c6d8f573ebd4c53 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: appc
kerenj6ca15a72017-08-23 12:05:23 +00005 namespace: {{ .Values.NS }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
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 ],
kerenj6ca15a72017-08-23 12:05:23 +000036 "image": "{{ .Values.image.readiness }}",
37 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040038 "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
49 value: /opt/openecomp/sdnc/data/properties
50 - name: APPC_CONFIG_DIR
51 value: /opt/openecomp/appc/data/properties
52 - name: DMAAP_TOPIC_ENV
53 value: SUCCESS
kerenj6ca15a72017-08-23 12:05:23 +000054 image: {{ .Values.image.appc }}
55 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040056 name: appc-controller-container
57 volumeMounts:
58 - mountPath: /opt/openecomp/appc/data/properties
59 name: appc-conf
60 - mountPath: /opt/openecomp/sdnc/data/properties
61 name: sdnc-conf
62 ports:
63 - containerPort: 8181
64 - containerPort: 1830
65 readinessProbe:
66 tcpSocket:
67 port: 8181
68 initialDelaySeconds: 5
69 periodSeconds: 10
70 volumes:
71 - name: appc-conf
72 hostPath:
kerenj6ca15a72017-08-23 12:05:23 +000073 path: /dockerdata-nfs/onap/appc/conf
Mandeep Khindad6ea9872017-06-24 11:49:37 -040074 - name: sdnc-conf
75 hostPath:
kerenj6ca15a72017-08-23 12:05:23 +000076 path: /dockerdata-nfs/onap/sdnc/conf
Borislav Glozman5197e2e2017-07-24 10:45:28 +030077 imagePullSecrets:
78 - name: onap-docker-registry-key