blob: 081bae459da7e5c66dd98047cd59fd5be95191df [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 labels:
5 app: sdc-cs
6 name: sdc-cs
7spec:
8 selector:
9 matchLabels:
10 app: sdc-cs
11 template:
12 metadata:
13 labels:
14 app: sdc-cs
15 name: sdc-cs
16 annotations:
17 pod.beta.kubernetes.io/init-containers: '[
18 {
19 "args": [
20 "--container-name",
21 "sdc-es"
22 ],
23 "command": [
24 "/root/ready.py"
25 ],
26 "env": [
27 {
28 "name": "NAMESPACE",
29 "valueFrom": {
30 "fieldRef": {
31 "apiVersion": "v1",
32 "fieldPath": "metadata.namespace"
33 }
34 }
35 }
36 ],
37 "image": "oomk8s/readiness-check:1.0.0",
38 "imagePullPolicy": "Always",
39 "name": "sdc-cs-readiness"
40 }
41 ]'
42 spec:
43 containers:
44 - env:
45 - name: ENVNAME
46 value: AUTO
47 - name: HOST_IP
48 valueFrom:
49 fieldRef:
50 fieldPath: status.podIP
51 - name: ES_HEAP_SIZE
52 value: "1024M"
Dusan Rozman13c79072017-08-21 14:11:40 -040053 image: nexus3.onap.org:10001/openecomp/sdc-cassandra:1.1-STAGING-latest
Mandeep Khindad6ea9872017-06-24 11:49:37 -040054 name: sdc-cs
55 volumeMounts:
56 - mountPath: /var/lib/cassandra/
57 name: sdc-sdc-cs-cs
58 - mountPath: /root/chef-solo/environments/
59 name: sdc-environments
60 - mountPath: /etc/localtime
61 name: sdc-localtime
62 - mountPath: /var/lib/jetty/logs
63 name: sdc-logs
64 ports:
65 - containerPort: 9042
66 - containerPort: 9160
67 readinessProbe:
68 tcpSocket:
69 port: 9160
70 initialDelaySeconds: 5
71 periodSeconds: 10
72 volumes:
73 - name: sdc-sdc-cs-cs
74 hostPath:
Munir Ahmade94258e2017-08-17 12:04:14 -040075 path: /dockerdata-nfs/onapdemo/sdc/sdc-cs/CS
Mandeep Khindad6ea9872017-06-24 11:49:37 -040076 - name: sdc-environments
77 hostPath:
Munir Ahmade94258e2017-08-17 12:04:14 -040078 path: /dockerdata-nfs/onapdemo/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040079 - name: sdc-localtime
80 hostPath:
81 path: /etc/localtime
82 - name: sdc-logs
83 hostPath:
Munir Ahmade94258e2017-08-17 12:04:14 -040084 path: /dockerdata-nfs/onapdemo/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030085 imagePullSecrets:
86 - name: onap-docker-registry-key