mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-24 16:09:08 +00:00
[media-common] Add openvpn add-on
This commit is contained in:
parent
1eb548d382
commit
451d0510c2
@ -2,10 +2,16 @@ apiVersion: v2
|
|||||||
name: media-common
|
name: media-common
|
||||||
description: Common dependancy chart for media ecosystem containers
|
description: Common dependancy chart for media ecosystem containers
|
||||||
type: application
|
type: application
|
||||||
version: 1.0.1
|
version: 1.1.0
|
||||||
keywords:
|
keywords:
|
||||||
- media-common
|
- media-common
|
||||||
home: https://github.com/k8s-at-home/charts/tree/master/charts/media-common
|
home: https://github.com/k8s-at-home/charts/tree/master/charts/media-common
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: DirtyCajunRice
|
- name: DirtyCajunRice
|
||||||
email: nick@cajun.pro
|
email: nick@cajun.pro
|
||||||
|
dependencies:
|
||||||
|
- name: media-common-openvpn
|
||||||
|
repository: https://k8s-at-home.com/charts/
|
||||||
|
version: 1.0.0
|
||||||
|
condition: openvpn.enabled
|
||||||
|
alias: openvpn
|
||||||
|
@ -50,3 +50,27 @@ Selector labels
|
|||||||
app.kubernetes.io/name: {{ include "media-common.name" . }}
|
app.kubernetes.io/name: {{ include "media-common.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Additional Containers
|
||||||
|
*/}}
|
||||||
|
{{- define "media-common.additionalContainers" -}}
|
||||||
|
{{- if .Values.additionalContainers }}
|
||||||
|
{{- toYaml .Values.additionalContainers }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.openvpn.enabled }}
|
||||||
|
{{ include "media-common.openvpn.container" . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Additional Volumes
|
||||||
|
*/}}
|
||||||
|
{{- define "media-common.additionalVolumes" -}}
|
||||||
|
{{- if .Values.additionalVolumes }}
|
||||||
|
{{- toYaml .Values.additionalVolumes }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.openvpn.enabled }}
|
||||||
|
{{ include "media-common.openvpn.volume" . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
8
charts/media-common/templates/addon-openvpn.yaml
Normal file
8
charts/media-common/templates/addon-openvpn.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{{- if .Values.openvpn.enabled -}}
|
||||||
|
---
|
||||||
|
{{ include "media-common.openvpn.configmap" . }}
|
||||||
|
---
|
||||||
|
{{ include "media-common.openvpn.secret" . }}
|
||||||
|
---
|
||||||
|
{{ include "media-common.openvpn.networkpolicy" . }}
|
||||||
|
{{- end -}}
|
@ -74,6 +74,7 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- include "media-common.additionalContainers" . | nindent 8 }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
{{- if .Values.persistence.config.enabled }}
|
{{- if .Values.persistence.config.enabled }}
|
||||||
@ -87,9 +88,7 @@ spec:
|
|||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ if .Values.persistence.media.existingClaim }}{{ .Values.persistence.media.existingClaim }}{{- else }}{{ template "media-common.fullname" . }}-media{{- end }}
|
claimName: {{ if .Values.persistence.media.existingClaim }}{{ .Values.persistence.media.existingClaim }}{{- else }}{{ template "media-common.fullname" . }}-media{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.additionalVolumes }}
|
{{- include "media-common.additionalVolumes" . | nindent 8 }}
|
||||||
{{- toYaml .Values.additionalVolumes | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ toYaml . | indent 8 }}
|
{{ toYaml . | indent 8 }}
|
||||||
|
@ -75,6 +75,7 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- include "media-common.additionalContainers" . | nindent 8 }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
{{- if .Values.persistence.config.enabled }}
|
{{- if .Values.persistence.config.enabled }}
|
||||||
@ -88,9 +89,7 @@ spec:
|
|||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ if .Values.persistence.media.existingClaim }}{{ .Values.persistence.media.existingClaim }}{{- else }}{{ template "media-common.fullname" . }}-media{{- end }}
|
claimName: {{ if .Values.persistence.media.existingClaim }}{{ .Values.persistence.media.existingClaim }}{{- else }}{{ template "media-common.fullname" . }}-media{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.additionalVolumes }}
|
{{- include "media-common.additionalVolumes" . | nindent 8 }}
|
||||||
{{- toYaml .Values.additionalVolumes | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ toYaml . | indent 8 }}
|
{{ toYaml . | indent 8 }}
|
||||||
|
@ -113,10 +113,17 @@ persistence:
|
|||||||
## Do not delete the pvc upon helm uninstall
|
## Do not delete the pvc upon helm uninstall
|
||||||
skipuninstall: false
|
skipuninstall: false
|
||||||
|
|
||||||
|
additionalContainers: []
|
||||||
|
|
||||||
additionalVolumes: []
|
additionalVolumes: []
|
||||||
|
|
||||||
additionalVolumeMounts: []
|
additionalVolumeMounts: []
|
||||||
|
|
||||||
|
# Enable the OpenVPN add-on here
|
||||||
|
# See https://github.com/k8s-at-home/charts/tree/master/charts/media-common-openvpn for more details
|
||||||
|
openvpn:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
podSecurityContext: {}
|
podSecurityContext: {}
|
||||||
# fsGroup: 2000
|
# fsGroup: 2000
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user