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