blob: d81e567711e11906bb6aa55f16a9db6ed7d8cfb0 [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
72 - mountPath: /root/chef-solo/cookbooks/sdc-catalog-fe/recipes/FE_2_setup_configuration.rb
73 name: sdc-fe-config
yurynd0707be2017-09-27 14:54:18 +030074 - mountPath: /tmp/logback.xml
75 name: sdc-logback
76 lifecycle:
77 postStart:
78 exec:
79 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 -040080 ports:
81 - containerPort: 9443
82 - containerPort: 8181
83 readinessProbe:
84 tcpSocket:
85 port: 8181
86 initialDelaySeconds: 5
87 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030088 - image: {{ .Values.image.filebeat }}
89 imagePullPolicy: {{ .Values.pullPolicy }}
90 name: filebeat-onap
91 volumeMounts:
92 - mountPath: /usr/share/filebeat/filebeat.yml
93 name: filebeat-conf
94 - mountPath: /var/log/onap
95 name: sdc-logs-2
96 - mountPath: /usr/share/filebeat/data
97 name: sdc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040098 volumes:
yurynd0707be2017-09-27 14:54:18 +030099 - name: filebeat-conf
100 hostPath:
101 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
102 - name: sdc-logs-2
103 emptyDir: {}
104 - name: sdc-data-filebeat
105 emptyDir: {}
106 - name: sdc-logback
107 hostPath:
108 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/sdc/fe/logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400109 - name: sdc-sdc-es-es
110 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000111 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-es/ES
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400112 - name: sdc-environments
113 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000114 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400115 - name: sdc-localtime
116 hostPath:
117 path: /etc/localtime
118 - name: sdc-logs
119 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000120 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400121 - name: sdc-fe-config
122 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000123 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-fe/FE_2_setup_configuration.rb
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300124 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000125 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +0300126#{{ end }}