2017-04-14 17:39:40 +08:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: kibana-logging
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
k8s-app: kibana-logging
|
|
|
|
kubernetes.io/cluster-service: "true"
|
|
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
k8s-app: kibana-logging
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: kibana-logging
|
|
|
|
spec:
|
|
|
|
serviceAccountName: efk
|
|
|
|
containers:
|
|
|
|
- name: kibana-logging
|
2018-05-04 19:53:39 +08:00
|
|
|
image: harbor-001.jimmysong.io/library/kibana:v4.6.1-1
|
2017-04-14 17:39:40 +08:00
|
|
|
resources:
|
|
|
|
# keep request = limit to keep this container in guaranteed class
|
|
|
|
limits:
|
|
|
|
cpu: 100m
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
env:
|
|
|
|
- name: "ELASTICSEARCH_URL"
|
|
|
|
value: "http://elasticsearch-logging:9200"
|
|
|
|
- name: "KIBANA_BASE_URL"
|
|
|
|
value: "/api/v1/proxy/namespaces/kube-system/services/kibana-logging"
|
|
|
|
ports:
|
|
|
|
- containerPort: 5601
|
|
|
|
name: ui
|
|
|
|
protocol: TCP
|