Merge pull request #14884 from johngmyers/cp-hop-1

AWS: set IMDS hop limit 1 on all new clusters
This commit is contained in:
Kubernetes Prow Robot 2023-01-11 23:48:55 -08:00 committed by GitHub
commit 8b8b4eeab1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
83 changed files with 72 additions and 114 deletions

View File

@ -47,14 +47,14 @@ spec:
## instanceMetadata ## instanceMetadata
By default, IMDSv2 is enabled for newly created clusters. The default hop limit is 1 for all node roles, except for control plane nodes with Kubernetes version lower than 1.26 or IRSA disabled, for which the default hop limit is 3. As of Kubernetes 1.27, these defaults are applied to existing clusters also. By default, IMDSv2 is enabled for newly created clusters. As of Kubernetes 1.27, this default is applied to existing clusters as well.
The default hop limit is 1 for all node roles.
To enable IMDSv2 add the following configuration to the instance group: To enable IMDSv2, add the following configuration to the instance group:
```YAML ```YAML
spec: spec:
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 1
httpTokens: required httpTokens: required
``` ```

View File

@ -8,7 +8,8 @@ This is a document to gather the release notes prior to the release.
## AWS ## AWS
* As of Kubernetes version 1.27, all nodes will default to running with the instance metadata service enabled, with max hop limit of 1. Control plane nodes with IRSA disabled will default to running with a max hop limit of 3. * As of Kubernetes version 1.27, all nodes will default to running with instance-metadata-service tokens required, with a max hop limit of 1.
Newly created clusters will be configured as necessary to have these settings.
## GCP ## GCP

View File

