Add affinity and tolerations (#75)

* Add affinity and tolerations

This is useful when running on clusters with more than one worker where one would like to pin plex to a specific node.

* Add docs to vaules.yaml

* Added tolerations and affinity to readme
This commit is contained in:
Cristian
2020-01-08 05:52:09 -08:00
committed by Zee Ahmed
parent b49dc17484
commit a8c616065c
3 changed files with 17 additions and 0 deletions
+2
View File
@@ -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.http` | HTTP_PROXY value 'http://proxy.lan:8080' | `{}` |
| `proxy.https` | HTTPS_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' | `{}` | | `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. Read through the [values.yaml](values.yaml) file. It has several commented out suggested values.
@@ -179,3 +179,11 @@ spec:
{{- end }} {{- end }}
- name: shared - name: shared
emptyDir: {} emptyDir: {}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
+7
View File
@@ -125,3 +125,10 @@ proxy:
# http: "http://proxy:8080" # http: "http://proxy:8080"
# https: "https://proxy:8080" # https: "https://proxy:8080"
# noproxy: "localhost,127.0.0.1,10.96.0.0/12,10.244.0.0/12" # 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: {}