2020-08-17 12:12:07 +00:00
|
|
|
{{- if .Values.es.nodeSets }}
|
|
|
|
# Only deploy Kibana if we have local ES cluster
|
2020-08-11 14:09:48 +00:00
|
|
|
apiVersion: kibana.k8s.elastic.co/v1
|
|
|
|
kind: Kibana
|
|
|
|
metadata:
|
|
|
|
name: {{ template "kubezero-lib.fullname" . }}
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
{{ include "kubezero-lib.labels" . | indent 4 }}
|
|
|
|
spec:
|
|
|
|
version: {{ .Values.version }}
|
|
|
|
count: {{ .Values.kibana.count }}
|
|
|
|
elasticsearchRef:
|
|
|
|
name: {{ template "kubezero-lib.fullname" . }}
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
config:
|
|
|
|
elasticsearch.requestTimeout: 180000
|
|
|
|
elasticsearch.shardTimeout: 180000
|
2022-04-08 14:21:37 +00:00
|
|
|
{{- with .Values.kibana.istio.url }}
|
|
|
|
server.publicBaseUrl: https://{{ . }}
|
|
|
|
{{- end }}
|
2020-08-11 14:09:48 +00:00
|
|
|
#xpack.monitoring.enabled: false
|
|
|
|
#xpack.monitoring.ui.enabled: false
|
|
|
|
#xpack.ml.enabled: false
|
|
|
|
podTemplate:
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: kibana
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: 1Gi
|
2021-03-05 15:53:02 +00:00
|
|
|
cpu: 200m
|
2020-08-11 14:09:48 +00:00
|
|
|
limits:
|
|
|
|
memory: 2Gi
|
2021-03-19 15:15:58 +00:00
|
|
|
{{- if .Values.kibana.nodeAffinity }}
|
|
|
|
affinity:
|
|
|
|
nodeAffinity:
|
|
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
- weight: 1
|
|
|
|
preference:
|
|
|
|
matchExpressions:
|
|
|
|
- key: {{ .Values.kibana.nodeAffinity.key }}
|
|
|
|
operator: In
|
|
|
|
values:
|
|
|
|
- {{ .Values.kibana.nodeAffinity.value }}
|
|
|
|
{{- end }}
|
|
|
|
|
2020-08-11 14:09:48 +00:00
|
|
|
http:
|
|
|
|
tls:
|
|
|
|
selfSignedCertificate:
|
|
|
|
disabled: true
|
|
|
|
{{- end }}
|