mirror of https://github.com/kubernetes/kops.git
Merge pull request #16262 from hakman/dns-none-aws-and-gce
Use dns=none for newly created clusters including for AWS and GCE
This commit is contained in:
commit
13d58b153b
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: minimal.example.com
|
name: minimal.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -41,7 +43,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.minimal.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cilium:
|
cilium:
|
||||||
|
|
@ -58,7 +59,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.complex.example.com
|
|
||||||
networkCIDR: 10.0.0.0/16
|
networkCIDR: 10.0.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -126,7 +125,7 @@ spec:
|
||||||
bastion:
|
bastion:
|
||||||
bastionPublicName: bastion.complex.example.com
|
bastionPublicName: bastion.complex.example.com
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,9 @@ spec:
|
||||||
- 10.3.0.0/16
|
- 10.3.0.0/16
|
||||||
- 10.4.0.0/16
|
- 10.4.0.0/16
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -56,7 +58,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.complex.example.com
|
|
||||||
networkCIDR: 10.0.0.0/16
|
networkCIDR: 10.0.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -94,7 +95,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@ metadata:
|
||||||
name: gce.example.com
|
name: gce.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -39,7 +40,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.21.0
|
kubernetesVersion: v1.21.0
|
||||||
masterPublicName: api.gce.example.com
|
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
nonMasqueradeCIDR: 100.64.0.0/10
|
nonMasqueradeCIDR: 100.64.0.0/10
|
||||||
|
|
@ -54,7 +54,7 @@ spec:
|
||||||
type: Public
|
type: Public
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: ha.example.com
|
name: ha.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -51,7 +53,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.ha.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -74,7 +75,7 @@ spec:
|
||||||
zone: us-test-1c
|
zone: us-test-1c
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: ha.example.com
|
name: ha.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -51,7 +53,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.21.0
|
kubernetesVersion: v1.21.0
|
||||||
masterPublicName: api.ha.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -74,7 +75,7 @@ spec:
|
||||||
zone: us-test-1c
|
zone: us-test-1c
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@ metadata:
|
||||||
name: ha-gce.example.com
|
name: ha-gce.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -46,7 +47,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.ha-gce.example.com
|
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
nonMasqueradeCIDR: 100.64.0.0/10
|
nonMasqueradeCIDR: 100.64.0.0/10
|
||||||
|
|
@ -61,7 +61,7 @@ spec:
|
||||||
type: Public
|
type: Public
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: ha.example.com
|
name: ha.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -51,7 +53,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.ha.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -66,7 +67,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: ha.example.com
|
name: ha.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -63,7 +65,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.ha.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -82,7 +83,7 @@ spec:
|
||||||
zone: us-test-1b
|
zone: us-test-1b
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.private.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -63,7 +62,7 @@ spec:
|
||||||
bastion:
|
bastion:
|
||||||
bastionPublicName: bastion.private.example.com
|
bastionPublicName: bastion.private.example.com
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.22.0
|
kubernetesVersion: v1.22.0
|
||||||
masterPublicName: api.ipv6.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
calico: {}
|
calico: {}
|
||||||
|
|
@ -67,7 +66,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: karpenter.example.com
|
name: karpenter.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -42,7 +44,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.23.0
|
kubernetesVersion: v1.23.0
|
||||||
masterPublicName: api.karpenter.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
calico: {}
|
calico: {}
|
||||||
|
|
@ -68,7 +69,7 @@ spec:
|
||||||
zone: us-test-1c
|
zone: us-test-1c
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: minimal.example.com
|
name: minimal.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -39,7 +41,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.24.0
|
kubernetesVersion: v1.24.0
|
||||||
masterPublicName: api.minimal.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -54,7 +55,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: minimal.example.com
|
name: minimal.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -39,7 +41,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.25.0
|
kubernetesVersion: v1.25.0
|
||||||
masterPublicName: api.minimal.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -54,7 +55,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: minimal.example.com
|
name: minimal.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -39,7 +41,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.minimal.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -54,7 +55,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@ metadata:
|
||||||
name: minimal.example.com
|
name: minimal.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -38,7 +39,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.minimal.example.com
|
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
nonMasqueradeCIDR: 100.64.0.0/10
|
nonMasqueradeCIDR: 100.64.0.0/10
|
||||||
|
|
@ -53,7 +53,7 @@ spec:
|
||||||
type: Public
|
type: Public
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: minimal.example.com
|
name: minimal.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -40,7 +42,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.minimal.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -58,7 +59,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: minimal.example.com
|
name: minimal.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -39,7 +41,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.minimal.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -54,7 +55,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: minimal.example.com
|
name: minimal.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -39,7 +41,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.27.0
|
kubernetesVersion: v1.27.0
|
||||||
masterPublicName: api.minimal.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -54,7 +55,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: minimal.example.com
|
name: minimal.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -39,7 +41,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.28.0
|
kubernetesVersion: v1.28.0
|
||||||
masterPublicName: api.minimal.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -54,7 +55,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@ metadata:
|
||||||
name: minimal.example.com
|
name: minimal.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -38,7 +39,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.29.0
|
kubernetesVersion: v1.29.0
|
||||||
masterPublicName: api.minimal.example.com
|
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
nonMasqueradeCIDR: 100.64.0.0/10
|
nonMasqueradeCIDR: 100.64.0.0/10
|
||||||
|
|
@ -53,7 +53,7 @@ spec:
|
||||||
type: Public
|
type: Public
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: minimal.example.com
|
name: minimal.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -39,7 +41,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.29.0
|
kubernetesVersion: v1.29.0
|
||||||
masterPublicName: api.minimal.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -54,7 +55,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: minimal.example.com
|
name: minimal.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -63,7 +65,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.minimal.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -78,7 +79,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.private.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -63,7 +62,7 @@ spec:
|
||||||
bastion:
|
bastion:
|
||||||
bastionPublicName: bastion.private.example.com
|
bastionPublicName: bastion.private.example.com
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: overrides.example.com
|
name: overrides.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -39,7 +41,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.overrides.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -57,7 +58,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.private.example.com
|
|
||||||
networkCIDR: 172.20.0.0/16
|
networkCIDR: 172.20.0.0/16
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
|
|
@ -66,7 +65,7 @@ spec:
|
||||||
bastion:
|
bastion:
|
||||||
bastionPublicName: bastion.private.example.com
|
bastionPublicName: bastion.private.example.com
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.private.example.com
|
|
||||||
networking:
|
networking:
|
||||||
cni: {}
|
cni: {}
|
||||||
nonMasqueradeCIDR: 100.64.0.0/10
|
nonMasqueradeCIDR: 100.64.0.0/10
|
||||||
|
|
@ -61,7 +60,7 @@ spec:
|
||||||
bastion:
|
bastion:
|
||||||
bastionPublicName: bastion.private.example.com
|
bastionPublicName: bastion.private.example.com
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.private-subnets.example.com
|
|
||||||
networkCIDR: 10.0.0.0/12
|
networkCIDR: 10.0.0.0/12
|
||||||
networkID: vpc-12345678
|
networkID: vpc-12345678
|
||||||
networking:
|
networking:
|
||||||
|
|
@ -63,7 +62,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: subnet.example.com
|
name: subnet.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -39,7 +41,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.subnet.example.com
|
|
||||||
networkCIDR: 10.0.0.0/12
|
networkCIDR: 10.0.0.0/12
|
||||||
networkID: vpc-12345678
|
networkID: vpc-12345678
|
||||||
networking:
|
networking:
|
||||||
|
|
@ -56,7 +57,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: subnet.example.com
|
name: subnet.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -39,7 +41,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.subnet.example.com
|
|
||||||
networkCIDR: 10.0.0.0/12
|
networkCIDR: 10.0.0.0/12
|
||||||
networkID: vpc-12345678
|
networkID: vpc-12345678
|
||||||
networking:
|
networking:
|
||||||
|
|
@ -56,7 +57,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,9 @@ metadata:
|
||||||
name: vpc.example.com
|
name: vpc.example.com
|
||||||
spec:
|
spec:
|
||||||
api:
|
api:
|
||||||
dns: {}
|
loadBalancer:
|
||||||
|
class: Network
|
||||||
|
type: Public
|
||||||
authorization:
|
authorization:
|
||||||
rbac: {}
|
rbac: {}
|
||||||
channel: stable
|
channel: stable
|
||||||
|
|
@ -39,7 +41,6 @@ spec:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
- ::/0
|
- ::/0
|
||||||
kubernetesVersion: v1.26.0
|
kubernetesVersion: v1.26.0
|
||||||
masterPublicName: api.vpc.example.com
|
|
||||||
networkCIDR: 10.0.0.0/12
|
networkCIDR: 10.0.0.0/12
|
||||||
networkID: vpc-12345678
|
networkID: vpc-12345678
|
||||||
networking:
|
networking:
|
||||||
|
|
@ -55,7 +56,7 @@ spec:
|
||||||
zone: us-test-1a
|
zone: us-test-1a
|
||||||
topology:
|
topology:
|
||||||
dns:
|
dns:
|
||||||
type: Public
|
type: None
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1418,13 +1418,12 @@ func setupDNSTopology(opt *NewClusterOptions, cluster *api.Cluster) error {
|
||||||
if opt.DNSZone != "" {
|
if opt.DNSZone != "" {
|
||||||
// Use dns=public if zone is specified
|
// Use dns=public if zone is specified
|
||||||
cluster.Spec.Networking.Topology.DNS = api.DNSTypePublic
|
cluster.Spec.Networking.Topology.DNS = api.DNSTypePublic
|
||||||
} else if cluster.UsesLegacyGossip() {
|
|
||||||
// Use dns=none if .k8s.local is specified instead of Gossip
|
|
||||||
klog.Warningf("Gossip is deprecated, using None DNS instead")
|
|
||||||
cluster.Spec.Networking.Topology.DNS = api.DNSTypeNone
|
|
||||||
} else if cluster.Spec.GetCloudProvider() == api.CloudProviderAWS || cluster.Spec.GetCloudProvider() == api.CloudProviderGCE {
|
|
||||||
cluster.Spec.Networking.Topology.DNS = api.DNSTypePublic
|
|
||||||
} else {
|
} else {
|
||||||
|
if cluster.UsesLegacyGossip() {
|
||||||
|
// Warn about using dns=none instead of Gossip
|
||||||
|
klog.Warningf("Gossip is deprecated, using None DNS instead")
|
||||||
|
}
|
||||||
|
// Default to dns=none instead of dns=public for all cloud providers
|
||||||
cluster.Spec.Networking.Topology.DNS = api.DNSTypeNone
|
cluster.Spec.Networking.Topology.DNS = api.DNSTypeNone
|
||||||
}
|
}
|
||||||
case "public":
|
case "public":
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue