blob: f23db779ab0d2a58a3a900289d272763dc4ce68c [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 labels:
5 app: sdc-be
6 name: sdc-be
7spec:
8 selector:
9 matchLabels:
10 app: sdc-be
11 template:
12 metadata:
13 labels:
14 app: sdc-be
15 name: sdc-be
16 annotations:
17 pod.beta.kubernetes.io/init-containers: '[
18 {
19 "args": [
20 "--container-name",
21 "sdc-es",
22 "--container-name",
23 "sdc-cs",
24 "--container-name",
25 "sdc-kb"
26 ],
27 "command": [
28 "/root/ready.py"
29 ],
30 "env": [
31 {
32 "name": "NAMESPACE",
33 "valueFrom": {
34 "fieldRef": {
35 "apiVersion": "v1",
36 "fieldPath": "metadata.namespace"
37 }
38 }
39 }
40 ],
41 "image": "oomk8s/readiness-check:1.0.0",
42 "imagePullPolicy": "Always",
43 "name": "sdc-be-readiness"
44 },
45 {
46 "args": [
47 "--container-name",
48 "dmaap"
49 ],
50 "command": [
51 "/root/ready.py"
52 ],
53 "env": [
54 {
55 "name": "NAMESPACE",
56 "value": "onap-message-router"
57 }
58 ],
59 "image": "oomk8s/readiness-check:1.0.0",
60 "imagePullPolicy": "Always",
61 "name": "sdc-dmaap-readiness"
62 }
63 ]'
64 spec:
65 containers:
66 - env:
67 - name: ENVNAME
68 value: AUTO
69 - name: HOST_IP
70 valueFrom:
71 fieldRef:
72 fieldPath: status.podIP
73 image: nexus3.onap.org:10001/openecomp/sdc-backend:1.0-STAGING-latest
74 name: sdc-be
75 volumeMounts:
76 - mountPath: /usr/share/elasticsearch/data/
77 name: sdc-sdc-es-es
78 - mountPath: /root/chef-solo/environments/
79 name: sdc-environments
80 - mountPath: /var/lib/jetty/etc/keystore
81 name: sdc-jetty-keystore
82 - mountPath: /etc/localtime
83 name: sdc-localtime
84 - mountPath: /var/lib/jetty/logs
85 name: sdc-logs
86 ports:
87 - containerPort: 8443
88 - containerPort: 8080
89 readinessProbe:
90 tcpSocket:
91 port: 8443
92 initialDelaySeconds: 5
93 periodSeconds: 10
94 volumes:
95 - name: sdc-sdc-es-es
96 hostPath:
97 path: /dockerdata-nfs/onapdemo/sdc/sdc-es/ES
98 - name: sdc-environments
99 hostPath:
100 path: /dockerdata-nfs/onapdemo/sdc/environments
101 - name: sdc-jetty-keystore
102 hostPath:
103 path: /dockerdata-nfs/onapdemo/sdc/jetty/keystore
104 - name: sdc-localtime
105 hostPath:
106 path: /etc/localtime
107 - name: sdc-logs
108 hostPath:
109 path: /dockerdata-nfs/onapdemo/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300110 imagePullSecrets:
111 - name: onap-docker-registry-key