diff --git a/k8s/charts/oxicloud/templates/statefulset.yaml b/k8s/charts/oxicloud/templates/statefulset.yaml index 20f64e1..71526e8 100644 --- a/k8s/charts/oxicloud/templates/statefulset.yaml +++ b/k8s/charts/oxicloud/templates/statefulset.yaml @@ -31,12 +31,18 @@ spec: volumeMounts: - name: oxicloud-data mountPath: /app/storage + {{- with .Values.oxicloud.resources }} resources: - {{- toYaml .Values.oxicloud.resources | nindent 10 }} + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.oxicloud.livenessProbe }} livenessProbe: - {{- toYaml .Values.oxicloud.livenessProbe | nindent 10 }} + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.oxicloud.readinessProbe }} readinessProbe: - {{- toYaml .Values.oxicloud.readinessProbe | nindent 10 }} + {{- toYaml . | nindent 12 }} + {{- end }} {{- if not .Values.oxicloud.persistence.enabled }} volumes: - name: oxicloud-data