Merge pull request #14507 from johngmyers/internalname

Stop making MasterInternalName configurable
This commit is contained in:
Kubernetes Prow Robot 2022-11-18 13:38:29 -08:00 committed by GitHub
commit d405d4c5a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
211 changed files with 45 additions and 243 deletions

View File

@ -66,7 +66,7 @@ spec:
*Openstack only* *Openstack only*
As of kOps 1.12.0 it is possible to use the load balancer internally by setting the `useForInternalApi: true`. As of kOps 1.12.0 it is possible to use the load balancer internally by setting the `useForInternalApi: true`.
This will point both `masterPublicName` and `masterInternalName` to the load balancer. You can therefore set both of these to the same value in this configuration. This will point `masterPublicName` to the load balancer.
```yaml ```yaml
spec: spec:

View File

@ -45,7 +45,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: 1.17.2 kubernetesVersion: 1.17.2
masterInternalName: api.internal.simple.k8s.local
masterPublicName: api.simple.k8s.local masterPublicName: api.simple.k8s.local
networking: networking:
kubenet: {} kubenet: {}

View File

@ -895,9 +895,9 @@ spec:
DNS This is because some clouds let us define a managed zone foo.bar, DNS This is because some clouds let us define a managed zone foo.bar,
and then have kubernetes.dev.foo.bar, without needing to define and then have kubernetes.dev.foo.bar, without needing to define
dev.foo.bar as a hosted zone. DNSZone will probably be a suffix dev.foo.bar as a hosted zone. DNSZone will probably be a suffix
of the MasterPublicName and MasterInternalName Note that DNSZone of the MasterPublicName. Note that DNSZone can either by the host
can either by the host name of the zone (containing dots), or can name of the zone (containing dots), or can be an identifier for
be an identifier for the zone. the zone.
type: string type: string
docker: docker:
description: DockerConfig is the configuration for docker description: DockerConfig is the configuration for docker
@ -3933,8 +3933,7 @@ spec:
be a "spec" like stable) be a "spec" like stable)
type: string type: string
masterInternalName: masterInternalName:
description: MasterInternalName is the internal DNS name for the master description: MasterInternalName is unused.
nodes
type: string type: string
masterKubelet: masterKubelet:
description: MasterKubelet is the kubelet configuration for nodes description: MasterKubelet is the kubelet configuration for nodes

View File

@ -234,7 +234,7 @@ func (c *NodeupModelContext) BuildIssuedKubeconfig(name string, subject nodetask
// @note: use https even for local connections, so we can turn off the insecure port // @note: use https even for local connections, so we can turn off the insecure port
kubeConfig.ServerURL = "https://127.0.0.1" kubeConfig.ServerURL = "https://127.0.0.1"
} else { } else {
kubeConfig.ServerURL = "https://" + c.Cluster.Spec.MasterInternalName kubeConfig.ServerURL = "https://" + c.Cluster.APIInternalName()
} }
ctx.AddTask(kubeConfig) ctx.AddTask(kubeConfig)
return kubeConfig.GetConfig() return kubeConfig.GetConfig()
@ -278,7 +278,7 @@ func (c *NodeupModelContext) BuildBootstrapKubeconfig(name string, ctx *fi.Model
// @note: use https even for local connections, so we can turn off the insecure port // @note: use https even for local connections, so we can turn off the insecure port
kubeConfig.ServerURL = "https://127.0.0.1" kubeConfig.ServerURL = "https://127.0.0.1"
} else { } else {
kubeConfig.ServerURL = "https://" + c.Cluster.Spec.MasterInternalName kubeConfig.ServerURL = "https://" + c.Cluster.APIInternalName()
} }
err = ctx.EnsureTask(kubeConfig) err = ctx.EnsureTask(kubeConfig)
@ -323,7 +323,7 @@ func (c *NodeupModelContext) BuildBootstrapKubeconfig(name string, ctx *fi.Model
// This code path is used for the kubelet cert in Kubernetes 1.18 and earlier. // This code path is used for the kubelet cert in Kubernetes 1.18 and earlier.
kubeConfig.ServerURL = "https://127.0.0.1" kubeConfig.ServerURL = "https://127.0.0.1"
} else { } else {
kubeConfig.ServerURL = "https://" + c.Cluster.Spec.MasterInternalName kubeConfig.ServerURL = "https://" + c.Cluster.APIInternalName()
} }
err = kubeConfig.Run(nil) err = kubeConfig.Run(nil)

View File

