diff --git a/cmd/clusterctl/client/cluster/assets/topology-test/existing-my-cluster.yaml b/cmd/clusterctl/client/cluster/assets/topology-test/existing-my-cluster.yaml deleted file mode 100644 index 2dead59002d4..000000000000 --- a/cmd/clusterctl/client/cluster/assets/topology-test/existing-my-cluster.yaml +++ /dev/null @@ -1,138 +0,0 @@ -apiVersion: cluster.x-k8s.io/v1beta2 -kind: Cluster -metadata: - name: "my-cluster" - namespace: default - labels: - cni: kindnet -spec: - clusterNetwork: - services: - cidrBlocks: ["10.128.0.0/12"] - pods: - cidrBlocks: ["192.168.0.0/16"] - serviceDomain: "cluster.local" - controlPlaneEndpoint: - host: 172.19.0.4 - port: 6443 - controlPlaneRef: - apiVersion: controlplane.cluster.x-k8s.io/v1beta2 - kind: KubeadmControlPlane - name: my-cluster-fwbpf - namespace: default - infrastructureRef: - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 - kind: DockerCluster - name: my-cluster-zrq96 - namespace: default - topology: - classRef: - name: my-cluster-class - version: v1.21.2 - controlPlane: - metadata: {} - replicas: 1 - workers: - machinePools: - - class: "default-worker" - name: "mp-0" - replicas: 1 ---- -apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 -kind: DockerCluster -metadata: - annotations: - cluster.x-k8s.io/cloned-from-groupkind: DockerClusterTemplate.infrastructure.cluster.x-k8s.io - cluster.x-k8s.io/cloned-from-name: my-cluster - finalizers: - - dockercluster.infrastructure.cluster.x-k8s.io - labels: - cluster.x-k8s.io/cluster-name: my-cluster - topology.cluster.x-k8s.io/owned: "" - name: my-cluster-zrq96 - namespace: default -spec: - controlPlaneEndpoint: - host: 172.19.0.4 - port: 6443 - loadBalancer: {} ---- -apiVersion: controlplane.cluster.x-k8s.io/v1beta2 -kind: KubeadmControlPlane -metadata: - annotations: - cluster.x-k8s.io/cloned-from-groupkind: KubeadmControlPlaneTemplate.controlplane.cluster.x-k8s.io - cluster.x-k8s.io/cloned-from-name: control-plane - finalizers: - - kubeadm.controlplane.cluster.x-k8s.io - labels: - cluster.x-k8s.io/cluster-name: my-cluster - topology.cluster.x-k8s.io/owned: "" - name: my-cluster-fwbpf - namespace: default - ownerReferences: - - apiVersion: cluster.x-k8s.io/v1beta2 - blockOwnerDeletion: true - controller: true - kind: Cluster - name: my-cluster - uid: 3ba5ce4f-d279-4edb-8ade-62a2381d11a8 -spec: - kubeadmConfigSpec: - clusterConfiguration: - apiServer: - certSANs: - - localhost - - 127.0.0.1 - dns: {} - etcd: {} - networking: {} - scheduler: {} - initConfiguration: - localAPIEndpoint: {} - nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use. - joinConfiguration: - discovery: {} - nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use. - machineTemplate: - infrastructureRef: - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 - kind: DockerMachineTemplate - name: my-cluster-control-plane-44cd4 - namespace: default - metadata: - labels: - cluster.x-k8s.io/cluster-name: my-cluster - topology.cluster.x-k8s.io/owned: "" - nodeDrainTimeout: 1s - replicas: 1 - rolloutStrategy: - rollingUpdate: - maxSurge: 1 - type: RollingUpdate - version: v1.21.2 -status: - version: v1.21.2 ---- -apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 -kind: DockerMachineTemplate -metadata: - annotations: - cluster.x-k8s.io/cloned-from-groupkind: DockerMachineTemplate.infrastructure.cluster.x-k8s.io - cluster.x-k8s.io/cloned-from-name: control-plane - labels: - cluster.x-k8s.io/cluster-name: my-cluster - topology.cluster.x-k8s.io/owned: "" - name: my-cluster-control-plane-44cd4 - namespace: default - ownerReferences: - - apiVersion: cluster.x-k8s.io/v1beta2 - kind: Cluster - name: my-cluster - uid: 3ba5ce4f-d279-4edb-8ade-62a2381d11a8 -spec: - template: - spec: - extraMounts: - - containerPath: /var/run/docker.sock - hostPath: /var/run/docker.sock diff --git a/cmd/clusterctl/client/cluster/assets/topology-test/existing-my-second-cluster.yaml b/cmd/clusterctl/client/cluster/assets/topology-test/existing-my-second-cluster.yaml deleted file mode 100644 index d1ab1a7dff68..000000000000 --- a/cmd/clusterctl/client/cluster/assets/topology-test/existing-my-second-cluster.yaml +++ /dev/null @@ -1,132 +0,0 @@ ---- -apiVersion: cluster.x-k8s.io/v1beta2 -kind: Cluster -metadata: - name: "my-second-cluster" - namespace: default - labels: - cni: kindnet -spec: - clusterNetwork: - services: - cidrBlocks: ["10.128.0.0/12"] - pods: - cidrBlocks: ["192.168.0.0/16"] - serviceDomain: "cluster.local" - controlPlaneEndpoint: - host: 172.19.0.4 - port: 6443 - controlPlaneRef: - apiVersion: controlplane.cluster.x-k8s.io/v1beta2 - kind: KubeadmControlPlane - name: my-second-cluster-fwbpf - namespace: default - infrastructureRef: - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 - kind: DockerCluster - name: my-second-cluster-zrq96 - namespace: default - topology: - classRef: - name: my-cluster-class - version: v1.21.2 - controlPlane: - metadata: {} - replicas: 1 ---- -apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 -kind: DockerCluster -metadata: - annotations: - cluster.x-k8s.io/cloned-from-groupkind: DockerClusterTemplate.infrastructure.cluster.x-k8s.io - cluster.x-k8s.io/cloned-from-name: my-cluster - finalizers: - - dockercluster.infrastructure.cluster.x-k8s.io - labels: - cluster.x-k8s.io/cluster-name: my-cluster - topology.cluster.x-k8s.io/owned: "" - name: my-second-cluster-zrq96 - namespace: default -spec: - controlPlaneEndpoint: - host: 172.19.0.4 - port: 6443 - loadBalancer: {} ---- -apiVersion: controlplane.cluster.x-k8s.io/v1beta2 -kind: KubeadmControlPlane -metadata: - annotations: - cluster.x-k8s.io/cloned-from-groupkind: KubeadmControlPlaneTemplate.controlplane.cluster.x-k8s.io - cluster.x-k8s.io/cloned-from-name: control-plane - finalizers: - - kubeadm.controlplane.cluster.x-k8s.io - labels: - cluster.x-k8s.io/cluster-name: my-cluster - topology.cluster.x-k8s.io/owned: "" - name: my-second-cluster-fwbpf - namespace: default - ownerReferences: - - apiVersion: cluster.x-k8s.io/v1beta2 - blockOwnerDeletion: true - controller: true - kind: Cluster - name: my-second-cluster - uid: 3ba5ce4f-d279-4edb-8ade-62a2381d11a9 -spec: - kubeadmConfigSpec: - clusterConfiguration: - apiServer: - certSANs: - - localhost - - 127.0.0.1 - dns: {} - etcd: {} - networking: {} - scheduler: {} - initConfiguration: - localAPIEndpoint: {} - nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use. - joinConfiguration: - discovery: {} - nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use. - machineTemplate: - infrastructureRef: - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 - kind: DockerMachineTemplate - name: my-cluster-control-plane-44cd4 - namespace: default - metadata: - labels: - cluster.x-k8s.io/cluster-name: my-cluster - topology.cluster.x-k8s.io/owned: "" - nodeDrainTimeout: 1s - replicas: 1 - rolloutStrategy: - rollingUpdate: - maxSurge: 1 - type: RollingUpdate - version: v1.21.2 ---- -apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 -kind: DockerMachineTemplate -metadata: - annotations: - cluster.x-k8s.io/cloned-from-groupkind: DockerMachineTemplate.infrastructure.cluster.x-k8s.io - cluster.x-k8s.io/cloned-from-name: control-plane - labels: - cluster.x-k8s.io/cluster-name: my-cluster - topology.cluster.x-k8s.io/owned: "" - name: my-second-cluster-control-plane-44cd4 - namespace: default - ownerReferences: - - apiVersion: cluster.x-k8s.io/v1beta2 - kind: Cluster - name: my-second-cluster - uid: 3ba5ce4f-d279-4edb-8ade-62a2381d11a9 -spec: - template: - spec: - extraMounts: - - containerPath: /var/run/docker.sock - hostPath: /var/run/docker.sock diff --git a/cmd/clusterctl/client/cluster/assets/topology-test/mock-CRDs.yaml b/cmd/clusterctl/client/cluster/assets/topology-test/mock-CRDs.yaml deleted file mode 100644 index d69a0ea4c4c8..000000000000 --- a/cmd/clusterctl/client/cluster/assets/topology-test/mock-CRDs.yaml +++ /dev/null @@ -1,55 +0,0 @@ -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - labels: - cluster.x-k8s.io/provider: infrastructure-docker - cluster.x-k8s.io/v1beta2: v1beta2 - name: dockerclusters.infrastructure.cluster.x-k8s.io ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - labels: - cluster.x-k8s.io/provider: infrastructure-docker - cluster.x-k8s.io/v1beta2: v1beta1 - name: dockerclustertemplates.infrastructure.cluster.x-k8s.io ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - labels: - cluster.x-k8s.io/provider: control-plane-kubeadm - cluster.x-k8s.io/v1beta2: v1beta2 - name: kubeadmcontrolplanetemplates.controlplane.cluster.x-k8s.io ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - labels: - cluster.x-k8s.io/provider: control-plane-kubeadm - cluster.x-k8s.io/v1beta2: v1beta2 - name: kubeadmcontrolplanes.controlplane.cluster.x-k8s.io ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - labels: - cluster.x-k8s.io/provider: control-plane-kubeadm - cluster.x-k8s.io/v1beta2: v1beta2 - name: kubeadmconfigtemplates.bootstrap.cluster.x-k8s.io ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - labels: - cluster.x-k8s.io/provider: infrastructure-docker - cluster.x-k8s.io/v1beta2: v1beta1 - name: dockermachinetemplates.infrastructure.cluster.x-k8s.io ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - labels: - cluster.x-k8s.io/provider: infrastructure-docker - cluster.x-k8s.io/v1beta2: v1beta1 - name: dockermachinepooltemplates.infrastructure.cluster.x-k8s.io diff --git a/cmd/clusterctl/client/cluster/assets/topology-test/modified-CP-dockermachinepooltemplate.yaml b/cmd/clusterctl/client/cluster/assets/topology-test/modified-CP-dockermachinepooltemplate.yaml deleted file mode 100644 index 26d1f88532ca..000000000000 --- a/cmd/clusterctl/client/cluster/assets/topology-test/modified-CP-dockermachinepooltemplate.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 -kind: DockerMachinePoolTemplate -metadata: - name: "docker-worker-machinepooltemplate" - namespace: default -spec: - template: - metadata: - labels: - docker-machinepool-template: test-template-worker - spec: - extraMounts: - - containerPath: "/var/run/docker.sock" - hostPath: "/var/run/docker.sock" diff --git a/cmd/clusterctl/client/cluster/assets/topology-test/modified-CP-dockermachinetemplate.yaml b/cmd/clusterctl/client/cluster/assets/topology-test/modified-CP-dockermachinetemplate.yaml deleted file mode 100644 index 18fa502056a3..000000000000 --- a/cmd/clusterctl/client/cluster/assets/topology-test/modified-CP-dockermachinetemplate.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 -kind: DockerMachineTemplate -metadata: - name: "control-plane" - namespace: default -spec: - template: - metadata: - labels: - docker-machine-template: test-template-control-plane - spec: - extraMounts: - - containerPath: "/var/run/docker.sock" - hostPath: "/var/run/docker.sock" \ No newline at end of file diff --git a/cmd/clusterctl/client/cluster/assets/topology-test/modified-my-cluster.yaml b/cmd/clusterctl/client/cluster/assets/topology-test/modified-my-cluster.yaml deleted file mode 100644 index e364f6de624a..000000000000 --- a/cmd/clusterctl/client/cluster/assets/topology-test/modified-my-cluster.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: cluster.x-k8s.io/v1beta2 -kind: Cluster -metadata: - name: "my-cluster" - namespace: default - labels: - cni: kindnet -spec: - clusterNetwork: - services: - cidrBlocks: ["10.128.0.0/12"] - pods: - cidrBlocks: ["192.168.0.0/16"] - serviceDomain: "cluster.local" - topology: - classRef: - name: my-cluster-class - version: v1.21.2 - controlPlane: - metadata: {} - replicas: 3 diff --git a/cmd/clusterctl/client/cluster/assets/topology-test/my-cluster-class.yaml b/cmd/clusterctl/client/cluster/assets/topology-test/my-cluster-class.yaml deleted file mode 100644 index 2845d8bed6b3..000000000000 --- a/cmd/clusterctl/client/cluster/assets/topology-test/my-cluster-class.yaml +++ /dev/null @@ -1,110 +0,0 @@ -apiVersion: cluster.x-k8s.io/v1beta2 -kind: ClusterClass -metadata: - name: my-cluster-class - namespace: default -spec: - controlPlane: - ref: - apiVersion: controlplane.cluster.x-k8s.io/v1beta2 - kind: KubeadmControlPlaneTemplate - name: control-plane - namespace: default - machineInfrastructure: - ref: - kind: DockerMachineTemplate - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 - name: "control-plane" - namespace: default - infrastructure: - ref: - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 - kind: DockerClusterTemplate - name: my-cluster - namespace: default - workers: - machinePools: - - class: "default-worker" - template: - bootstrap: - ref: - apiVersion: bootstrap.cluster.x-k8s.io/v1beta2 - kind: KubeadmConfigTemplate - name: docker-worker-bootstraptemplate - namespace: default - infrastructure: - ref: - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 - kind: DockerMachinePoolTemplate - name: docker-worker-machinepooltemplate - namespace: default ---- -apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 -kind: DockerClusterTemplate -metadata: - name: my-cluster - namespace: default -spec: - template: - spec: {} ---- -kind: KubeadmControlPlaneTemplate -apiVersion: controlplane.cluster.x-k8s.io/v1beta2 -metadata: - name: "control-plane" - namespace: default -spec: - template: - spec: - replicas: 1 - machineTemplate: - nodeDrainTimeout: 1s - infrastructureRef: - kind: DockerMachineTemplate - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 - name: "control-plane" - namespace: default - kubeadmConfigSpec: - clusterConfiguration: - apiServer: - certSANs: [ localhost, 127.0.0.1 ] - initConfiguration: - nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use. - joinConfiguration: - nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use. - version: v1.21.2 ---- -apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 -kind: DockerMachineTemplate -metadata: - name: "control-plane" - namespace: default -spec: - template: - spec: - extraMounts: - - containerPath: "/var/run/docker.sock" - hostPath: "/var/run/docker.sock" ---- -apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 -kind: DockerMachinePoolTemplate -metadata: - name: "docker-worker-machinepooltemplate" - namespace: default -spec: - template: - spec: - extraMounts: - - containerPath: "/var/run/docker.sock" - hostPath: "/var/run/docker.sock" ---- -apiVersion: bootstrap.cluster.x-k8s.io/v1beta2 -kind: KubeadmConfigTemplate -metadata: - name: "docker-worker-bootstraptemplate" - namespace: default -spec: - template: - spec: - joinConfiguration: - nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use. diff --git a/cmd/clusterctl/client/cluster/assets/topology-test/new-clusterclass-and-cluster.yaml b/cmd/clusterctl/client/cluster/assets/topology-test/new-clusterclass-and-cluster.yaml deleted file mode 100644 index 96eef04742ad..000000000000 --- a/cmd/clusterctl/client/cluster/assets/topology-test/new-clusterclass-and-cluster.yaml +++ /dev/null @@ -1,209 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: default -spec: {} ---- -apiVersion: cluster.x-k8s.io/v1beta2 -kind: ClusterClass -metadata: - name: my-cluster-class - namespace: default -spec: - variables: - - name: imageRepository - required: true - schema: - openAPIV3Schema: - type: string - default: "registry.k8s.io" - example: "registry.k8s.io" - controlPlane: - ref: - apiVersion: controlplane.cluster.x-k8s.io/v1beta2 - kind: KubeadmControlPlaneTemplate - name: control-plane - namespace: default - machineInfrastructure: - ref: - kind: DockerMachineTemplate - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 - name: "control-plane" - namespace: default - infrastructure: - ref: - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 - kind: DockerClusterTemplate - name: my-cluster - namespace: default - workers: - machineDeployments: - - class: "default-worker" - template: - bootstrap: - ref: - apiVersion: bootstrap.cluster.x-k8s.io/v1beta2 - kind: KubeadmConfigTemplate - name: docker-worker-bootstraptemplate - infrastructure: - ref: - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 - kind: DockerMachineTemplate - name: docker-worker-machinetemplate - - class: "default-worker-2" - template: - bootstrap: - ref: - apiVersion: bootstrap.cluster.x-k8s.io/v1beta2 - kind: KubeadmConfigTemplate - name: docker-worker-bootstraptemplate - infrastructure: - ref: - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 - kind: DockerMachineTemplate - name: docker-worker-machinetemplate - machinePools: - - class: "default-worker" - template: - bootstrap: - ref: - apiVersion: bootstrap.cluster.x-k8s.io/v1beta2 - kind: KubeadmConfigTemplate - name: docker-worker-bootstraptemplate - infrastructure: - ref: - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 - kind: DockerMachinePoolTemplate - name: docker-worker-machinepooltemplate - - class: "default-worker-2" - template: - bootstrap: - ref: - apiVersion: bootstrap.cluster.x-k8s.io/v1beta2 - kind: KubeadmConfigTemplate - name: docker-worker-bootstraptemplate - infrastructure: - ref: - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 - kind: DockerMachinePoolTemplate - name: docker-worker-machinepooltemplate ---- -apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 -kind: DockerClusterTemplate -metadata: - name: my-cluster - namespace: default -spec: - template: - spec: {} ---- -kind: KubeadmControlPlaneTemplate -apiVersion: controlplane.cluster.x-k8s.io/v1beta2 -metadata: - name: "control-plane" - namespace: default -spec: - template: - spec: - replicas: 1 - machineTemplate: - nodeDrainTimeout: 1s - infrastructureRef: - kind: DockerMachineTemplate - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 - name: "control-plane" - namespace: default - kubeadmConfigSpec: - clusterConfiguration: - apiServer: - certSANs: [ localhost, 127.0.0.1 ] - initConfiguration: - nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use. - joinConfiguration: - nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use. - version: v1.21.2 ---- -apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 -kind: DockerMachineTemplate -metadata: - name: "control-plane" - namespace: default -spec: - template: - spec: - preLoadImages: - - gcr.io/kakaraparthy-devel/kindest/kindnetd:0.5.4 - extraMounts: - - containerPath: "/var/run/docker.sock" - hostPath: "/var/run/docker.sock" ---- -apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 -kind: DockerMachineTemplate -metadata: - name: "docker-worker-machinetemplate" - namespace: default -spec: - template: - spec: - preLoadImages: - - gcr.io/kakaraparthy-devel/kindest/kindnetd:0.5.4 ---- -apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 -kind: DockerMachinePoolTemplate -metadata: - name: "docker-worker-machinepooltemplate" - namespace: default -spec: - template: - spec: - preLoadImages: - - gcr.io/kakaraparthy-devel/kindest/kindnetd:0.5.4 ---- -apiVersion: bootstrap.cluster.x-k8s.io/v1beta2 -kind: KubeadmConfigTemplate -metadata: - name: "docker-worker-bootstraptemplate" - namespace: default -spec: - template: - spec: - joinConfiguration: - nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use. - ---- -apiVersion: cluster.x-k8s.io/v1beta2 -kind: Cluster -metadata: - name: "my-cluster" - namespace: default - labels: - cni: kindnet -spec: - clusterNetwork: - services: - cidrBlocks: ["10.128.0.0/12"] - pods: - cidrBlocks: ["192.168.0.0/16"] - serviceDomain: "cluster.local" - topology: - classRef: - name: my-cluster-class - version: v1.21.2 - controlPlane: - metadata: {} - replicas: 1 - workers: - machineDeployments: - - class: "default-worker" - name: "md-0" - replicas: 1 - - class: "default-worker" - name: "md-1" - replicas: 1 - machinePools: - - class: "default-worker" - name: "mp-0" - replicas: 1 - - class: "default-worker" - name: "mp-1" - replicas: 1 diff --git a/cmd/clusterctl/client/cluster/assets/topology-test/objects-in-different-namespaces.yaml b/cmd/clusterctl/client/cluster/assets/topology-test/objects-in-different-namespaces.yaml deleted file mode 100644 index 8bfd63001d42..000000000000 --- a/cmd/clusterctl/client/cluster/assets/topology-test/objects-in-different-namespaces.yaml +++ /dev/null @@ -1,43 +0,0 @@ -apiVersion: cluster.x-k8s.io/v1beta2 -kind: Cluster -metadata: - name: "my-cluster" - namespace: namespace-one - labels: - cni: kindnet -spec: - clusterNetwork: - services: - cidrBlocks: ["10.128.0.0/12"] - pods: - cidrBlocks: ["192.168.0.0/16"] - serviceDomain: "cluster.local" - topology: - classRef: - name: my-cluster-class - version: v1.21.2 - controlPlane: - metadata: {} - replicas: 1 ---- -apiVersion: cluster.x-k8s.io/v1beta2 -kind: Cluster -metadata: - name: "my-second-cluster" - namespace: namespace-two - labels: - cni: kindnet -spec: - clusterNetwork: - services: - cidrBlocks: ["10.128.0.0/12"] - pods: - cidrBlocks: ["192.168.0.0/16"] - serviceDomain: "cluster.local" - topology: - classRef: - name: my-second-cluster-class - version: v1.21.2 - controlPlane: - metadata: {} - replicas: 1