blob: b79f4ca17bb1032bc5bf6cf13a7abe4674d20dfb [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 labels:
5 app: sdc-kb
6 name: sdc-kb
7spec:
8 selector:
9 matchLabels:
10 app: sdc-kb
11 template:
12 metadata:
13 labels:
14 app: sdc-kb
15 name: sdc-kb
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 ],
25 "command": [
26 "/root/ready.py"
27 ],
28 "env": [
29 {
30 "name": "NAMESPACE",
31 "valueFrom": {
32 "fieldRef": {
33 "apiVersion": "v1",
34 "fieldPath": "metadata.namespace"
35 }
36 }
37 }
38 ],
39 "image": "oomk8s/readiness-check:1.0.0",
40 "imagePullPolicy": "Always",
41 "name": "sdc-kb-readiness"
42 }
43 ]'
44 spec:
45 containers:
46 - env:
47 - name: ENVNAME
48 value: AUTO
49 - name: ELASTICSEARCH_URL
50 value: http://sdc-es:9200
Munir Ahmade94258e2017-08-17 12:04:14 -040051 image: nexus3.onap.org:10001/openecomp/sdc-kibana:1.0-STAGING-latest
Mandeep Khindad6ea9872017-06-24 11:49:37 -040052 name: sdc-kb
53 volumeMounts:
54 - mountPath: /root/chef-solo/environments/
55 name: sdc-environments
56 - mountPath: /etc/localtime
57 name: sdc-localtime
58 - mountPath: /var/lib/jetty/logs
59 name: sdc-logs
60 ports:
61 - containerPort: 5601
62 readinessProbe:
63 tcpSocket:
64 port: 5601
65 initialDelaySeconds: 5
66 periodSeconds: 10
67 volumes:
68 - name: sdc-environments
69 hostPath:
Munir Ahmade94258e2017-08-17 12:04:14 -040070 path: /dockerdata-nfs/onapdemo/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040071 - name: sdc-localtime
72 hostPath:
73 path: /etc/localtime
74 - name: sdc-logs
75 hostPath:
Munir Ahmade94258e2017-08-17 12:04:14 -040076 path: /dockerdata-nfs/onapdemo/sdc/logs
Borislav Glozman5197e2e2017-07-24 10:45:28 +030077 imagePullSecrets:
78 - name: onap-docker-registry-key