blob: d984bbedb8828a53af0a7c1f1eae04579f5ed8f0 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 labels:
5 app: sdc-fe
6 name: sdc-fe
7spec:
8 selector:
9 matchLabels:
10 app: sdc-fe
11 template:
12 metadata:
13 labels:
14 app: sdc-fe
15 name: sdc-fe
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 "--container-name",
27 "sdc-be"
28 ],
29 "command": [
30 "/root/ready.py"
31 ],
32 "env": [
33 {
34 "name": "NAMESPACE",
35 "valueFrom": {
36 "fieldRef": {
37 "apiVersion": "v1",
38 "fieldPath": "metadata.namespace"
39 }
40 }
41 }
42 ],
43 "image": "oomk8s/readiness-check:1.0.0",
44 "imagePullPolicy": "Always",
45 "name": "sdc-fe-readiness"
46 }
47 ]'
48 spec:
49 containers:
50 - name: sdc-fe
51 env:
52 - name: ENVNAME
53 value: AUTO
54 - name: HOST_IP
55 valueFrom:
56 fieldRef:
57 fieldPath: status.podIP
Munir Ahmade94258e2017-08-17 12:04:14 -040058 image: nexus3.onap.org:10001/openecomp/sdc-frontend:1.0-STAGING-latest
Mandeep Khindad6ea9872017-06-24 11:49:37 -040059 volumeMounts:
60 - mountPath: /usr/share/elasticsearch/data/
61 name: sdc-sdc-es-es
62 - mountPath: /root/chef-solo/environments/
63 name: sdc-environments
64 - mountPath: /var/lib/jetty/etc/keystore
65 name: sdc-jetty-keystore
66 - mountPath: /etc/localtime
67 name: sdc-localtime
68 - mountPath: /var/lib/jetty/logs
69 name: sdc-logs
70 - mountPath: /root/chef-solo/cookbooks/sdc-catalog-fe/recipes/FE_2_setup_configuration.rb
71 name: sdc-fe-config
72 ports:
73 - containerPort: 9443
74 - containerPort: 8181
75 readinessProbe:
76 tcpSocket:
77 port: 8181
78 initialDelaySeconds: 5
79 periodSeconds: 10
80 volumes:
81 - name: sdc-sdc-es-es
82 hostPath:
Munir Ahmade94258e2017-08-17 12:04:14 -040083 path: /dockerdata-nfs/onapdemo/sdc/sdc-es/ES
Mandeep Khindad6ea9872017-06-24 11:49:37 -040084 - name: sdc-environments
85 hostPath:
Munir Ahmade94258e2017-08-17 12:04:14 -040086 path: /dockerdata-nfs/onapdemo/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040087 - name: sdc-jetty-keystore
88 hostPath:
Munir Ahmade94258e2017-08-17 12:04:14 -040089 path: /dockerdata-nfs/onapdemo/sdc/jetty/keystore
Mandeep Khindad6ea9872017-06-24 11:49:37 -040090 - name: sdc-localtime
91 hostPath:
92 path: /etc/localtime
93 - name: sdc-logs
94 hostPath:
Munir Ahmade94258e2017-08-17 12:04:14 -040095 path: /dockerdata-nfs/onapdemo/sdc/logs
Mandeep Khindad6ea9872017-06-24 11:49:37 -040096 - name: sdc-fe-config
97 hostPath:
Munir Ahmade94258e2017-08-17 12:04:14 -040098 path: /dockerdata-nfs/onapdemo/sdc/sdc-fe/FE_2_setup_configuration.rb
Borislav Glozman5197e2e2017-07-24 10:45:28 +030099 imagePullSecrets:
100 - name: onap-docker-registry-key