75 lines
2.0 KiB
YAML
75 lines
2.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: deployment-kibana
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
app: site
|
|
tier: kibana
|
|
{{- include "site.labels" . | nindent 4 }}
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: site
|
|
tier: kibana
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: site
|
|
tier: kibana
|
|
{{- include "site.labels" . | nindent 8 }}
|
|
spec:
|
|
priorityClassName: {{ required ".Values.kibana.priorityClassName entry is required!" .Values.kibana.priorityClassName }}
|
|
automountServiceAccountToken: false
|
|
containers:
|
|
- name: kibana
|
|
image: docker.elastic.co/kibana/kibana:{{ required ".Values.elastic.imageTag entry is required!" .Values.elastic.imageTag }}
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
envFrom:
|
|
- configMapRef:
|
|
name: configmap-kibana
|
|
- secretRef:
|
|
name: secret-kibana
|
|
#env:
|
|
# - name: ELASTICSEARCH_HOSTS
|
|
# value: '["http://statefulset-elasticsearch-0.service-elasticsearch:9200"]'
|
|
# - name: ELASTICSEARCH_USERNAME
|
|
# value: elastic
|
|
# - name: ELASTICSEARCH_PASSWORD
|
|
# value: password
|
|
|
|
ports:
|
|
- containerPort: 5601
|
|
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 300Mi
|
|
ephemeral-storage: 128M
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 1Gi
|
|
ephemeral-storage: 512M
|
|
startupProbe:
|
|
tcpSocket:
|
|
port: 5601
|
|
failureThreshold: 12
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: 5601
|
|
periodSeconds: 10
|
|
failureThreshold: 3
|
|
initialDelaySeconds: 30
|
|
timeoutSeconds: 5
|
|
topologySpreadConstraints:
|
|
- maxSkew: 1
|
|
topologyKey: kubernetes.io/hostname
|
|
whenUnsatisfiable: ScheduleAnyway
|
|
labelSelector:
|
|
matchLabels:
|
|
app: stackgmo
|
|
tier: kibana
|