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 |
| 18 | annotations: |
| 19 | pod.beta.kubernetes.io/init-containers: '[ |
| 20 | { |
| 21 | "args": [ |
| 22 | "--container-name", |
| 23 | "elasticsearch" |
| 24 | ], |
| 25 | "command": [ |
| 26 | "/root/ready.py" |
| 27 | ], |
| 28 | "env": [ |
| 29 | { |
| 30 | "name": "NAMESPACE", |
| 31 | "valueFrom": { |
| 32 | "fieldRef": { |
| 33 | "apiVersion": "v1", |
| 34 | "fieldPath": "metadata.namespace" |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | ], |
| 39 | "image": "{{ .Values.image.readiness }}", |
| 40 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
| 41 | "name": "kibana-readiness" |
| 42 | } |
| 43 | ]' |
| 44 | spec: |
| 45 | containers: |
| 46 | - name: kibana |
| 47 | image: {{ .Values.image.kibana }} |
| 48 | ports: |
| 49 | - containerPort: 5601 |
| 50 | name: http |
| 51 | protocol: TCP |
| 52 | readinessProbe: |
| 53 | tcpSocket: |
| 54 | port: 5601 |
| 55 | volumeMounts: |
| 56 | - name: kibana-conf |
| 57 | mountPath: /usr/share/kibana/config/ |
| 58 | volumes: |
| 59 | - name: kibana-conf |
| 60 | configMap: |
| 61 | name: kibana-configmap |
| 62 | items: |
| 63 | - key: kibana.yml |
| 64 | path: kibana.yml |
| 65 | --- |
| 66 | apiVersion: v1 |
| 67 | kind: ConfigMap |
| 68 | metadata: |
| 69 | name: kibana-configmap |
| 70 | namespace: {{ .Values.nsPrefix }}-log |
| 71 | data: |
Michael O'Brien | c71456f | 2017-11-17 20:20:24 -0500 | [diff] [blame] | 72 | {{ (.Files.Glob "resources/kibana/conf/kibana.yml").AsConfig | indent 2 }} |
Kerenj | 353ce1d | 2017-11-12 11:08:28 +0200 | [diff] [blame] | 73 | #{{ end }} |