Revert "added filebeat to all components"
[oom.git] / kubernetes / sdc / templates / sdc-fe.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   labels:
5     app: sdc-fe
6   name: sdc-fe
7   namespace: "{{ .Values.nsPrefix }}-sdc"
8 spec:
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               ],
44               "image": "{{ .Values.image.readiness }}",
45               "imagePullPolicy": "{{ .Values.pullPolicy }}",
46               "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
59         image: {{ .Values.image.sdcFrontend }}
60         imagePullPolicy: {{ .Values.pullPolicy }}
61         volumeMounts:
62         - mountPath: /usr/share/elasticsearch/data/
63           name: sdc-sdc-es-es
64         - mountPath: /root/chef-solo/environments/
65           name: sdc-environments
66         - mountPath: /etc/localtime
67           name: sdc-localtime
68           readOnly: true
69         - 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
73         ports:
74         - containerPort: 9443
75         - containerPort: 8181
76         readinessProbe:
77           tcpSocket:
78             port: 8181
79           initialDelaySeconds: 5
80           periodSeconds: 10
81       volumes:
82         - name: sdc-sdc-es-es
83           hostPath:
84             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-es/ES
85         - name: sdc-environments
86           hostPath:
87             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments
88         - name: sdc-localtime
89           hostPath:
90             path:  /etc/localtime
91         - name:  sdc-logs
92           hostPath:
93             path:  /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/logs
94         - name:  sdc-fe-config
95           hostPath:
96             path:  /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-fe/FE_2_setup_configuration.rb
97       imagePullSecrets:
98       - name: "{{ .Values.nsPrefix }}-docker-registry-key"