mirror of https://github.com/kubernetes/kops.git
Fix EC2 IPv6 endpoint for EBS CSI Driver controller
This commit is contained in:
parent
8d49409d1f
commit
fa853add24
|
|
@ -296,10 +296,6 @@ spec:
|
|||
- --v=2
|
||||
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_EC2_METADATA_SERVICE_ENDPOINT_MODE
|
||||
value: IPv6
|
||||
{{- end }}
|
||||
|
|
@ -444,6 +440,10 @@ spec:
|
|||
- --v=5
|
||||
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_EC2_METADATA_SERVICE_ENDPOINT_MODE
|
||||
value: IPv6
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue