-
Notifications
You must be signed in to change notification settings - Fork 0
/
kibana-pod.yaml
284 lines (282 loc) · 8.04 KB
/
kibana-pod.yaml
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2024-07-17T12:21:09Z"
generateName: elasticsearch-kibana-8569469b94-
labels:
app: kibana
app.kubernetes.io/instance: elasticsearch
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: kibana
app.kubernetes.io/version: 8.14.2
helm.sh/chart: kibana-11.2.10
pod-template-hash: 8569469b94
name: elasticsearch-kibana-8569469b94-6ljhp
namespace: elastic
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: elasticsearch-kibana-8569469b94
uid: d6592a15-fce4-4bf7-b09f-3393166a921a
resourceVersion: "433584"
uid: 2785f924-3da7-4535-a928-7649df2136d6
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/instance: elasticsearch
app.kubernetes.io/name: kibana
topologyKey: kubernetes.io/hostname
weight: 1
automountServiceAccountToken: false
containers:
- env:
- name: BITNAMI_DEBUG
value: "false"
- name: KIBANA_PORT_NUMBER
value: "5601"
- name: KIBANA_ELASTICSEARCH_URL
value: https://elasticsearch:9200
- name: KIBANA_ELASTICSEARCH_PORT_NUMBER
value: "9200"
- name: KIBANA_FORCE_INITSCRIPTS
value: "false"
- name: KIBANA_SERVER_ENABLE_TLS
value: "false"
- name: KIBANA_PASSWORD
valueFrom:
secretKeyRef:
key: kibana-password
name: elasticsearch-kibana
- name: KIBANA_ELASTICSEARCH_ENABLE_TLS
value: "true"
- name: KIBANA_ELASTICSEARCH_TLS_USE_PEM
value: "true"
- name: KIBANA_ELASTICSEARCH_TLS_VERIFICATION_MODE
value: full
image: docker.io/bitnami/kibana:8.14.2-debian-12-r0
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 6
initialDelaySeconds: 120
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: http
timeoutSeconds: 5
name: kibana
ports:
- containerPort: 5601
name: http
protocol: TCP
readinessProbe:
failureThreshold: 6
httpGet:
path: /status
port: http
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
resources:
limits:
cpu: 750m
ephemeral-storage: 1Gi
memory: 768Mi
requests:
cpu: 500m
ephemeral-storage: 50Mi
memory: 512Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
seLinuxOptions: {}
seccompProfile:
type: RuntimeDefault
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /tmp
name: empty-dir
subPath: tmp-dir
- mountPath: /opt/bitnami/kibana/config
name: empty-dir
subPath: app-conf-dir
- mountPath: /opt/bitnami/kibana/tmp
name: empty-dir
subPath: app-tmp-dir
- mountPath: /opt/bitnami/kibana/logs
name: empty-dir
subPath: app-logs-dir
- mountPath: /opt/bitnami/kibana/plugins
name: empty-dir
subPath: app-plugins-dir
- mountPath: /bitnami/kibana
name: kibana-data
- mountPath: /bitnami/kibana/conf
name: kibana-config
- mountPath: /opt/bitnami/kibana/config/certs/elasticsearch
name: elasticsearch-certificates
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
initContainers:
- args:
- -ec
- |
#!/bin/bash
. /opt/bitnami/scripts/libfs.sh
. /opt/bitnami/scripts/kibana-env.sh
if ! is_dir_empty "$SERVER_DEFAULT_PLUGINS_DIR"; then
cp -nr "$SERVER_DEFAULT_PLUGINS_DIR"/* /plugins
fi
command:
- /bin/bash
image: docker.io/bitnami/kibana:8.14.2-debian-12-r0
imagePullPolicy: IfNotPresent
name: copy-default-plugins
resources:
limits:
cpu: 750m
ephemeral-storage: 1Gi
memory: 768Mi
requests:
cpu: 500m
ephemeral-storage: 50Mi
memory: 512Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
seLinuxOptions: {}
seccompProfile:
type: RuntimeDefault
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /plugins
name: empty-dir
subPath: app-plugins-dir
nodeName: ip-192-168-7-117.ap-south-1.compute.internal
preemptionPolicy: PreemptLowerPriority
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 1001
fsGroupChangePolicy: Always
serviceAccount: elasticsearch-kibana
serviceAccountName: elasticsearch-kibana
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
volumes:
- emptyDir: {}
name: empty-dir
- name: kibana-data
persistentVolumeClaim:
claimName: elasticsearch-kibana
- name: elasticsearch-certificates
secret:
defaultMode: 256
secretName: elasticsearch-coordinating-crt
- configMap:
defaultMode: 420
name: elasticsearch-kibana-conf
name: kibana-config
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2024-07-18T06:39:56Z"
status: "True"
type: PodReadyToStartContainers
- lastProbeTime: null
lastTransitionTime: "2024-07-18T06:40:00Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2024-07-18T05:50:29Z"
message: 'containers with unready status: [kibana]'
reason: ContainersNotReady
status: "False"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2024-07-18T05:50:29Z"
message: 'containers with unready status: [kibana]'
reason: ContainersNotReady
status: "False"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2024-07-18T05:50:29Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: containerd://f971dd914ee3e75bd7fafbe5e76be6c84cf1fe6bf8804c28517eee636d67c457
image: docker.io/bitnami/kibana:8.14.2-debian-12-r0
imageID: docker.io/bitnami/kibana@sha256:efd287a72824fe40273cbf2c557ad53237878a84b69b91ea6cb8169ac9edd4ab
lastState:
terminated:
containerID: containerd://f971dd914ee3e75bd7fafbe5e76be6c84cf1fe6bf8804c28517eee636d67c457
exitCode: 1
finishedAt: "2024-07-18T06:41:20Z"
reason: Error
startedAt: "2024-07-18T06:41:20Z"
name: kibana
ready: false
restartCount: 4
started: false
state:
waiting:
message: back-off 1m20s restarting failed container=kibana pod=elasticsearch-kibana-8569469b94-6ljhp_elastic(2785f924-3da7-4535-a928-7649df2136d6)
reason: CrashLoopBackOff
hostIP: 192.168.7.117
hostIPs:
- ip: 192.168.7.117
initContainerStatuses:
- containerID: containerd://9900b82223b1b917986bfcef7bf19f3275251fa30a50970cc91df9ccf0c1e3bc
image: docker.io/bitnami/kibana:8.14.2-debian-12-r0
imageID: docker.io/bitnami/kibana@sha256:efd287a72824fe40273cbf2c557ad53237878a84b69b91ea6cb8169ac9edd4ab
lastState: {}
name: copy-default-plugins
ready: true
restartCount: 0
started: false
state:
terminated:
containerID: containerd://9900b82223b1b917986bfcef7bf19f3275251fa30a50970cc91df9ccf0c1e3bc
exitCode: 0
finishedAt: "2024-07-18T06:39:56Z"
reason: Completed
startedAt: "2024-07-18T06:39:56Z"
phase: Running
podIP: 192.168.25.177
podIPs:
- ip: 192.168.25.177
qosClass: Burstable
startTime: "2024-07-18T05:50:29Z"