This repository was archived by the owner on Sep 30, 2020. It is now read-only.
File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ func newDefaultCluster() *Cluster {
65
65
CreateRecordSet : false ,
66
66
RecordSetTTL : 300 ,
67
67
Subnets : []* Subnet {},
68
+ MapPublicIPs : true ,
68
69
Experimental : experimental ,
69
70
}
70
71
}
@@ -167,6 +168,7 @@ type Cluster struct {
167
168
StackTags map [string ]string `yaml:"stackTags,omitempty"`
168
169
UseCalico bool `yaml:"useCalico,omitempty"`
169
170
Subnets []* Subnet `yaml:"subnets,omitempty"`
171
+ MapPublicIPs bool `yaml:"mapPublicIPs,omitempty"`
170
172
Experimental Experimental `yaml:"experimental"`
171
173
providedEncryptService encryptService
172
174
}
Original file line number Diff line number Diff line change @@ -125,6 +125,10 @@ kmsKeyArn: "{{.KMSKeyARN}}"
125
125
# IP address of Kubernetes dns service (must be contained by serviceCIDR)
126
126
# dnsServiceIP: 10.3.0.10
127
127
128
+ # Uncomment to provision nodes without a public IP. This assumes your VPC route table is setup to route to the internet via a NAT gateway.
129
+ # If you did not set vpcId and routeTableId the cluster will not bootstrap.
130
+ # mapPublicIPs: false
131
+
128
132
# Expiration in days from creation time of TLS assets. By default, the CA will
129
133
# expire in 10 years and the server and client certificates will expire in 1
130
134
# year.
Original file line number Diff line number Diff line change 341
341
"KeyName" : " {{$.KeyName}}" ,
342
342
"NetworkInterfaces" : [
343
343
{
344
- "AssociatePublicIpAddress" : true ,
344
+ "AssociatePublicIpAddress" : {{ .MapPublicIPs }} ,
345
345
"DeleteOnTermination" : true ,
346
346
"DeviceIndex" : " 0" ,
347
347
"GroupSet" : [
452
452
"Protocol" : " TCP"
453
453
}
454
454
],
455
+ {{if .MapPublicIPs }}
456
+ "Scheme" : " internet-facing" ,
457
+ {{else }}
458
+ "Scheme" : " internal" ,
459
+ {{end }}
455
460
"SecurityGroups" : [
456
461
{ "Ref" : " SecurityGroupElbAPIServer" }
457
462
]
794
799
"Properties" : {
795
800
"AvailabilityZone" : " {{$subnet.AvailabilityZone}}" ,
796
801
"CidrBlock" : " {{$subnet.InstanceCIDR}}" ,
797
- "MapPublicIpOnLaunch" : true ,
802
+ "MapPublicIpOnLaunch" : {{ .MapPublicIPs }} ,
798
803
"Tags" : [
799
804
{
800
805
"Key" : " KubernetesCluster" ,
You can’t perform that action at this time.
0 commit comments