forked from khteh/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkibana.yml
77 lines (77 loc) · 1.83 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
apiVersion: v1
kind: Service
metadata:
name: svc-kibana
annotations:
alb.ingress.kubernetes.io/healthcheck-path: /kibana/api/status
labels:
app: kibana
spec:
selector:
app: kibana
# tier: database
ports:
- name: kibana
protocol: TCP
port: 5601
targetPort: 5601
clusterIP: None # Headless
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: kibana
spec:
serviceName: "svc-kibana"
podManagementPolicy: "Parallel" # Default is OrderedReady
replicas: 2 # Default is 1
selector:
matchLabels:
app: kibana # Has to match .spec.template.metadata.labels
template:
metadata:
labels:
app: kibana # Has to match .spec.selector.matchLabels
spec:
terminationGracePeriodSeconds: 10
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- kibana
topologyKey: "kubernetes.io/hostname"
# imagePullSecrets:
# - name: iconverse-docker
containers:
- name: kibana
securityContext:
capabilities:
add:
- IPC_LOCK
- SYS_RESOURCE
image: kibana:7.4.0
imagePullPolicy: Always
command: ["/usr/share/kibana/bin/kibana"]
args: ["-c", "/etc/kibana/kibana.yml"]
ports:
- containerPort: 5601
name: kibana
protocol: TCP
volumeMounts:
- name: kibana-config
mountPath: /etc/kibana
readOnly: true
resources:
requests:
cpu: 250m
limits:
cpu: 500m
memory: 1024Mi
volumes:
- name: kibana-config
configMap:
name: kibana-config