kubeasz/manifests/efk/kibana-deployment.yaml

44 lines
1.2 KiB
YAML
Raw Normal View History

2019-05-06 20:42:55 +08:00
apiVersion: apps/v1
2018-03-13 18:17:48 +08:00
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
2019-05-06 20:42:55 +08:00
annotations:
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
2018-03-13 18:17:48 +08:00
spec:
containers:
- name: kibana-logging
2019-05-06 20:42:55 +08:00
#image: docker.elastic.co/kibana/kibana-oss:6.6.1
image: easzlab/kibana-oss:6.6.1
2018-03-13 18:17:48 +08:00
resources:
# need more cpu upon initialization, therefore burstable class
limits:
cpu: 1000m
requests:
cpu: 100m
env:
- name: ELASTICSEARCH_URL
value: http://elasticsearch-logging:9200
2019-11-07 22:22:31 +08:00
# if kibana service is exposed by nodePort, use lines commited out instead
#- name: SERVER_BASEPATH
# value: ""
2018-03-13 18:17:48 +08:00
- name: SERVER_BASEPATH
value: /api/v1/namespaces/kube-system/services/kibana-logging/proxy
ports:
- containerPort: 5601
name: ui
protocol: TCP