Browse Source
Add support for including annotations on aws-ebs-csi-controller (#8779)
* Add support for including annotations on aws-ebs-csi-controller
* update comment to specify role arn
pull/8856/head
David Louks
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
11 additions and
0 deletions
-
roles/kubernetes-apps/csi_driver/aws_ebs/defaults/main.yml
-
roles/kubernetes-apps/csi_driver/aws_ebs/templates/aws-ebs-csi-controllerservice.yml.j2
|
@ -4,3 +4,8 @@ aws_ebs_csi_enable_volume_snapshot: false |
|
|
aws_ebs_csi_enable_volume_resizing: false |
|
|
aws_ebs_csi_enable_volume_resizing: false |
|
|
aws_ebs_csi_controller_replicas: 1 |
|
|
aws_ebs_csi_controller_replicas: 1 |
|
|
aws_ebs_csi_plugin_image_tag: latest |
|
|
aws_ebs_csi_plugin_image_tag: latest |
|
|
|
|
|
|
|
|
|
|
|
# Add annotions to ebs_csi_controller. Useful if using kube2iam for role assumption |
|
|
|
|
|
# aws_ebs_csi_annotations: |
|
|
|
|
|
# - key: iam.amazonaws.com/role |
|
|
|
|
|
# value: your-ebs-role-arn |
|
@ -15,6 +15,12 @@ spec: |
|
|
labels: |
|
|
labels: |
|
|
app: ebs-csi-controller |
|
|
app: ebs-csi-controller |
|
|
app.kubernetes.io/name: aws-ebs-csi-driver |
|
|
app.kubernetes.io/name: aws-ebs-csi-driver |
|
|
|
|
|
{% if aws_ebs_csi_annotations is defined %} |
|
|
|
|
|
annotations: |
|
|
|
|
|
{% for annotation in aws_ebs_csi_annotations %} |
|
|
|
|
|
{{ annotation.key }}: {{ annotation.value }} |
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
{% endif %} |
|
|
spec: |
|
|
spec: |
|
|
nodeSelector: |
|
|
nodeSelector: |
|
|
kubernetes.io/os: linux |
|
|
kubernetes.io/os: linux |
|
|