@ -37,7 +37,7 @@ func (b *EtcHostsBuilder) Build(c *fi.ModelBuilderContext) error {
if b.IsMaster && (b.Cluster.IsGossip() || b.Cluster.UsesNoneDNS()) { if b.IsMaster && (b.Cluster.IsGossip() || b.Cluster.UsesNoneDNS()) {
task.Records = append(task.Records, nodetasks.HostRecord{ task.Records = append(task.Records, nodetasks.HostRecord{
Hostname: b.Cluster.Spec.MasterInternalName, Hostname: b.Cluster.APIInternalName(),
Addresses: []string{"127.0.0.1"}, Addresses: []string{"127.0.0.1"},
}) })
if b.Cluster.Spec.MasterPublicName != "" { if b.Cluster.Spec.MasterPublicName != "" {
@ -48,7 +48,7 @@ func (b *EtcHostsBuilder) Build(c *fi.ModelBuilderContext) error {
} }
} else if b.BootConfig.APIServerIP != "" { } else if b.BootConfig.APIServerIP != "" {
task.Records = append(task.Records, nodetasks.HostRecord{ task.Records = append(task.Records, nodetasks.HostRecord{
Hostname: b.Cluster.Spec.MasterInternalName, Hostname: b.Cluster.APIInternalName(),
Addresses: []string{b.BootConfig.APIServerIP}, Addresses: []string{b.BootConfig.APIServerIP},
}) })
if b.UseKopsControllerForNodeBootstrap() { if b.UseKopsControllerForNodeBootstrap() {

View File

@ -370,7 +370,7 @@ func (b *KubeAPIServerBuilder) writeServerCertificate(c *fi.ModelBuilderContext,
if b.Cluster.Spec.MasterPublicName != "" { if b.Cluster.Spec.MasterPublicName != "" {
alternateNames = append(alternateNames, b.Cluster.Spec.MasterPublicName) alternateNames = append(alternateNames, b.Cluster.Spec.MasterPublicName)
} }
alternateNames = append(alternateNames, b.Cluster.Spec.MasterInternalName) alternateNames = append(alternateNames, b.Cluster.APIInternalName())
alternateNames = append(alternateNames, b.Cluster.Spec.AdditionalSANs...) alternateNames = append(alternateNames, b.Cluster.Spec.AdditionalSANs...)
// Load balancer IPs passed in through NodeupConfig // Load balancer IPs passed in through NodeupConfig
@ -734,7 +734,7 @@ func (b *KubeAPIServerBuilder) buildAnnotations() map[string]string {
if b.Cluster.Spec.API != nil { if b.Cluster.Spec.API != nil {
if b.Cluster.Spec.API.LoadBalancer == nil || !b.Cluster.Spec.API.LoadBalancer.UseForInternalAPI { if b.Cluster.Spec.API.LoadBalancer == nil || !b.Cluster.Spec.API.LoadBalancer.UseForInternalAPI {
annotations["dns.alpha.kubernetes.io/internal"] = b.Cluster.Spec.MasterInternalName annotations["dns.alpha.kubernetes.io/internal"] = b.Cluster.APIInternalName()
} }
if b.Cluster.Spec.API.DNS != nil && b.Cluster.Spec.MasterPublicName != "" { if b.Cluster.Spec.API.DNS != nil && b.Cluster.Spec.MasterPublicName != "" {

View File

@ -126,7 +126,7 @@ func (b *KubeProxyBuilder) buildPod() (*v1.Pod, error) {
// which would mean that DNS can't rely on API to come up // which would mean that DNS can't rely on API to come up
c.Master = "https://127.0.0.1" c.Master = "https://127.0.0.1"
} else { } else {
c.Master = "https://" + b.Cluster.Spec.MasterInternalName c.Master = "https://" + b.Cluster.APIInternalName()
} }
} }

View File

@ -38,7 +38,6 @@ func TestKubeProxyBuilder_buildPod(t *testing.T) {
// https://pkg.go.dev/k8s.io/kops/pkg/apis/kops#KubeProxyConfig // https://pkg.go.dev/k8s.io/kops/pkg/apis/kops#KubeProxyConfig
cluster := &kops.Cluster{} cluster := &kops.Cluster{}
cluster.Spec.MasterInternalName = "dev-cluster"
cluster.Spec.KubeProxy = &kops.KubeProxyConfig{} cluster.Spec.KubeProxy = &kops.KubeProxyConfig{}
cluster.Spec.KubeProxy.Image = "kube-proxy:1.2" cluster.Spec.KubeProxy.Image = "kube-proxy:1.2"

View File

@ -224,7 +224,7 @@ func (t *ProtokubeBuilder) ProtokubeFlags(k8sVersion semver.Version) (*Protokube
} }
// @TODO: This is hacky, but we want it so that we can have a different internal & external name // @TODO: This is hacky, but we want it so that we can have a different internal & external name
internalSuffix := t.Cluster.Spec.MasterInternalName internalSuffix := t.Cluster.APIInternalName()
internalSuffix = strings.TrimPrefix(internalSuffix, "api.") internalSuffix = strings.TrimPrefix(internalSuffix, "api.")
f.DNSInternalSuffix = fi.String(internalSuffix) f.DNSInternalSuffix = fi.String(internalSuffix)
} }

View File

@ -23,7 +23,6 @@ spec:
iam: iam:
legacy: false legacy: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -23,7 +23,6 @@ spec:
iam: iam:
legacy: false legacy: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -23,7 +23,6 @@ spec:
iam: iam:
legacy: false legacy: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -23,7 +23,6 @@ spec:
iam: iam:
legacy: false legacy: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -23,7 +23,6 @@ spec:
iam: iam:
legacy: false legacy: false
kubernetesVersion: v1.22.3 kubernetesVersion: v1.22.3
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -24,7 +24,6 @@ spec:
iam: iam:
legacy: false legacy: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -24,7 +24,6 @@ spec:
iam: iam:
legacy: false legacy: false
kubernetesVersion: v1.4.6 kubernetesVersion: v1.4.6
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -23,7 +23,6 @@ spec:
iam: iam:
legacy: false legacy: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.logflags.example.com
masterPublicName: api.logflags.example.com masterPublicName: api.logflags.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -23,7 +23,6 @@ spec:
iam: iam:
legacy: false legacy: false
kubernetesVersion: v1.22.6 kubernetesVersion: v1.22.6
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -33,7 +33,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -31,7 +31,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -31,7 +31,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.22.0 kubernetesVersion: v1.22.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -31,7 +31,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.22.0 kubernetesVersion: v1.22.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -31,7 +31,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.23.0 kubernetesVersion: v1.23.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -31,7 +31,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: https://storage.googleapis.com/kubernetes-release/release/v1.22.0 kubernetesVersion: https://storage.googleapis.com/kubernetes-release/release/v1.22.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -22,7 +22,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -26,7 +26,6 @@ spec:
AllowExtTrafficLocalEndpoints: "false" AllowExtTrafficLocalEndpoints: "false"
podManifestPath: "/etc/kubernetes/manifests" podManifestPath: "/etc/kubernetes/manifests"
kubernetesVersion: v1.24.0 kubernetesVersion: v1.24.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -23,7 +23,6 @@ spec:
kubelet: kubelet:
podManifestPath: "/etc/kubernetes/manifests" podManifestPath: "/etc/kubernetes/manifests"
kubernetesVersion: v1.24.0 kubernetesVersion: v1.24.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -27,7 +27,6 @@ spec:
kubelet: kubelet:
hostnameOverride: master.hostname.invalid hostnameOverride: master.hostname.invalid
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -27,7 +27,6 @@ spec:
kubelet: kubelet:
hostnameOverride: master.hostname.invalid hostnameOverride: master.hostname.invalid
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -27,7 +27,6 @@ spec:
kubelet: kubelet:
hostnameOverride: master.hostname.invalid hostnameOverride: master.hostname.invalid
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -72,8 +72,6 @@ type ClusterSpec struct {
Subnets []ClusterSubnetSpec `json:"subnets,omitempty"` Subnets []ClusterSubnetSpec `json:"subnets,omitempty"`
// MasterPublicName is the external DNS name for the master nodes // MasterPublicName is the external DNS name for the master nodes
MasterPublicName string `json:"masterPublicName,omitempty"` MasterPublicName string `json:"masterPublicName,omitempty"`
// MasterInternalName is the internal DNS name for the master nodes
MasterInternalName string `json:"masterInternalName,omitempty"`
// NetworkCIDR is the CIDR used for the AWS VPC / DO/ GCE Network, or otherwise allocated to k8s // NetworkCIDR is the CIDR used for the AWS VPC / DO/ GCE Network, or otherwise allocated to k8s
// This is a real CIDR, not the internal k8s network // This is a real CIDR, not the internal k8s network
// On AWS, it maps to the VPC CIDR. It is not required on GCE. // On AWS, it maps to the VPC CIDR. It is not required on GCE.
@ -98,7 +96,7 @@ type ClusterSpec struct {
// DNSZone is the DNS zone we should use when configuring DNS // DNSZone is the DNS zone we should use when configuring DNS
// This is because some clouds let us define a managed zone foo.bar, and then have // This is because some clouds let us define a managed zone foo.bar, and then have
// kubernetes.dev.foo.bar, without needing to define dev.foo.bar as a hosted zone. // kubernetes.dev.foo.bar, without needing to define dev.foo.bar as a hosted zone.
// DNSZone will probably be a suffix of the MasterPublicName and MasterInternalName // DNSZone will probably be a suffix of the MasterPublicName.
// Note that DNSZone can either by the host name of the zone (containing dots), // Note that DNSZone can either by the host name of the zone (containing dots),
// or can be an identifier for the zone. // or can be an identifier for the zone.
DNSZone string `json:"dnsZone,omitempty"` DNSZone string `json:"dnsZone,omitempty"`
@ -803,10 +801,6 @@ func (c *Cluster) FillDefaults() error {
return fmt.Errorf("cluster Name not set in FillDefaults") return fmt.Errorf("cluster Name not set in FillDefaults")
} }
if c.Spec.MasterInternalName == "" {
c.Spec.MasterInternalName = "api.internal." + c.ObjectMeta.Name
}
return nil return nil
} }
@ -920,6 +914,10 @@ func (c *Cluster) UsesNoneDNS() bool {
return false return false
} }
func (c *Cluster) APIInternalName() string {
return "api.internal." + c.ObjectMeta.Name
}
func (c *ClusterSpec) IsIPv6Only() bool { func (c *ClusterSpec) IsIPv6Only() bool {
return utils.IsIPv6CIDR(c.NonMasqueradeCIDR) return utils.IsIPv6CIDR(c.NonMasqueradeCIDR)
} }

View File

@ -72,7 +72,8 @@ type ClusterSpec struct {
Project string `json:"project,omitempty"` Project string `json:"project,omitempty"`
// MasterPublicName is the external DNS name for the master nodes // MasterPublicName is the external DNS name for the master nodes
MasterPublicName string `json:"masterPublicName,omitempty"` MasterPublicName string `json:"masterPublicName,omitempty"`
// MasterInternalName is the internal DNS name for the master nodes // MasterInternalName is unused.
// +k8s:conversion-gen=false
MasterInternalName string `json:"masterInternalName,omitempty"` MasterInternalName string `json:"masterInternalName,omitempty"`
// NetworkCIDR is the CIDR used for the AWS VPC / GCE Network, or otherwise allocated to k8s // NetworkCIDR is the CIDR used for the AWS VPC / GCE Network, or otherwise allocated to k8s
// This is a real CIDR, not the internal k8s network // This is a real CIDR, not the internal k8s network
@ -97,7 +98,7 @@ type ClusterSpec struct {
// DNSZone is the DNS zone we should use when configuring DNS // DNSZone is the DNS zone we should use when configuring DNS
// This is because some clouds let us define a managed zone foo.bar, and then have // This is because some clouds let us define a managed zone foo.bar, and then have
// kubernetes.dev.foo.bar, without needing to define dev.foo.bar as a hosted zone. // kubernetes.dev.foo.bar, without needing to define dev.foo.bar as a hosted zone.
// DNSZone will probably be a suffix of the MasterPublicName and MasterInternalName // DNSZone will probably be a suffix of the MasterPublicName.
// Note that DNSZone can either by the host name of the zone (containing dots), // Note that DNSZone can either by the host name of the zone (containing dots),
// or can be an identifier for the zone. // or can be an identifier for the zone.
DNSZone string `json:"dnsZone,omitempty"` DNSZone string `json:"dnsZone,omitempty"`

View File

@ -2446,7 +2446,7 @@ func autoConvert_v1alpha2_ClusterSpec_To_kops_ClusterSpec(in *ClusterSpec, out *
} }
// INFO: in.Project opted out of conversion generation // INFO: in.Project opted out of conversion generation
out.MasterPublicName = in.MasterPublicName out.MasterPublicName = in.MasterPublicName
out.MasterInternalName = in.MasterInternalName // INFO: in.MasterInternalName opted out of conversion generation
out.NetworkCIDR = in.NetworkCIDR out.NetworkCIDR = in.NetworkCIDR
out.AdditionalNetworkCIDRs = in.AdditionalNetworkCIDRs out.AdditionalNetworkCIDRs = in.AdditionalNetworkCIDRs
out.NetworkID = in.NetworkID out.NetworkID = in.NetworkID
@ -2870,7 +2870,6 @@ func autoConvert_kops_ClusterSpec_To_v1alpha2_ClusterSpec(in *kops.ClusterSpec,
out.Subnets = nil out.Subnets = nil
} }
out.MasterPublicName = in.MasterPublicName out.MasterPublicName = in.MasterPublicName
out.MasterInternalName = in.MasterInternalName
out.NetworkCIDR = in.NetworkCIDR out.NetworkCIDR = in.NetworkCIDR
out.AdditionalNetworkCIDRs = in.AdditionalNetworkCIDRs out.AdditionalNetworkCIDRs = in.AdditionalNetworkCIDRs
out.NetworkID = in.NetworkID out.NetworkID = in.NetworkID

View File

@ -68,8 +68,6 @@ type ClusterSpec struct {
Subnets []ClusterSubnetSpec `json:"subnets,omitempty"` Subnets []ClusterSubnetSpec `json:"subnets,omitempty"`
// MasterPublicName is the external DNS name for the master nodes // MasterPublicName is the external DNS name for the master nodes
MasterPublicName string `json:"masterPublicName,omitempty"` MasterPublicName string `json:"masterPublicName,omitempty"`
// MasterInternalName is the internal DNS name for the master nodes
MasterInternalName string `json:"masterInternalName,omitempty"`
// NetworkCIDR is the CIDR used for the AWS VPC / GCE Network, or otherwise allocated to k8s // NetworkCIDR is the CIDR used for the AWS VPC / GCE Network, or otherwise allocated to k8s
// This is a real CIDR, not the internal k8s network // This is a real CIDR, not the internal k8s network
// On AWS, it maps to the VPC CIDR. It is not required on GCE. // On AWS, it maps to the VPC CIDR. It is not required on GCE.
@ -93,7 +91,7 @@ type ClusterSpec struct {
// DNSZone is the DNS zone we should use when configuring DNS // DNSZone is the DNS zone we should use when configuring DNS
// This is because some clouds let us define a managed zone foo.bar, and then have // This is because some clouds let us define a managed zone foo.bar, and then have
// kubernetes.dev.foo.bar, without needing to define dev.foo.bar as a hosted zone. // kubernetes.dev.foo.bar, without needing to define dev.foo.bar as a hosted zone.
// DNSZone will probably be a suffix of the MasterPublicName and MasterInternalName // DNSZone will probably be a suffix of the MasterPublicName.
// Note that DNSZone can either by the host name of the zone (containing dots), // Note that DNSZone can either by the host name of the zone (containing dots),
// or can be an identifier for the zone. // or can be an identifier for the zone.
DNSZone string `json:"dnsZone,omitempty"` DNSZone string `json:"dnsZone,omitempty"`

View File

@ -2555,7 +2555,6 @@ func autoConvert_v1alpha3_ClusterSpec_To_kops_ClusterSpec(in *ClusterSpec, out *
out.Subnets = nil out.Subnets = nil
} }
out.MasterPublicName = in.MasterPublicName out.MasterPublicName = in.MasterPublicName
out.MasterInternalName = in.MasterInternalName
out.NetworkCIDR = in.NetworkCIDR out.NetworkCIDR = in.NetworkCIDR
out.AdditionalNetworkCIDRs = in.AdditionalNetworkCIDRs out.AdditionalNetworkCIDRs = in.AdditionalNetworkCIDRs
out.NetworkID = in.NetworkID out.NetworkID = in.NetworkID
@ -2978,7 +2977,6 @@ func autoConvert_kops_ClusterSpec_To_v1alpha3_ClusterSpec(in *kops.ClusterSpec,
out.Subnets = nil out.Subnets = nil
} }
out.MasterPublicName = in.MasterPublicName out.MasterPublicName = in.MasterPublicName
out.MasterInternalName = in.MasterInternalName
out.NetworkCIDR = in.NetworkCIDR out.NetworkCIDR = in.NetworkCIDR
out.AdditionalNetworkCIDRs = in.AdditionalNetworkCIDRs out.AdditionalNetworkCIDRs = in.AdditionalNetworkCIDRs
out.NetworkID = in.NetworkID out.NetworkID = in.NetworkID

View File

@ -37,10 +37,7 @@ func BuildKubecfg(cluster *kops.Cluster, keyStore fi.Keystore, secretStore fi.Se
var master string var master string
if internal { if internal {
master = cluster.Spec.MasterInternalName master = cluster.APIInternalName()
if master == "" {
master = "api.internal." + clusterName
}
} else { } else {
master = cluster.Spec.MasterPublicName master = cluster.Spec.MasterPublicName
if master == "" { if master == "" {

View File

@ -17,7 +17,6 @@ limitations under the License.
package kubeconfig package kubeconfig
import ( import (
"fmt"
"testing" "testing"
"time" "time"
@ -121,7 +120,6 @@ func (f fakeKeyStore) MirrorTo(basedir vfs.Path) error {
func buildMinimalCluster(clusterName string, masterPublicName string, lbCert bool, nlb bool) *kops.Cluster { func buildMinimalCluster(clusterName string, masterPublicName string, lbCert bool, nlb bool) *kops.Cluster {
cluster := testutils.BuildMinimalCluster(clusterName) cluster := testutils.BuildMinimalCluster(clusterName)
cluster.Spec.MasterPublicName = masterPublicName cluster.Spec.MasterPublicName = masterPublicName
cluster.Spec.MasterInternalName = fmt.Sprintf("internal.%v", masterPublicName)
cluster.Spec.KubernetesVersion = "1.24.0" cluster.Spec.KubernetesVersion = "1.24.0"
cluster.Spec.API = &kops.AccessSpec{ cluster.Spec.API = &kops.AccessSpec{
LoadBalancer: &kops.LoadBalancerAccessSpec{}, LoadBalancer: &kops.LoadBalancerAccessSpec{},
@ -324,7 +322,7 @@ func TestBuildKubecfg(t *testing.T) {
}, },
want: &KubeconfigBuilder{ want: &KubeconfigBuilder{
Context: "testcluster", Context: "testcluster",
Server: "https://internal.testcluster.test.com", Server: "https://api.internal.testcluster",
CACerts: []byte(nextCertificate + certData), CACerts: []byte(nextCertificate + certData),
User: "testcluster", User: "testcluster",
}, },

View File

@ -129,11 +129,11 @@ func (b *DNSModelBuilder) Build(c *fi.ModelBuilderContext) error {
return err return err
} }
// Using EnsureTask as MasterInternalName and MasterPublicName could be the same // Using EnsureTask as APIInternalName() and MasterPublicName could be the same
{ {
err := c.EnsureTask(&awstasks.DNSName{ err := c.EnsureTask(&awstasks.DNSName{
Name: fi.String(b.Cluster.Spec.MasterInternalName), Name: fi.String(b.Cluster.APIInternalName()),
ResourceName: fi.String(b.Cluster.Spec.MasterInternalName), ResourceName: fi.String(b.Cluster.APIInternalName()),
Lifecycle: b.Lifecycle, Lifecycle: b.Lifecycle,
Zone: b.LinkToDNSZone(), Zone: b.LinkToDNSZone(),
ResourceType: fi.String("A"), ResourceType: fi.String("A"),
@ -145,8 +145,8 @@ func (b *DNSModelBuilder) Build(c *fi.ModelBuilderContext) error {
} }
if b.UseIPv6ForAPI() { if b.UseIPv6ForAPI() {
err := c.EnsureTask(&awstasks.DNSName{ err := c.EnsureTask(&awstasks.DNSName{
Name: fi.String(b.Cluster.Spec.MasterInternalName + "-AAAA"), Name: fi.String(b.Cluster.APIInternalName() + "-AAAA"),
ResourceName: fi.String(b.Cluster.Spec.MasterInternalName), ResourceName: fi.String(b.Cluster.APIInternalName()),
Lifecycle: b.Lifecycle, Lifecycle: b.Lifecycle,
Zone: b.LinkToDNSZone(), Zone: b.LinkToDNSZone(),
ResourceType: fi.String("AAAA"), ResourceType: fi.String("AAAA"),

View File

@ -74,7 +74,7 @@ func (b *DiscoveryOptionsBuilder) BuildOptions(o interface{}) error {
if supportsPublicJWKS(clusterSpec) && clusterSpec.MasterPublicName != "" { if supportsPublicJWKS(clusterSpec) && clusterSpec.MasterPublicName != "" {
serviceAccountIssuer = "https://" + clusterSpec.MasterPublicName serviceAccountIssuer = "https://" + clusterSpec.MasterPublicName
} else { } else {
serviceAccountIssuer = "https://" + clusterSpec.MasterInternalName serviceAccountIssuer = "https://api.internal." + b.ClusterName
} }
} }
kubeAPIServer.ServiceAccountIssuer = &serviceAccountIssuer kubeAPIServer.ServiceAccountIssuer = &serviceAccountIssuer

View File

@ -294,7 +294,7 @@ func (b *EtcdManagerBuilder) buildPod(etcdCluster kops.EtcdClusterSpec, instance
dnsInternalSuffix := "" dnsInternalSuffix := ""
if b.Cluster.IsGossip() { if b.Cluster.IsGossip() {
// @TODO: This is hacky, but we want it so that we can have a different internal & external name // @TODO: This is hacky, but we want it so that we can have a different internal & external name
dnsInternalSuffix = b.Cluster.Spec.MasterInternalName dnsInternalSuffix = b.Cluster.APIInternalName()
dnsInternalSuffix = strings.TrimPrefix(dnsInternalSuffix, "api.") dnsInternalSuffix = strings.TrimPrefix(dnsInternalSuffix, "api.")
} }
@ -316,7 +316,7 @@ func (b *EtcdManagerBuilder) buildPod(etcdCluster kops.EtcdClusterSpec, instance
case "cilium": case "cilium":
if !featureflag.APIServerNodes.Enabled() { if !featureflag.APIServerNodes.Enabled() {
clientHost = b.Cluster.Spec.MasterInternalName clientHost = b.Cluster.APIInternalName()
} }
default: default:
return nil, fmt.Errorf("unknown etcd cluster key %q", etcdCluster.Name) return nil, fmt.Errorf("unknown etcd cluster key %q", etcdCluster.Name)

View File

@ -34,7 +34,6 @@ spec:
backups: backups:
backupStore: memfs://clusters.example.com/minimal.example.com/backups/etcd-events backupStore: memfs://clusters.example.com/minimal.example.com/backups/etcd-events
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -29,7 +29,6 @@ spec:
backups: backups:
backupStore: memfs://clusters.example.com/minimal.example.com/backups/etcd-events backupStore: memfs://clusters.example.com/minimal.example.com/backups/etcd-events
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -39,7 +39,6 @@ spec:
backups: backups:
backupStore: memfs://clusters.example.com/minimal.example.com/backups/etcd-events backupStore: memfs://clusters.example.com/minimal.example.com/backups/etcd-events
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -33,7 +33,6 @@ spec:
backups: backups:
backupStore: memfs://clusters.example.com/minimal.example.com/backups/etcd-events backupStore: memfs://clusters.example.com/minimal.example.com/backups/etcd-events
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -10,7 +10,6 @@ spec:
cloudProvider: aws cloudProvider: aws
configBase: memfs://clusters.example.com/minimal.example.com configBase: memfs://clusters.example.com/minimal.example.com
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -37,7 +37,6 @@ func BuildMinimalCluster(clusterName string) *kops.Cluster {
c.Spec.Containerd = &kops.ContainerdConfig{} c.Spec.Containerd = &kops.ContainerdConfig{}
c.Spec.MasterPublicName = fmt.Sprintf("api.%v", clusterName) c.Spec.MasterPublicName = fmt.Sprintf("api.%v", clusterName)
c.Spec.MasterInternalName = fmt.Sprintf("internal.api.%v", clusterName)
c.Spec.KubernetesAPIAccess = []string{"0.0.0.0/0"} c.Spec.KubernetesAPIAccess = []string{"0.0.0.0/0"}
c.Spec.SSHAccess = []string{"0.0.0.0/0"} c.Spec.SSHAccess = []string{"0.0.0.0/0"}

View File

@ -30,7 +30,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: {{.kubernetesVersion}} kubernetesVersion: {{.kubernetesVersion}}
masterInternalName: api.internal.{{.clusterName}}
masterPublicName: api.{{.clusterName}} masterPublicName: api.{{.clusterName}}
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -26,7 +26,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: {{.kubernetesVersion}} kubernetesVersion: {{.kubernetesVersion}}
masterInternalName: api.internal.{{.clusterName}}
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:
calico: {} calico: {}

View File

@ -22,7 +22,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: {{.kubernetesVersion}} kubernetesVersion: {{.kubernetesVersion}}
masterInternalName: api.internal.{{.clusterName}}
masterPublicName: api.{{.clusterName}} masterPublicName: api.{{.clusterName}}
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -35,7 +35,6 @@ spec:
provider: CoreDNS provider: CoreDNS
nodeLocalDNS: nodeLocalDNS:
enabled: true enabled: true
masterInternalName: api.internal.{{.clusterName}}
masterPublicName: api.{{.clusterName}} masterPublicName: api.{{.clusterName}}
metricsServer: metricsServer:
enabled: true enabled: true

View File

@ -22,7 +22,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: {{.kubernetesVersion}} kubernetesVersion: {{.kubernetesVersion}}
masterInternalName: api.internal.{{.clusterName}}
masterPublicName: api.{{.clusterName}} masterPublicName: api.{{.clusterName}}
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -32,7 +32,6 @@ spec:
ephemeral-storage: 1Gi ephemeral-storage: 1Gi
memory: 120Mi memory: 120Mi
kubernetesVersion: {{.kubernetesVersion}} kubernetesVersion: {{.kubernetesVersion}}
masterInternalName: api.internal.{{.clusterName}}
masterPublicName: api.{{.clusterName}} masterPublicName: api.{{.clusterName}}
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -42,7 +42,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -41,7 +41,6 @@ spec:
kubernetesAPIAccess: kubernetesAPIAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -39,7 +39,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -37,7 +37,6 @@ spec:
kubernetesAPIAccess: kubernetesAPIAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -33,7 +33,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -33,7 +33,6 @@ spec:
kubernetesAPIAccess: kubernetesAPIAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -33,7 +33,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -33,7 +33,6 @@ spec:
kubernetesAPIAccess: kubernetesAPIAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -32,7 +32,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -31,7 +31,6 @@ spec:
kubernetesAPIAccess: kubernetesAPIAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -32,7 +32,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -32,7 +32,6 @@ spec:
kubernetesAPIAccess: kubernetesAPIAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -33,7 +33,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -33,7 +33,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -33,7 +33,6 @@ spec:
kubernetesAPIAccess: kubernetesAPIAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -48,7 +48,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -46,7 +46,6 @@ spec:
kubernetesAPIAccess: kubernetesAPIAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -167,7 +167,6 @@ spec:
- 0.0.0.0/0 - 0.0.0.0/0
- ::/0 - ::/0
kubernetesVersion: 1.23.0 kubernetesVersion: 1.23.0
masterInternalName: api.internal.additionalobjects.example.com
masterKubelet: masterKubelet:
anonymousAuth: false anonymousAuth: false
cgroupDriver: systemd cgroupDriver: systemd

View File

@ -156,7 +156,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: 1.22.0 kubernetesVersion: 1.22.0
masterInternalName: api.internal.minimal.example.com
masterKubelet: masterKubelet:
anonymousAuth: false anonymousAuth: false
cgroupDriver: systemd cgroupDriver: systemd

View File

@ -147,7 +147,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: 1.21.0 kubernetesVersion: 1.21.0
masterInternalName: api.internal.minimal.example.com
masterKubelet: masterKubelet:
anonymousAuth: false anonymousAuth: false
cgroupDriver: systemd cgroupDriver: systemd

View File

@ -27,7 +27,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -144,7 +144,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: 1.21.0 kubernetesVersion: 1.21.0
masterInternalName: api.internal.bastionuserdata.example.com
masterKubelet: masterKubelet:
anonymousAuth: false anonymousAuth: false
cgroupDriver: systemd cgroupDriver: systemd

View File

@ -195,7 +195,6 @@ spec:
- 1.1.1.0/24 - 1.1.1.0/24
- pl-44444444 - pl-44444444
kubernetesVersion: 1.24.0 kubernetesVersion: 1.24.0
masterInternalName: api.internal.complex.example.com
masterKubelet: masterKubelet:
anonymousAuth: false anonymousAuth: false
cgroupDriver: systemd cgroupDriver: systemd

View File

@ -51,7 +51,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.24.0 kubernetesVersion: v1.24.0
masterInternalName: api.internal.complex.example.com
masterPublicName: api.complex.example.com masterPublicName: api.complex.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
additionalNetworkCIDRs: additionalNetworkCIDRs:

View File

@ -51,7 +51,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.24.0 kubernetesVersion: v1.24.0
masterInternalName: api.internal.complex.example.com
masterPublicName: api.complex.example.com masterPublicName: api.complex.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
additionalNetworkCIDRs: additionalNetworkCIDRs:

View File

@ -142,7 +142,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: 1.21.0 kubernetesVersion: 1.21.0
masterInternalName: api.internal.compress.example.com
masterKubelet: masterKubelet:
anonymousAuth: false anonymousAuth: false
cgroupDriver: systemd cgroupDriver: systemd

View File

@ -22,7 +22,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.compress.example.com
masterPublicName: api.compress.example.com masterPublicName: api.compress.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -32,7 +32,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.containerd.example.com
masterPublicName: api.containerd.example.com masterPublicName: api.containerd.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -23,7 +23,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.containerd.example.com
masterPublicName: api.containerd.example.com masterPublicName: api.containerd.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -164,7 +164,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: 1.21.0 kubernetesVersion: 1.21.0
masterInternalName: api.internal.123.example.com
masterKubelet: masterKubelet:
anonymousAuth: false anonymousAuth: false
cgroupDriver: systemd cgroupDriver: systemd

View File

@ -44,7 +44,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.123.example.com
masterPublicName: api.123.example.com masterPublicName: api.123.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -29,7 +29,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.docker.example.com
masterPublicName: api.docker.example.com masterPublicName: api.docker.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -150,7 +150,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: 1.21.0 kubernetesVersion: 1.21.0
masterInternalName: api.internal.existing-iam.example.com
masterKubelet: masterKubelet:
anonymousAuth: false anonymousAuth: false
cgroupDriver: systemd cgroupDriver: systemd

View File

@ -22,7 +22,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -153,7 +153,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: 1.21.0 kubernetesVersion: 1.21.0
masterInternalName: api.internal.existingsg.example.com
masterKubelet: masterKubelet:
anonymousAuth: false anonymousAuth: false
cgroupDriver: systemd cgroupDriver: systemd

View File

@ -33,7 +33,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.existingsg.example.com
masterPublicName: api.existingsg.example.com masterPublicName: api.existingsg.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -142,7 +142,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: 1.21.0 kubernetesVersion: 1.21.0
masterInternalName: api.internal.minimal.example.com
masterKubelet: masterKubelet:
anonymousAuth: false anonymousAuth: false
cgroupDriver: systemd cgroupDriver: systemd

View File

@ -24,7 +24,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -143,7 +143,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: 1.21.0 kubernetesVersion: 1.21.0
masterInternalName: api.internal.minimal.example.com
masterKubelet: masterKubelet:
anonymousAuth: false anonymousAuth: false
cgroupDriver: systemd cgroupDriver: systemd

View File

@ -25,7 +25,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -142,7 +142,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: 1.21.0 kubernetesVersion: 1.21.0
masterInternalName: api.internal.externallb.example.com
masterKubelet: masterKubelet:
anonymousAuth: false anonymousAuth: false
cgroupDriver: systemd cgroupDriver: systemd

View File

@ -22,7 +22,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.externallb.example.com
masterPublicName: api.externallb.example.com masterPublicName: api.externallb.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -159,7 +159,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: 1.21.0 kubernetesVersion: 1.21.0
masterInternalName: api.internal.externalpolicies.example.com
masterKubelet: masterKubelet:
anonymousAuth: false anonymousAuth: false
cgroupDriver: systemd cgroupDriver: systemd

View File

@ -34,7 +34,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.externalpolicies.example.com
masterPublicName: api.externalpolicies.example.com masterPublicName: api.externalpolicies.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

View File

@ -150,7 +150,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: 1.21.0 kubernetesVersion: 1.21.0
masterInternalName: api.internal.ha.example.com
masterKubelet: masterKubelet:
anonymousAuth: false anonymousAuth: false
cgroupDriver: systemd cgroupDriver: systemd

View File

@ -154,7 +154,6 @@ spec:
- 0.0.0.0/0 - 0.0.0.0/0
- ::/0 - ::/0
kubernetesVersion: 1.21.0 kubernetesVersion: 1.21.0
masterInternalName: api.internal.ha-gce.example.com
masterKubelet: masterKubelet:
anonymousAuth: false anonymousAuth: false
cgroupDriver: systemd cgroupDriver: systemd

View File

@ -171,7 +171,6 @@ spec:
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: 1.21.0 kubernetesVersion: 1.21.0
masterInternalName: api.internal.minimal.example.com
masterKubelet: masterKubelet:
anonymousAuth: false anonymousAuth: false
cgroupDriver: systemd cgroupDriver: systemd

View File

@ -51,7 +51,6 @@ spec:
kubelet: kubelet:
anonymousAuth: false anonymousAuth: false
kubernetesVersion: v1.21.0 kubernetesVersion: v1.21.0
masterInternalName: api.internal.minimal.example.com
masterPublicName: api.minimal.example.com masterPublicName: api.minimal.example.com
networkCIDR: 172.20.0.0/16 networkCIDR: 172.20.0.0/16
networking: networking:

Some files were not shown because too many files have changed in this diff Show More