mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-02 23:39:03 +00:00
Merge pull request #45 from bjw-s/media-common
[media-common] Add openvpn add-on
This commit is contained in:
commit
63b87146a3
@ -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
|
||||||
|
@ -22,4 +22,9 @@ These values will normally be nested as it is a dependency, for example:
|
|||||||
```yaml
|
```yaml
|
||||||
radarr:
|
radarr:
|
||||||
<values>
|
<values>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Add-ons
|
||||||
|
|
||||||
|
### OpenVPN
|
||||||
|
It is possible to enable an OpenVPN add-on by setting `openvpn.enabled: true`. For more information refer to [k8s-at-home/media-common-openvpn](https://github.com/k8s-at-home/charts/tree/master/charts/media-common-openvpn)
|
||||||
|
@ -1,6 +1,30 @@
|
|||||||
|
---
|
||||||
image:
|
image:
|
||||||
organization: linuxserver
|
organization: linuxserver
|
||||||
repository: radarr
|
repository: radarr
|
||||||
tag: latest
|
tag: latest
|
||||||
service:
|
service:
|
||||||
port: 7878
|
port: 7878
|
||||||
|
|
||||||
|
openvpn:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
image:
|
||||||
|
repository: dperson/openvpn-client
|
||||||
|
tag: latest
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
scripts:
|
||||||
|
up:
|
||||||
|
down:
|
||||||
|
|
||||||
|
networkPolicy:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
livenessProbe:
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 10
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- echo
|
||||||
|
- success
|
||||||
|
@ -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