Added the possibility to specify affinity options to kube2iam chart (#4203)

This commit is contained in:
Maxime VISONNEAU
2018-03-27 13:11:03 -07:00
committed by k8s-ci-robot
parent 6020983d5c
commit a14c8a25d1
4 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: kube2iam
version: 0.8.2
version: 0.8.3
description: Provide IAM credentials to pods based on annotations.
keywords:
- kube2iam
+1
View File
@@ -41,6 +41,7 @@ The following table lists the configurable parameters of the kube2iam chart and
Parameter | Description | Default
--- | --- | ---
`affinity` | affinity configuration for pod assignment | `{}`
`extraArgs` | Additional container arguments | `{}`
`host.ip` | IP address of host | `$(HOST_IP)`
`host.iptables` | Add iptables rule | `false`
+4
View File
@@ -85,6 +85,10 @@ spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
serviceAccountName: {{ if .Values.rbac.create }}{{ template "kube2iam.fullname" . }}{{ else }}"{{ .Values.rbac.serviceAccountName }}"{{ end }}
tolerations:
+6 -1
View File
@@ -22,10 +22,15 @@ aws:
region: ""
## Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
##
nodeSelector: {}
## Affinity configuration for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
##
affinity: {}
## Annotations to be added to pods
##
podAnnotations: {}