-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathkibana.yml
91 lines (91 loc) · 1.8 KB
/
kibana.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
apiVersion: v1
kind: ConfigMap
metadata:
name: kibana-config
namespace: kube-system
labels:
k8s-app: kibana
task: logging
data:
kibana.yml: |
server.port: 5601
server.host: "0.0.0.0"
server.basePath: ""
elasticsearch.url: "http://logging-elasticsearch.kube-system:9200"
kibana.index: ".kibana"
kibana.defaultAppId: "discover"
elasticsearch.ssl.verificationMode: none
elasticsearch.pingTimeout: 1500
elasticsearch.requestTimeout: 30000
logging.dest: stdout
logging.verbose: false
ops.interval: 5000
i18n.defaultLocale: "en"
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: logging-kibana
namespace: kube-system
labels:
k8s-app: kibana
task: logging
spec:
template:
metadata:
labels:
k8s-app: kibana
task: logging
name: logging-kibana
spec:
containers:
- name: kibana
image: schikin/kibana:5.5
ports:
- containerPort: 5601
name: http
protocol: TCP
resources:
limits:
cpu: 100m
memory: 256Mi
volumeMounts:
- name: config
mountPath: /config
volumes:
- name: config
configMap:
name: kibana-config
---
apiVersion: v1
kind: Service
metadata:
labels:
k8s-app: kibana
task: logging
name: logging-kibana
namespace: kube-system
spec:
ports:
- port: 5601
targetPort: 5601
name: http
selector:
k8s-app: kibana
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kibana
namespace: kube-system
labels:
task: logging
k8s-app: kibana
spec:
rules:
- host: kibana.foo.bar
http:
paths:
- backend:
serviceName: logging-kibana
servicePort: 5601