mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Add configurable podAnnotations to openvpn chart (#9835)
* Add configurable `podAnnotations` to openvpn chart Use case is using `ark` + `restic` to take backups which requires pods with persistent data to be annotated like: ``` kubectl annotate pod openvpn-6cff5449-wl48k backup.ark.heptio.com/backup-volumes=certs ``` Signed-off-by: Lyle Franklin <lylejfranklin@gmail.com> * Use toYaml helper in openvpn Signed-off-by: Lyle Franklin <lylejfranklin@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
ac341ca3c4
commit
ef4e666253
@@ -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.10.0
|
||||
version: 3.11.0
|
||||
appVersion: 1.1.0
|
||||
maintainers:
|
||||
- name: jfelten
|
||||
|
||||
@@ -73,6 +73,7 @@ Parameter | Description | Default
|
||||
`persistence.storageClass` | Storage class of backing PVC | `nil`
|
||||
`persistence.accessMode` | Use volume as ReadOnly or ReadWrite | `ReadWriteOnce`
|
||||
`persistence.size` | Size of data volume | `2M`
|
||||
`podAnnotations` | Key-value pairs to add as pod annotations | `{}`
|
||||
`openvpn.OVPN_NETWORK` | Network allocated for openvpn clients | `10.240.0.0`
|
||||
`openvpn.OVPN_SUBNET` | Network subnet allocated for openvpn | `255.255.0.0`
|
||||
`openvpn.OVPN_PROTO` | Protocol used by openvpn tcp or udp | `tcp`
|
||||
|
||||
@@ -24,6 +24,9 @@ spec:
|
||||
release: {{ .Release.Name }}
|
||||
annotations:
|
||||
checksum/config: {{ include (print .Template.BasePath "/config-openvpn.yaml") . | sha256sum }}
|
||||
{{- if .Values.podAnnotations }}
|
||||
{{ toYaml .Values.podAnnotations | indent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
|
||||
@@ -26,6 +26,10 @@ service:
|
||||
# annotations:
|
||||
# external-dns.alpha.kubernetes.io/hostname: vpn.example.com
|
||||
annotations: {}
|
||||
## Here annotations can be added to the openvpn pod
|
||||
# podAnnotations:
|
||||
# backup.ark.heptio.com/backup-volumes: certs
|
||||
podAnnotations: {}
|
||||
|
||||
resources:
|
||||
limits:
|
||||
|
||||
Reference in New Issue
Block a user