Skip to content

Commit

Permalink
Add nodeselector, affinity, podAnnotations for efs-provisioner (helm#…
Browse files Browse the repository at this point in the history
…10205)

Signed-off-by: Vladimir Syromyatnikov <[email protected]>
  • Loading branch information
SweetOps authored and towolf committed Feb 7, 2019
1 parent 1a7d34b commit 1fbcd58
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 5 deletions.
2 changes: 1 addition & 1 deletion stable/efs-provisioner/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: efs-provisioner
description: A Helm chart for the AWS EFS external storage provisioner
version: 0.1.5
version: 0.2.0
appVersion: v2.1.0-k8s1.11
home: https://github.com/kubernetes-incubator/external-storage/tree/master/aws/efs
sources:
Expand Down
21 changes: 17 additions & 4 deletions stable/efs-provisioner/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Helm chart for 'efs-provisioner'

The Kubernetes project provides an AWS [EFS provisioner](https://github.com/kubernetes-incubator/external-storage/tree/master/aws/efs)
The Kubernetes project provides an AWS [EFS provisioner](https://github.com/kubernetes-incubator/external-storage/tree/master/aws/efs)
that is used to fulfill PersistentVolumeClaims with EFS PersistentVolumes.

"The efs-provisioner allows you to mount EFS storage as PersistentVolumes in kubernetes.
It consists of a container that has access to an AWS EFS resource. The container reads
a configmap which contains the EFS filesystem ID, the AWS region and the name you want
"The efs-provisioner allows you to mount EFS storage as PersistentVolumes in kubernetes.
It consists of a container that has access to an AWS EFS resource. The container reads
a configmap which contains the EFS filesystem ID, the AWS region and the name you want
to use for your efs-provisioner. This name will be used later when you create a storage class."

This chart deploys the EFS Provisioner and a StorageClass for EFS volumes (optionally as the default).
Expand Down Expand Up @@ -96,6 +96,19 @@ rbac:
create: true
serviceAccountName: ""
## Annotations to be added to deployment
##
podAnnotations: {}
# iam.amazonaws.com/role: efs-provisioner-role
## Node labels for pod assignment
##
nodeSelector: {}
# Affinity for pod assignment
# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
affinity: {}
## Configure resources
##
resources: {}
Expand Down
12 changes: 12 additions & 0 deletions stable/efs-provisioner/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
type: Recreate
template:
metadata:
{{- if .Values.podAnnotations }}
annotations:
{{ toYaml .Values.podAnnotations | indent 8}}
{{- end }}
labels:
app: {{ template "efs-provisioner.name" . }}
release: "{{ .Release.Name }}"
Expand Down Expand Up @@ -73,3 +77,11 @@ spec:
server: {{ .Values.efsProvisioner.efsFileSystemId }}.efs.{{ .Values.efsProvisioner.awsRegion }}.amazonaws.com
path: /
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
13 changes: 13 additions & 0 deletions stable/efs-provisioner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,19 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""

## Annotations to be added to deployment
##
podAnnotations: {}
# iam.amazonaws.com/role: efs-provisioner-role

## Node labels for pod assignment
##
nodeSelector: {}

# Affinity for pod assignment
# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
affinity: {}

## Configure resources
##
resources: {}
Expand Down

0 comments on commit 1fbcd58

Please sign in to comment.