mirror of
https://github.com/h44z/wg-portal
synced 2025-02-26 05:49:14 +00:00
* Initial chart version * Add CI/CD for chart * Fix admin creds template * Add command, args, env, envFrom * Render volumes and volumeMounts with tpl * Change persistance accessMode type * Add update strategy config * Use custom types in docs * Add startup probe config * Fix web.external_url config
25 lines
773 B
YAML
25 lines
773 B
YAML
{{- if eq .Values.workloadType "StatefulSet" -}}
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: {{ include "wg-portal.fullname" . }}
|
|
labels: {{- include "wg-portal.labels" . | nindent 4 }}
|
|
spec:
|
|
{{- with .Values.revisionHistoryLimit }}
|
|
revisionHistoryLimit: {{ . }}
|
|
{{- end }}
|
|
{{- with .Values.strategy }}
|
|
updateStrategy: {{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
serviceName: {{ template "wg-portal.fullname" . }}-web
|
|
selector:
|
|
matchLabels: {{- include "wg-portal.selectorLabels" . | nindent 6 }}
|
|
template: {{- include "wg-portal.podTemplate" . | nindent 4 }}
|
|
{{- if .Values.persistence.enabled }}
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: data
|
|
spec: {{- include "wg-portal.pvc" . | nindent 8 }}
|
|
{{- end -}}
|
|
{{- end -}}
|