yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableLogKibana }} |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | labels: |
| 6 | app: kibana |
| 7 | name: kibana |
| 8 | namespace: {{ .Values.nsPrefix }}-log |
| 9 | spec: |
| 10 | selector: |
| 11 | matchLabels: |
| 12 | app: kibana |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: kibana |
| 17 | name: kibana |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 18 | spec: |
kiranya | 7a31821 | 2017-11-22 13:40:04 +0000 | [diff] [blame] | 19 | initContainers: |
| 20 | - command: |
| 21 | - /root/ready.py |
| 22 | args: |
| 23 | - --container-name |
| 24 | - elasticsearch |
| 25 | env: |
| 26 | - name: NAMESPACE |
| 27 | valueFrom: |
| 28 | fieldRef: |
| 29 | apiVersion: v1 |
| 30 | fieldPath: metadata.namespace |
| 31 | image: {{ .Values.image.readiness }} |
| 32 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 33 | name: kibana-readiness |
Itay Hassid | e2da86d | 2017-08-24 12:54:42 +0000 | [diff] [blame] | 34 | containers: |
| 35 | - name: kibana |
| 36 | image: {{ .Values.image.kibana }} |
| 37 | ports: |
| 38 | - containerPort: 5601 |
| 39 | name: http |
| 40 | protocol: TCP |
| 41 | readinessProbe: |
| 42 | tcpSocket: |
| 43 | port: 5601 |
| 44 | volumeMounts: |
| 45 | - name: kibana-conf |
| 46 | mountPath: /usr/share/kibana/config/ |
| 47 | volumes: |
| 48 | - name: kibana-conf |
| 49 | configMap: |
| 50 | name: kibana-configmap |
| 51 | items: |
| 52 | - key: kibana.yml |
| 53 | path: kibana.yml |
| 54 | --- |
| 55 | apiVersion: v1 |
| 56 | kind: ConfigMap |
| 57 | metadata: |
| 58 | name: kibana-configmap |
| 59 | namespace: {{ .Values.nsPrefix }}-log |
| 60 | data: |
Michael O'Brien | c71456f | 2017-11-17 20:20:24 -0500 | [diff] [blame] | 61 | {{ (.Files.Glob "resources/kibana/conf/kibana.yml").AsConfig | indent 2 }} |
Kerenj | 353ce1d | 2017-11-12 11:08:28 +0200 | [diff] [blame] | 62 | #{{ end }} |