Add affinity to node

This commit is contained in:
Carlos Rodriguez Hernandez
2019-09-04 13:36:49 +00:00
parent bdf9474ea5
commit 7d4bf4c172
4 changed files with 11 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: node
version: 11.1.4
version: 11.1.5
appVersion: 10.16.3
description: Event-driven I/O server-side JavaScript environment based on V8
keywords:

View File

@@ -104,6 +104,7 @@ The following table lists the configurable parameters of the Node chart and thei
| `ingress.secrets[0].name` | TLS Secret Name | `nil` |
| `ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` |
| `ingress.secrets[0].key` | TLS Secret Key | `nil` |
| `affinity` | Map of node/pod affinities | `{}` |
The above parameters map to the env variables defined in [bitnami/node](http://github.com/bitnami/bitnami-docker-node). For more information please refer to the [bitnami/node](http://github.com/bitnami/bitnami-docker-node) image documentation.

View File

@@ -160,3 +160,7 @@ spec:
{{- else }}
emptyDir: {}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}

View File

@@ -210,3 +210,8 @@ ingress:
# - name: node.local-tls
# key:
# certificate:
## Affinity for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}