blob: bc1777f3ab80f3c798934cfdd40932c28fb28c11 [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
Mandeep Khindad6ea9872017-06-24 11:49:37 -040018 spec:
vasundhra98960b62017-11-22 12:43:29 +000019 initContainers:
20 - command:
21 - /root/ready.py
22 args:
23 - --container-name
24 - sdc-es
25 - --container-name
26 - sdc-cs
27 - --container-name
28 - sdc-kb
29 - --container-name
30 - sdc-be
31 env:
32 - name: NAMESPACE
33 valueFrom:
34 fieldRef:
35 apiVersion: v1
36 fieldPath: metadata.namespace
37 image: {{ .Values.image.readiness }}
38 imagePullPolicy: {{ .Values.pullPolicy }}
39 name: sdc-fe-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040040 containers:
41 - name: sdc-fe
42 env:
43 - name: ENVNAME
44 value: AUTO
45 - name: HOST_IP
46 valueFrom:
47 fieldRef:
48 fieldPath: status.podIP
kerenj80102842017-08-24 13:54:21 +000049 image: {{ .Values.image.sdcFrontend }}
50 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040051 volumeMounts:
52 - mountPath: /usr/share/elasticsearch/data/
53 name: sdc-sdc-es-es
54 - mountPath: /root/chef-solo/environments/
55 name: sdc-environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -040056 - mountPath: /etc/localtime
57 name: sdc-localtime
yuryn8b3bc5a2017-09-13 19:21:03 +030058 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040059 - mountPath: /var/lib/jetty/logs
60 name: sdc-logs
BorislavGbfd703b2017-11-06 22:37:05 +020061 - mountPath: /var/log/onap
62 name: sdc-logs-2
Mandeep Khindad6ea9872017-06-24 11:49:37 -040063 - mountPath: /root/chef-solo/cookbooks/sdc-catalog-fe/recipes/FE_2_setup_configuration.rb
64 name: sdc-fe-config
yurynd0707be2017-09-27 14:54:18 +030065 - mountPath: /tmp/logback.xml
66 name: sdc-logback
67 lifecycle:
68 postStart:
69 exec:
70 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 -040071 ports:
72 - containerPort: 9443
73 - containerPort: 8181
74 readinessProbe:
75 tcpSocket:
76 port: 8181
77 initialDelaySeconds: 5
78 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030079 - image: {{ .Values.image.filebeat }}
80 imagePullPolicy: {{ .Values.pullPolicy }}
81 name: filebeat-onap
82 volumeMounts:
83 - mountPath: /usr/share/filebeat/filebeat.yml
84 name: filebeat-conf
85 - mountPath: /var/log/onap
86 name: sdc-logs-2
87 - mountPath: /usr/share/filebeat/data
88 name: sdc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040089 volumes:
yurynd0707be2017-09-27 14:54:18 +030090 - name: filebeat-conf
91 hostPath:
92 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
93 - name: sdc-logs-2
94 emptyDir: {}
95 - name: sdc-data-filebeat
96 emptyDir: {}
97 - name: sdc-logback
98 hostPath:
99 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/sdc/fe/logback.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400100 - name: sdc-sdc-es-es
101 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000102 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-es/ES
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400103 - name: sdc-environments
104 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000105 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400106 - name: sdc-localtime
107 hostPath:
108 path: /etc/localtime
109 - name: sdc-logs
110 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000111 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400112 - name: sdc-fe-config
113 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000114 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-fe/FE_2_setup_configuration.rb
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300115 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000116 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavGbfd703b2017-11-06 22:37:05 +0200117#{{ end }}