mirror of https://github.com/kubernetes/kops.git
Fix a bug in setting env variable for amazon vpc cni
This commit is contained in:
parent
dc2db03de2
commit
938ff9c0a6
|
|
@ -88,7 +88,7 @@ echo "ADMIN_ACCESS=${ADMIN_ACCESS}"
|
||||||
create_args=()
|
create_args=()
|
||||||
create_args+=("--networking=${CNI_PLUGIN:-calico}")
|
create_args+=("--networking=${CNI_PLUGIN:-calico}")
|
||||||
if [[ "${CNI_PLUGIN}" == "amazonvpc" ]]; then
|
if [[ "${CNI_PLUGIN}" == "amazonvpc" ]]; then
|
||||||
create_args+=("--set spec.networking.amazonvpc.env.ENABLE_PREFIX_DELEGATION=true")
|
create_args+=("--set spec.networking.amazonvpc.env=ENABLE_PREFIX_DELEGATION=true")
|
||||||
fi
|
fi
|
||||||
# INSTANCE_IMAGE configures the image used for control plane and kube nodes
|
# INSTANCE_IMAGE configures the image used for control plane and kube nodes
|
||||||
create_args+=("--image=${INSTANCE_IMAGE:-ssm:/aws/service/canonical/ubuntu/server/20.04/stable/current/arm64/hvm/ebs-gp2/ami-id}")
|
create_args+=("--image=${INSTANCE_IMAGE:-ssm:/aws/service/canonical/ubuntu/server/20.04/stable/current/arm64/hvm/ebs-gp2/ami-id}")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue