2017-01-26 23:33:01 +00:00
|
|
|
---
|
2018-05-11 16:36:50 +00:00
|
|
|
# https://raw.githubusercontent.com/kubernetes/kubernetes/release-1.10/cluster/addons/fluentd-elasticsearch/kibana-deployment.yaml
|
|
|
|
apiVersion: apps/v1
|
2017-01-26 23:33:01 +00:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: kibana-logging
|
2018-03-30 11:29:13 +00:00
|
|
|
namespace: "kube-system"
|
2017-01-26 23:33:01 +00:00
|
|
|
labels:
|
|
|
|
k8s-app: kibana-logging
|
|
|
|
kubernetes.io/cluster-service: "true"
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
k8s-app: kibana-logging
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: kibana-logging
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: kibana-logging
|
|
|
|
image: "{{ kibana_image_repo }}:{{ kibana_image_tag }}"
|
|
|
|
resources:
|
|
|
|
# keep request = limit to keep this container in guaranteed class
|
|
|
|
limits:
|
|
|
|
cpu: {{ kibana_cpu_limit }}
|
|
|
|
{% if kibana_mem_limit is defined and kibana_mem_limit != "0M" %}
|
2018-04-12 09:41:36 +00:00
|
|
|
memory: "{{ kibana_mem_limit }}"
|
2017-01-26 23:33:01 +00:00
|
|
|
{% endif %}
|
|
|
|
requests:
|
|
|
|
cpu: {{ kibana_cpu_requests }}
|
|
|
|
{% if kibana_mem_requests is defined and kibana_mem_requests != "0M" %}
|
2018-04-12 09:41:36 +00:00
|
|
|
memory: "{{ kibana_mem_requests }}"
|
2017-01-26 23:33:01 +00:00
|
|
|
{% endif %}
|
|
|
|
env:
|
|
|
|
- name: "ELASTICSEARCH_URL"
|
|
|
|
value: "http://elasticsearch-logging:{{ elasticsearch_service_port }}"
|
2018-05-11 16:36:50 +00:00
|
|
|
- name: "SERVER_BASEPATH"
|
|
|
|
value: "/api/v1/namespaces/kube-system/services/kibana-logging/proxy"
|
|
|
|
- name: XPACK_MONITORING_ENABLED
|
|
|
|
value: "false"
|
|
|
|
- name: XPACK_SECURITY_ENABLED
|
|
|
|
value: "false"
|
2017-01-26 23:33:01 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 5601
|
|
|
|
name: ui
|
|
|
|
protocol: TCP
|
2017-08-10 06:48:53 +00:00
|
|
|
{% if rbac_enabled %}
|
|
|
|
serviceAccountName: efk
|
|
|
|
{% endif %}
|
|
|
|
|