blob: 4648c56c6f3a5caf426feb7008b407ac445cd73a [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableSdcSdcFe }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: sdc-fe
7 name: sdc-fe
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00008 namespace: "{{ .Values.nsPrefix }}-sdc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009spec:
10 selector:
11 matchLabels:
12 app: sdc-fe
13 template:
14 metadata:
15 labels:
16 app: sdc-fe
17 name: sdc-fe
18 annotations:
19 pod.beta.kubernetes.io/init-containers: '[
20 {
21 "args": [
22 "--container-name",
23 "sdc-es",
24 "--container-name",
25 "sdc-cs",
26 "--container-name",
27 "sdc-kb",
28 "--container-name",
29 "sdc-be"
30 ],
31 "command": [
32 "/root/ready.py"
33 ],
34 "env": [
35 {
36 "name": "NAMESPACE",
37 "valueFrom": {
38 "fieldRef": {
39 "apiVersion": "v1",
40 "fieldPath": "metadata.namespace"
41 }
42 }
43 }
44 ],
kerenj80102842017-08-24 13:54:21 +000045 "image": "{{ .Values.image.readiness }}",
46 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040047 "name": "sdc-fe-readiness"
48 }
49 ]'
50 spec:
51 containers:
52 - name: sdc-fe
53 env:
54 - name: ENVNAME
55 value: AUTO
56 - name: HOST_IP
57 valueFrom:
58 fieldRef:
59 fieldPath: status.podIP
kerenj80102842017-08-24 13:54:21 +000060 image: {{ .Values.image.sdcFrontend }}
61 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040062 volumeMounts:
63 - mountPath: /usr/share/elasticsearch/data/
64 name: sdc-sdc-es-es
65 - mountPath: /root/chef-solo/environments/
66 name: sdc-environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040067 - mountPath: /etc/localtime
68 name: sdc-localtime
yuryn8b3bc5a2017-09-13 19:21:03 +030069 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040070 - mountPath: /var/lib/jetty/logs
71 name: sdc-logs
BorislavGbfd703b2017-11-06 22:37:05 +020072 - mountPath: /var/log/onap
73 name: sdc-logs-2
Mandeep Khindad6ea9872017-06-24 11:49:37 -040074 - mountPath: /root/chef-solo/cookbooks/sdc-catalog-fe/recipes/FE_2_setup_configuration.rb
75 name: sdc-fe-config
yurynd0707be2017-09-27 14:54:18 +030076 - mountPath: /tmp/logback.xml
77 name: sdc-logback
78 lifecycle:
79 postStart:
80 exec:
81 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 -040082 ports:
83 - containerPort: 9443
84 - containerPort: 8181
85 readinessProbe:
86 tcpSocket:
87 port: 8181
88 initialDelaySeconds: 5
89 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030090 - image: {{ .Values.image.filebeat }}
91 imagePullPolicy: {{ .Values.pullPolicy }}
92 name: filebeat-onap
93 volumeMounts:
94 - mountPath: /usr/share/filebeat/filebeat.yml
95 name: filebeat-conf
96 - mountPath: /var/log/onap
97 name: sdc-logs-2
98 - mountPath: /usr/share/filebeat/data
99 name: sdc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400100 volumes:
yurynd0707be2017-09-27 14:54:18 +0300101 - name: filebeat-conf
102 hostPath:
103 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
104 - name: sdc-logs-2
105 emptyDir: {}
106 - name: sdc-data-filebeat
107 emptyDir: {}
108 - name: sdc-logback
109 hostPath:
110 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/sdc/fe/logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400111 - name: sdc-sdc-es-es
112 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000113 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-es/ES
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400114 - name: sdc-environments
115 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000116 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400117 - name: sdc-localtime
118 hostPath:
119 path: /etc/localtime
120 - name: sdc-logs
121 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000122 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400123 - name: sdc-fe-config
124 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000125 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-fe/FE_2_setup_configuration.rb
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300126 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000127 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavGbfd703b2017-11-06 22:37:05 +0200128#{{ end }}