Skip to content

Commit

Permalink
add nodeAffinity parameter for openvpn deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mszkutnik committed Oct 11, 2023
1 parent e2c5840 commit 89b4e88
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions charts/helm-chart-openvpn-duo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ spec:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
spec:
{{- if .Values.nodeAffinity }}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: group
operator: In
values:
- {{ .Values.nodeAffinity }}
{{- end }}
{{- if .Values.ipForwardInitContainer }}
initContainers:
- args:
Expand Down
2 changes: 2 additions & 0 deletions charts/helm-chart-openvpn-duo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Declare variables to be passed into your templates.
replicaCount: 1

# nodeAffinity: default

updateStrategy: {}
# type: RollingUpdate
# rollingUpdate:
Expand Down

0 comments on commit 89b4e88

Please sign in to comment.