diff --git a/charts/kube-plex/README.md b/charts/kube-plex/README.md index 9d0a3c7..7ba3871 100644 --- a/charts/kube-plex/README.md +++ b/charts/kube-plex/README.md @@ -48,5 +48,7 @@ The following tables lists the configurable parameters of the Plex chart and the | `proxy.http` | HTTP_PROXY value 'http://proxy.lan:8080' | `{}` | | `proxy.https` | HTTPS_PROXY value 'http://proxy.lan:8080' | `{}` | | `proxy.noproxy` | NO_PROXY value 'localhost,127.0.0.1,10.96.0.0/12,10.244.0.0/12' | `{}` | +| `tolerations` | Pod tolerations | `[]` | +| `affinity` | Pod affinity configuration | `{}` | Read through the [values.yaml](values.yaml) file. It has several commented out suggested values. diff --git a/charts/kube-plex/templates/deployment.yaml b/charts/kube-plex/templates/deployment.yaml index 1f19f53..fe197e7 100644 --- a/charts/kube-plex/templates/deployment.yaml +++ b/charts/kube-plex/templates/deployment.yaml @@ -179,3 +179,11 @@ spec: {{- end }} - name: shared emptyDir: {} + {{- with .Values.affinity }} + affinity: +{{ toYaml . | indent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: +{{ toYaml . | indent 8 }} + {{- end }} diff --git a/charts/kube-plex/values.yaml b/charts/kube-plex/values.yaml index 35238c8..afb2c76 100644 --- a/charts/kube-plex/values.yaml +++ b/charts/kube-plex/values.yaml @@ -125,3 +125,10 @@ proxy: # http: "http://proxy:8080" # https: "https://proxy:8080" # noproxy: "localhost,127.0.0.1,10.96.0.0/12,10.244.0.0/12" + + +# allows setting which taints kubeplex tolerates +tolerations: [] + +# allows specifying node affinity +affinity: {}