Skip to content

Commit

Permalink
[stable/openvpn] Adds nodeSelector (helm#9965)
Browse files Browse the repository at this point in the history
Signed-off-by: Jai <[email protected]>
  • Loading branch information
dolftax authored and k8s-ci-robot committed Feb 26, 2019
1 parent 3b08f9b commit 5bbf2df
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/openvpn/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A Helm chart to install an openvpn server inside a kubernetes clust
generation is also part of the deployment, and this chart will generate client keys
as needed.
name: openvpn
version: 3.11.0
version: 3.12.0
appVersion: 1.1.0
maintainers:
- name: jfelten
Expand Down
2 changes: 1 addition & 1 deletion stable/openvpn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Parameter | Description | Default
`openvpn.dhcpOptionDomain` | Push a `dhcp-option DOMAIN` config | `true`
`openvpn.conf` | Arbitrary lines appended to the end of the server configuration file | `nil`
`openvpn.redirectGateway` | Redirect all client traffic through VPN | `true`
`nodeSelector` | Node labels for pod assignment | `{}`

This chart has been engineered to use kube-dns and route all network traffic to kubernetes pods and services,
to disable this behaviour set `openvpn.OVPN_K8S_POD_NETWORK` and `openvpn.OVPN_K8S_POD_SUBNET` to `null`.
Expand Down Expand Up @@ -112,4 +113,3 @@ Certificates can be found in openvpn pod in the following files:
`/etc/openvpn/certs/pki/ca.crt`
`/etc/openvpn/certs/pki/issued/server.crt`
`/etc/openvpn/certs/pki/dh.pem`

4 changes: 4 additions & 0 deletions stable/openvpn/templates/openvpn-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,7 @@ spec:
{{- else }}
emptyDir: {}
{{- end -}}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector }}
{{- end }}
2 changes: 2 additions & 0 deletions stable/openvpn/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,5 @@ openvpn:
# conf: |
# max-clients 100
# client-to-client

nodeSelector: {}

0 comments on commit 5bbf2df

Please sign in to comment.