blob: adcec19ffe9d7147bbb28ccbc83d0c15a4170ef3 [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
BorislavG8bfc6cf2018-02-27 15:04:26 +00008 namespace: "{{ .Values.nsPrefix }}"
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
Pramodba635b32018-01-17 12:05:14 +000065 subPath: FE_2_setup_configuration.rb
yurynd0707be2017-09-27 14:54:18 +030066 - mountPath: /tmp/logback.xml
67 name: sdc-logback
68 lifecycle:
69 postStart:
70 exec:
71 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 -040072 ports:
73 - containerPort: 9443
74 - containerPort: 8181
75 readinessProbe:
76 tcpSocket:
77 port: 8181
78 initialDelaySeconds: 5
79 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030080 - image: {{ .Values.image.filebeat }}
81 imagePullPolicy: {{ .Values.pullPolicy }}
82 name: filebeat-onap
83 volumeMounts:
84 - mountPath: /usr/share/filebeat/filebeat.yml
85 name: filebeat-conf
Pramodba635b32018-01-17 12:05:14 +000086 subPath: filebeat.yml
yurynd0707be2017-09-27 14:54:18 +030087 - mountPath: /var/log/onap
88 name: sdc-logs-2
89 - mountPath: /usr/share/filebeat/data
90 name: sdc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040091 volumes:
yurynd0707be2017-09-27 14:54:18 +030092 - name: filebeat-conf
Pramodba635b32018-01-17 12:05:14 +000093 configMap:
94 name : sdc-filebeat-configmap
yurynd0707be2017-09-27 14:54:18 +030095 - name: sdc-logs-2
96 emptyDir: {}
97 - name: sdc-data-filebeat
98 emptyDir: {}
99 - name: sdc-logback
Pramodba635b32018-01-17 12:05:14 +0000100 configMap:
101 name : sdc-log-fe-configmap
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400102 - name: sdc-sdc-es-es
103 hostPath:
kerenj390aec92018-02-25 13:57:36 +0000104 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdc/sdc-es/ES
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400105 - name: sdc-environments
Pramodba635b32018-01-17 12:05:14 +0000106 configMap:
107 name: sdc-environments-configmap
108 defaultMode: 0755
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400109 - name: sdc-localtime
110 hostPath:
111 path: /etc/localtime
112 - name: sdc-logs
113 hostPath:
kerenj390aec92018-02-25 13:57:36 +0000114 path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdc/logs
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400115 - name: sdc-fe-config
Pramodba635b32018-01-17 12:05:14 +0000116 configMap:
117 name: sdc-fe-configmap
118 defaultMode: 0755
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300119 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000120 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavGbfd703b2017-11-06 22:37:05 +0200121#{{ end }}