- Added debug mode, structured ConfigMap pattern, and README to all charts - Migrated all flat-structure charts to hierarchical values under chartname key - Fixed templates to use correct hierarchical paths - Renamed helm-rustical key to rustical, added HPA support - Fixed ingress YAML parsing (oxicloud), nested env vars (rustical) - Pushed all normalized charts to OCI registry as 1.0.0+ and updated ArgoCD apps
91 lines
3.3 KiB
YAML
91 lines
3.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: {{ include "vaultwarden.fullname" . }}
|
|
labels:
|
|
{{- include "vaultwarden.labels" . | nindent 4 }}
|
|
spec:
|
|
serviceName: {{ include "vaultwarden.fullname" . }}-headless
|
|
{{- if not .Values.vaultwarden.autoscaling.enabled }}
|
|
replicas: {{ .Values.vaultwarden.replicaCount }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "vaultwarden.selectorLabels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
{{- with .Values.vaultwarden.podAnnotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "vaultwarden.selectorLabels" . | nindent 8 }}
|
|
spec:
|
|
{{- with .Values.vaultwarden.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
securityContext:
|
|
{{- toYaml .Values.vaultwarden.podSecurityContext | nindent 8 }}
|
|
containers:
|
|
- name: {{ .Chart.Name }}
|
|
securityContext:
|
|
{{- toYaml .Values.vaultwarden.securityContext | nindent 12 }}
|
|
image: "{{ .Values.vaultwarden.image.repository }}:{{ .Values.vaultwarden.image.tag | default (printf "%s-alpine" .Chart.AppVersion) }}"
|
|
imagePullPolicy: {{ .Values.vaultwarden.image.pullPolicy }}
|
|
envFrom:
|
|
- configMapRef:
|
|
name: {{ include "vaultwarden.fullname" . }}-config
|
|
- secretRef:
|
|
name: {{ .Values.vaultwarden.secret.existingSecretName | default (include "vaultwarden.fullname" .) }}
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
protocol: TCP
|
|
livenessProbe:
|
|
{{- toYaml .Values.vaultwarden.livenessProbe | nindent 12 }}
|
|
readinessProbe:
|
|
{{- toYaml .Values.vaultwarden.readinessProbe | nindent 12 }}
|
|
resources:
|
|
{{- toYaml .Values.vaultwarden.resources | nindent 12 }}
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data
|
|
{{- if .Values.vaultwarden.persistence.existingClaim }}
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: {{ .Values.vaultwarden.persistence.existingClaim }}
|
|
{{- end }}
|
|
{{- with .Values.vaultwarden.nodeSelector }}
|
|
nodeSelector:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.vaultwarden.affinity }}
|
|
affinity:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.vaultwarden.tolerations }}
|
|
tolerations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
restartPolicy: Always
|
|
automountServiceAccountToken: false
|
|
{{- if and .Values.vaultwarden.persistence.enabled (not .Values.vaultwarden.persistence.existingClaim) }}
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: data
|
|
spec:
|
|
accessModes:
|
|
- {{ .Values.vaultwarden.persistence.accessMode }}
|
|
{{- if .Values.vaultwarden.persistence.storageClass }}
|
|
{{- if eq "-" .Values.vaultwarden.persistence.storageClass }}
|
|
storageClassName: ""
|
|
{{- else }}
|
|
storageClassName: {{ .Values.vaultwarden.persistence.storageClass | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.vaultwarden.persistence.size }}
|
|
{{- end }}
|