Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/defguard/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Defguard is an open-source enterprise WireGuard VPN with MFA and SS
icon: https://defguard.net/favicon/favicon-512x512.png

type: application
version: 2.1.1
version: 2.1.2
appVersion: 2.1.1

dependencies:
Expand Down
3 changes: 3 additions & 0 deletions charts/defguard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ This Helm chart can be used to deploy the whole [Defguard](https://defguard.net/
Check our [documentation](https://docs.defguard.net/deployment-strategies/kubernetes) for deployment
instructions.

Defguard Core runs as a single instance. Keep `replicaCount: 1` and
`autoscaling.enabled: false`; the chart rejects values that would run multiple Core replicas.

## ⚠️ Important: Postgres image tags

Due to changes in Bitnami policy the Postgres subchart now uses the `latest` tag by default.
Expand Down
6 changes: 6 additions & 0 deletions charts/defguard/templates/defguard-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{{- if ne (int .Values.replicaCount) 1 }}
{{- fail "Defguard Core runs as a single instance; replicaCount must be 1." }}
{{- end }}
{{- if .Values.autoscaling.enabled }}
{{- fail "Defguard Core runs as a single instance; autoscaling.enabled must be false." }}
{{- end }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
4 changes: 2 additions & 2 deletions charts/defguard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
proxyUrl: ""
# this should be a URL based on ingress.web.host
publicUrl: "http://defguard.local"
# defguard-core pod autoscaling configuration
# Core runs as a single instance; autoscaling must remain disabled.
autoscaling:
enabled: false
minReplicas: 1
Expand Down Expand Up @@ -56,7 +56,7 @@ podLabels: {}
podSecurityContext: {}
# defguard-core container security context
securityContext: {}
# defguard-core container replica count
# Keep Core at one replica; other values are rejected.
replicaCount: 1
# defguard-core pod resource configuration
resources: {}
Expand Down
Loading