File tree Expand file tree Collapse file tree 3 files changed +48
-0
lines changed
Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ Define toolset token volumes
5858- name: client-token
5959 secret:
6060 secretName: " {{ .Release.Name }}-token-{{ .Values.auth.superUsers.client }}"
61+ defaultMode: 0400
6162 items:
6263 - key: TOKEN
6364 path: client/token
@@ -99,6 +100,7 @@ Define toolset tls certs volumes
99100- name: toolset-certs
100101 secret:
101102 secretName: " {{ template " pulsar.toolset.tls.secret.name " . }}"
103+ defaultMode: 0400
102104 items:
103105 - key: tls.crt
104106 path: tls.crt
@@ -107,6 +109,7 @@ Define toolset tls certs volumes
107109- name: ca
108110 secret:
109111 secretName: " {{ template " pulsar.tls.ca.secret.name " . }}"
112+ defaultMode: 0400
110113 items:
111114 - key: ca.crt
112115 path: ca.crt
@@ -123,11 +126,13 @@ Define toolset tls certs volumes
123126 secret:
124127 {{- if and .Values.certs.public_issuer.enabled (eq .Values.certs.public_issuer.type " acme" ) }}
125128 secretName: {{ .Values.certs.lets_encrypt.ca_ref.secretName }}
129+ defaultMode: 0400
126130 items:
127131 - key: {{ .Values.certs.lets_encrypt.ca_ref.keyName }}
128132 path: ca.crt
129133 {{- else }}
130134 secretName: " {{ template " pulsar.tls.ca.secret.name " . }}"
135+ defaultMode: 0400
131136 items:
132137 - key: ca.crt
133138 path: ca.crt
Original file line number Diff line number Diff line change @@ -118,6 +118,26 @@ spec:
118118 bin/apply-config-from-env.py conf/bookkeeper.conf;
119119 {{- include "pulsar.toolset.zookeeper.tls.settings" . | nindent 10 }}
120120 sleep 10000000000
121+ livenessProbe :
122+ exec :
123+ command :
124+ - sh
125+ - -c
126+ - " ps aux | grep -v grep | grep sleep"
127+ initialDelaySeconds : 10
128+ periodSeconds : 30
129+ timeoutSeconds : 5
130+ failureThreshold : 3
131+ readinessProbe :
132+ exec :
133+ command :
134+ - sh
135+ - -c
136+ - " ps aux | grep -v grep | grep sleep"
137+ initialDelaySeconds : 5
138+ periodSeconds : 10
139+ timeoutSeconds : 5
140+ failureThreshold : 3
121141 envFrom :
122142 - configMapRef :
123143 name : " {{ template " pulsar.fullname" . }}-{{ .Values.toolset.component }}"
@@ -162,6 +182,26 @@ spec:
162182 {{- include "pulsar.toolset.zookeeper.tls.settings" . | nindent 10 }}
163183 {{- include "pulsar.toolset.kafka.settings" . | nindent 10 }}
164184 sleep 10000000000
185+ livenessProbe :
186+ exec :
187+ command :
188+ - sh
189+ - -c
190+ - " ps aux | grep -v grep | grep sleep"
191+ initialDelaySeconds : 10
192+ periodSeconds : 30
193+ timeoutSeconds : 5
194+ failureThreshold : 3
195+ readinessProbe :
196+ exec :
197+ command :
198+ - sh
199+ - -c
200+ - " ps aux | grep -v grep | grep sleep"
201+ initialDelaySeconds : 5
202+ periodSeconds : 10
203+ timeoutSeconds : 5
204+ failureThreshold : 3
165205 envFrom :
166206 - configMapRef :
167207 name : " {{ template " pulsar.fullname" . }}-{{ .Values.toolset.component }}"
Original file line number Diff line number Diff line change @@ -1812,6 +1812,9 @@ toolset:
18121812 -XX:MaxDirectMemorySize=128M
18131813 securityContext :
18141814 runAsNonRoot : true
1815+ runAsUser : 10000
1816+ runAsGroup : 10000
1817+ fsGroup : 10000
18151818 serviceAccount :
18161819 # Specifies whether to use a service account to run this component
18171820 use : true
You can’t perform that action at this time.
0 commit comments