blob: 56d62963c4419d4e0617413d4f84a92a9cd5d22b [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
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00007 namespace: "{{ .Values.nsPrefix }}-sdc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04008spec:
9 selector:
10 matchLabels:
11 app: sdc-fe
12 template:
13 metadata:
14 labels:
15 app: sdc-fe
16 name: sdc-fe
17 annotations:
18 pod.beta.kubernetes.io/init-containers: '[
19 {
20 "args": [
21 "--container-name",
22 "sdc-es",
23 "--container-name",
24 "sdc-cs",
25 "--container-name",
26 "sdc-kb",
27 "--container-name",
28 "sdc-be"
29 ],
30 "command": [
31 "/root/ready.py"
32 ],
33 "env": [
34 {
35 "name": "NAMESPACE",
36 "valueFrom": {
37 "fieldRef": {
38 "apiVersion": "v1",
39 "fieldPath": "metadata.namespace"
40 }
41 }
42 }
43 ],
kerenj80102842017-08-24 13:54:21 +000044 "image": "{{ .Values.image.readiness }}",
45 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040046 "name": "sdc-fe-readiness"
47 }
48 ]'
49 spec:
50 containers:
51 - name: sdc-fe
52 env:
53 - name: ENVNAME
54 value: AUTO
55 - name: HOST_IP
56 valueFrom:
57 fieldRef:
58 fieldPath: status.podIP
kerenj80102842017-08-24 13:54:21 +000059 image: {{ .Values.image.sdcFrontend }}
60 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040061 volumeMounts:
62 - mountPath: /usr/share/elasticsearch/data/
63 name: sdc-sdc-es-es
64 - mountPath: /root/chef-solo/environments/
65 name: sdc-environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040066 - mountPath: /etc/localtime
67 name: sdc-localtime
yuryn8b3bc5a2017-09-13 19:21:03 +030068 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040069 - mountPath: /var/lib/jetty/logs
70 name: sdc-logs
71 - mountPath: /root/chef-solo/cookbooks/sdc-catalog-fe/recipes/FE_2_setup_configuration.rb
72 name: sdc-fe-config
yurynd0707be2017-09-27 14:54:18 +030073 - mountPath: /tmp/logback.xml
74 name: sdc-logback
75 lifecycle:
76 postStart:
77 exec:
78 command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/var/lib/jetty/config/catalog-fe/; while [ ! -e $DST ]; do echo 'Waiting for $DST...' >> $LOG; sleep 5; done; sleep 2; /bin/cp -f $SRC $DST; echo 'Done' >> $LOG"]
Mandeep Khindad6ea9872017-06-24 11:49:37 -040079 ports:
80 - containerPort: 9443
81 - containerPort: 8181
82 readinessProbe:
83 tcpSocket:
84 port: 8181
85 initialDelaySeconds: 5
86 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030087 - image: {{ .Values.image.filebeat }}
88 imagePullPolicy: {{ .Values.pullPolicy }}
89 name: filebeat-onap
90 volumeMounts:
91 - mountPath: /usr/share/filebeat/filebeat.yml
92 name: filebeat-conf
93 - mountPath: /var/log/onap
94 name: sdc-logs-2
95 - mountPath: /usr/share/filebeat/data
96 name: sdc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040097 volumes:
yurynd0707be2017-09-27 14:54:18 +030098 - name: filebeat-conf
99 hostPath:
100 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
101 - name: sdc-logs-2
102 emptyDir: {}
103 - name: sdc-data-filebeat
104 emptyDir: {}
105 - name: sdc-logback
106 hostPath:
107 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/sdc/fe/logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400108 - name: sdc-sdc-es-es
109 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000110 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-es/ES
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400111 - name: sdc-environments
112 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000113 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400114 - name: sdc-localtime
115 hostPath:
116 path: /etc/localtime
117 - name: sdc-logs
118 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000119 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400120 - name: sdc-fe-config
121 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000122 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-fe/FE_2_setup_configuration.rb
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300123 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000124 - name: "{{ .Values.nsPrefix }}-docker-registry-key"