-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathzplane-deployment.yaml
87 lines (85 loc) · 2.96 KB
/
zplane-deployment.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
{{- if .Values.zplane.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "openobserve.fullname" . }}-zplane
namespace: {{ .Release.Namespace | quote }}
labels:
{{- include "openobserve.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.zplane.replicaCount }}
selector:
matchLabels:
{{- include "openobserve.selectorLabels" . | nindent 6 }}
role: zplane
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "openobserve.selectorLabels" . | nindent 8 }}
role: zplane
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "openobserve.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.zplane.image.repository }}:{{ .Values.zplane.image.tag }}"
imagePullPolicy: {{ .Values.zplane.image.pullPolicy }}
ports:
- name: http
containerPort: 9200
protocol: TCP
# livenessProbe:
# httpGet:
# path: /
# port: 9200
# readinessProbe:
# httpGet:
# path: /
# port: 9200
resources:
{{- toYaml .Values.zplane.resources | nindent 12 }}
env:
- name: ZPLANE_ZO_USERNAME
{{- if .Values.auth.existingRootUserSecret.name }}
valueFrom:
secretKeyRef:
name: {{ .Values.auth.existingRootUserSecret.name }}
key: {{ .Values.auth.existingRootUserSecret.emailKey }}
{{- else }}
value: {{ .Values.auth.ZO_ROOT_USER_EMAIL | quote }}
{{- end }}
- name: ZPLANE_ZO_PASSWORD
{{- if .Values.auth.existingRootUserSecret.name }}
valueFrom:
secretKeyRef:
name: {{ .Values.auth.existingRootUserSecret.name }}
key: {{ .Values.auth.existingRootUserSecret.passwordKey }}
{{- else }}
value: {{ .Values.auth.ZO_ROOT_USER_PASSWORD | quote }}
{{- end }}
- name: ZPLANE_ZO_ENDPOINT
value: "http://{{ include "openobserve.fullname" . }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}:{{ .Values.service.port }}"
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.zplane.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}