Containers time zone sync
[oom.git] / kubernetes / appc / templates / appc-deployment.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   name: appc
5   namespace: "{{ .Values.nsPrefix }}-appc"
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               ],
36               "image": "{{ .Values.image.readiness }}",
37               "imagePullPolicy": "{{ .Values.pullPolicy }}",
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
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
54         image: {{ .Values.image.appc }}
55         imagePullPolicy: {{ .Values.pullPolicy }}
56         name: appc-controller-container
57         volumeMounts:
58         - mountPath: /etc/localtime
59           name: localtime
60           readOnly: true
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
65         - mountPath: /opt/openecomp/sdnc/data/properties/aaiclient.properties
66           name: sdnc-aaiclient-properties
67         - mountPath: /opt/openecomp/sdnc/data/properties/admportal.json
68           name: sdnc-admportal-json
69         ports:
70         - containerPort: 8181
71         - containerPort: 1830
72         readinessProbe:
73           tcpSocket:
74             port: 8181
75           initialDelaySeconds: 5
76           periodSeconds: 10
77       volumes:
78         - name: localtime
79           hostPath:
80             path: /etc/localtime
81         - name: appc-properties
82           hostPath:
83             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/appc.properties
84         - name: appc-aaiclient-properties
85           hostPath:
86             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/aaiclient.properties
87         - name: sdnc-aaiclient-properties
88           hostPath:
89             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties
90         - name: sdnc-admportal-json
91           hostPath:
92             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/admportal.json
93       imagePullSecrets:
94       - name: "{{ .Values.nsPrefix }}-docker-registry-key"