@ -288,8 +288,6 @@ func (b *AutoscalingGroupModelBuilder) buildLaunchTemplateTask(c *fi.CloudupMode
if ig.Spec.InstanceMetadata != nil && ig.Spec.InstanceMetadata.HTTPPutResponseHopLimit != nil { if ig.Spec.InstanceMetadata != nil && ig.Spec.InstanceMetadata.HTTPPutResponseHopLimit != nil {
lt.HTTPPutResponseHopLimit = ig.Spec.InstanceMetadata.HTTPPutResponseHopLimit lt.HTTPPutResponseHopLimit = ig.Spec.InstanceMetadata.HTTPPutResponseHopLimit
} else if ig.IsControlPlane() && (b.Cluster.IsKubernetesLT("1.26") || !b.UseServiceAccountExternalPermissions()) {
lt.HTTPPutResponseHopLimit = fi.PtrTo[int64](3)
} }
if ig.Spec.InstanceMetadata != nil && ig.Spec.InstanceMetadata.HTTPTokens != nil { if ig.Spec.InstanceMetadata != nil && ig.Spec.InstanceMetadata.HTTPTokens != nil {

View File

@ -70,7 +70,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -65,7 +65,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -116,7 +116,6 @@ metadata:
spec: spec:
image: ami-control-plane image: ami-control-plane
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -86,7 +86,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1
@ -107,7 +106,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1
@ -128,7 +126,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -86,7 +86,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1
@ -107,7 +106,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1
@ -128,7 +126,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -78,7 +78,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1
@ -99,7 +98,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1
@ -120,7 +118,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -94,7 +94,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1
@ -115,7 +114,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1
@ -136,7 +134,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1
@ -157,7 +154,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1
@ -178,7 +174,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -96,7 +96,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -79,7 +79,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -80,7 +80,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -66,7 +66,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -66,7 +66,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -66,7 +66,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -66,7 +66,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -66,7 +66,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-arm64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-arm64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m6g.xlarge machineType: m6g.xlarge
maxSize: 1 maxSize: 1

View File

@ -70,7 +70,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 1
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -66,7 +66,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -90,7 +90,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -96,7 +96,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -69,7 +69,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -102,7 +102,6 @@ spec:
- sg-exampleid4 - sg-exampleid4
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -75,7 +75,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -68,7 +68,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -68,7 +68,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -67,7 +67,6 @@ metadata:
spec: spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20221206
instanceMetadata: instanceMetadata:
httpPutResponseHopLimit: 3
httpTokens: required httpTokens: required
machineType: m3.medium machineType: m3.medium
maxSize: 1 maxSize: 1

View File

@ -522,7 +522,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -543,7 +543,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-bastionuserdata-exampl
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -423,7 +423,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-cas-priority-expander-
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -423,7 +423,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-cas-priority-expander-
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -322,7 +322,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-compress-example-com"
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -333,7 +333,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-containerd-example-com
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -333,7 +333,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-containerd-example-com
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -409,7 +409,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-123-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -348,7 +348,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-docker-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -459,7 +459,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-existing-iam-example-c
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {
@ -542,7 +542,7 @@ resource "aws_launch_template" "master-us-test-1b-masters-existing-iam-example-c
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {
@ -625,7 +625,7 @@ resource "aws_launch_template" "master-us-test-1c-masters-existing-iam-example-c
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -562,7 +562,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-existingsg-example-com
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {
@ -645,7 +645,7 @@ resource "aws_launch_template" "master-us-test-1b-masters-existingsg-example-com
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {
@ -728,7 +728,7 @@ resource "aws_launch_template" "master-us-test-1c-masters-existingsg-example-com
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -333,7 +333,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -337,7 +337,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-externallb-example-com
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -411,7 +411,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-externalpolicies-examp
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -531,7 +531,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-ha-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {
@ -614,7 +614,7 @@ resource "aws_launch_template" "master-us-test-1b-masters-ha-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {
@ -697,7 +697,7 @@ resource "aws_launch_template" "master-us-test-1c-masters-ha-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -436,7 +436,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -610,7 +610,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -623,7 +623,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -608,7 +608,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -608,7 +608,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -434,7 +434,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -419,7 +419,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -333,7 +333,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-etcd-example-c
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -329,7 +329,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -396,7 +396,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-ipv6-example-c
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "enabled" http_protocol_ipv6 = "enabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -396,7 +396,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-ipv6-example-c
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "enabled" http_protocol_ipv6 = "enabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -396,7 +396,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-ipv6-example-c
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "enabled" http_protocol_ipv6 = "enabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -396,7 +396,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-ipv6-example-c
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "enabled" http_protocol_ipv6 = "enabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -333,7 +333,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-this-is-truly-a-really
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -341,7 +341,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-warmpool-examp
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -333,7 +333,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -333,7 +333,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-k8s-local" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -549,7 +549,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-mixedinstances-example
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {
@ -632,7 +632,7 @@ resource "aws_launch_template" "master-us-test-1b-masters-mixedinstances-example
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {
@ -715,7 +715,7 @@ resource "aws_launch_template" "master-us-test-1c-masters-mixedinstances-example
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -549,7 +549,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-mixedinstances-example
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {
@ -632,7 +632,7 @@ resource "aws_launch_template" "master-us-test-1b-masters-mixedinstances-example
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {
@ -715,7 +715,7 @@ resource "aws_launch_template" "master-us-test-1c-masters-mixedinstances-example
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -333,7 +333,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-nthimdsprocessor-longc
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -338,7 +338,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -524,7 +524,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-private-shared-ip-exam
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -519,7 +519,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-private-shared-subnet-
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -542,7 +542,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-privatecanal-example-c
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -542,7 +542,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-privatecilium-example-
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -542,7 +542,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-privatecilium-example-
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -542,7 +542,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-privatecilium-example-
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -559,7 +559,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-privateciliumadvanced-
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -625,7 +625,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-privatedns1-example-co
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -533,7 +533,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-privatedns2-example-co
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -542,7 +542,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-privateflannel-example
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -548,7 +548,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-privatekopeio-example-
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -565,7 +565,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-privateweave-example-c
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -438,7 +438,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -324,7 +324,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-sharedsubnet-example-c
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -324,7 +324,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-sharedvpc-example-com"
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -378,7 +378,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-ipv6-example-c
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "enabled" http_protocol_ipv6 = "enabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -524,7 +524,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-unmanaged-example-com"
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -354,7 +354,7 @@ resource "aws_launch_template" "master-us-test-1a-masters-minimal-example-com" {
metadata_options { metadata_options {
http_endpoint = "enabled" http_endpoint = "enabled"
http_protocol_ipv6 = "disabled" http_protocol_ipv6 = "disabled"
http_put_response_hop_limit = 3 http_put_response_hop_limit = 1
http_tokens = "optional" http_tokens = "optional"
} }
monitoring { monitoring {

View File

@ -878,15 +878,9 @@ func setupControlPlane(opt *NewClusterOptions, cluster *api.Cluster, zoneToSubne
g.Spec.Zones = []string{zone} g.Spec.Zones = []string{zone}
} }
if cluster.IsKubernetesLT("1.27") { if cluster.IsKubernetesLT("1.27") && cloudProvider == api.CloudProviderAWS {
if cloudProvider == api.CloudProviderAWS { g.Spec.InstanceMetadata = &api.InstanceMetadataOptions{
g.Spec.InstanceMetadata = &api.InstanceMetadataOptions{ HTTPTokens: fi.PtrTo("required"),
HTTPPutResponseHopLimit: fi.PtrTo(int64(3)),
HTTPTokens: fi.PtrTo("required"),
}
}
if cluster.IsKubernetesGTE("1.26") && fi.ValueOf(cluster.Spec.IAM.UseServiceAccountExternalPermissions) {
g.Spec.InstanceMetadata.HTTPPutResponseHopLimit = fi.PtrTo(int64(1))
} }
} }