Apply more suggestions

Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@vmware.com>
This commit is contained in:
Javier J. Salmeron Garcia
2019-11-28 13:25:23 +01:00
parent aabe6d709b
commit d18a4fbcad
2 changed files with 6 additions and 0 deletions

View File

@@ -50,7 +50,9 @@ spec:
ports:
- name: metrics
containerPort: 8080
{{- if .Values.metrics.resources }}
resources: {{- toYaml .Values.metrics.resources | nindent 12 }}
{{- end }}
livenessProbe:
httpGet:
path: /metrics

View File

@@ -47,7 +47,9 @@ spec:
command: ["chown", "-R", "{{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.fsGroup }}", "/bitnami/zookeeper"]
securityContext:
runAsUser: 0
{{- if .Values.volumePermissions.resources }}
resources: {{- toYaml .Values.volumePermissions.resources | nindent 12 }}
{{- end }}
volumeMounts:
- name: data
mountPath: /bitnami/zookeeper
@@ -74,7 +76,9 @@ spec:
exit 1
fi
exec /entrypoint.sh /run.sh
{{- if .Values.resources }}
resources: {{- toYaml .Values.resources | nindent 12 }}
{{- end }}
env:
- name: ZOO_PORT_NUMBER
value: {{ .Values.service.port | quote }}