Skip to content

Commit

Permalink
Update IPv6 settings for AWS EBS CSI driver
Browse files Browse the repository at this point in the history
  • Loading branch information
hakman committed Nov 23, 2021
1 parent 6845a8e commit e15791e
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ spec:
- name: ebs-plugin
securityContext:
privileged: true
image: k8s.gcr.io/provider-aws/aws-ebs-csi-driver:{{ .Version }}
image: hakman/aws-ebs-csi-driver:test-aws-sdk-go-1-42-2
args:
- node
- --endpoint=$(CSI_ENDPOINT)
Expand All @@ -296,6 +296,8 @@ spec:
- --v=2
env:
{{- if IsIPv6Only }}
- name: AWS_USE_DUALSTACK_ENDPOINT
value: "true"
- name: AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE
value: IPv6
{{- end }}
Expand Down Expand Up @@ -429,21 +431,20 @@ spec:
{{ end }}
containers:
- name: ebs-plugin
image: k8s.gcr.io/provider-aws/aws-ebs-csi-driver:{{ .Version }}
image: hakman/aws-ebs-csi-driver:test-aws-sdk-go-1-42-2
imagePullPolicy: IfNotPresent
args:
- controller
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
- --k8s-tag-cluster-id={{ ClusterName }}
- "--extra-tags={{ CloudLabels }}"
- --v=5
- --v=9
- --aws-sdk-debug-log
env:
{{- if IsIPv6Only }}
# TODO: Replace with "AWS_USE_DUALSTACK_ENDPOINT=true" when the relevant PR is merged:
# https://github.com/aws/aws-sdk-go/pull/3938
- name: AWS_EC2_ENDPOINT
value: https://api.ec2.{{ Region }}.aws
- name: AWS_USE_DUALSTACK_ENDPOINT
value: "true"
- name: AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE
value: IPv6
{{- end }}
Expand Down

0 comments on commit e15791e

Please sign in to comment.