sigs.k8s.io/cluster-api@v1.7.1/cmd/clusterctl/client/cluster/assets/topology-test/existing-my-second-cluster.yaml (about) 1 --- 2 apiVersion: cluster.x-k8s.io/v1beta1 3 kind: Cluster 4 metadata: 5 name: "my-second-cluster" 6 namespace: default 7 labels: 8 cni: kindnet 9 spec: 10 clusterNetwork: 11 services: 12 cidrBlocks: ["10.128.0.0/12"] 13 pods: 14 cidrBlocks: ["192.168.0.0/16"] 15 serviceDomain: "cluster.local" 16 controlPlaneEndpoint: 17 host: 172.19.0.4 18 port: 6443 19 controlPlaneRef: 20 apiVersion: controlplane.cluster.x-k8s.io/v1beta1 21 kind: KubeadmControlPlane 22 name: my-second-cluster-fwbpf 23 namespace: default 24 infrastructureRef: 25 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 26 kind: DockerCluster 27 name: my-second-cluster-zrq96 28 namespace: default 29 topology: 30 class: my-cluster-class 31 version: v1.21.2 32 controlPlane: 33 metadata: {} 34 replicas: 1 35 --- 36 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 37 kind: DockerCluster 38 metadata: 39 annotations: 40 cluster.x-k8s.io/cloned-from-groupkind: DockerClusterTemplate.infrastructure.cluster.x-k8s.io 41 cluster.x-k8s.io/cloned-from-name: my-cluster 42 finalizers: 43 - dockercluster.infrastructure.cluster.x-k8s.io 44 labels: 45 cluster.x-k8s.io/cluster-name: my-cluster 46 topology.cluster.x-k8s.io/owned: "" 47 name: my-second-cluster-zrq96 48 namespace: default 49 spec: 50 controlPlaneEndpoint: 51 host: 172.19.0.4 52 port: 6443 53 loadBalancer: {} 54 --- 55 apiVersion: controlplane.cluster.x-k8s.io/v1beta1 56 kind: KubeadmControlPlane 57 metadata: 58 annotations: 59 cluster.x-k8s.io/cloned-from-groupkind: KubeadmControlPlaneTemplate.controlplane.cluster.x-k8s.io 60 cluster.x-k8s.io/cloned-from-name: control-plane 61 finalizers: 62 - kubeadm.controlplane.cluster.x-k8s.io 63 labels: 64 cluster.x-k8s.io/cluster-name: my-cluster 65 topology.cluster.x-k8s.io/owned: "" 66 name: my-second-cluster-fwbpf 67 namespace: default 68 ownerReferences: 69 - apiVersion: cluster.x-k8s.io/v1beta1 70 blockOwnerDeletion: true 71 controller: true 72 kind: Cluster 73 name: my-second-cluster 74 uid: 3ba5ce4f-d279-4edb-8ade-62a2381d11a9 75 spec: 76 kubeadmConfigSpec: 77 clusterConfiguration: 78 apiServer: 79 certSANs: 80 - localhost 81 - 127.0.0.1 82 dns: {} 83 etcd: {} 84 networking: {} 85 scheduler: {} 86 initConfiguration: 87 localAPIEndpoint: {} 88 nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use. 89 joinConfiguration: 90 discovery: {} 91 nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use. 92 machineTemplate: 93 infrastructureRef: 94 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 95 kind: DockerMachineTemplate 96 name: my-cluster-control-plane-44cd4 97 namespace: default 98 metadata: 99 labels: 100 cluster.x-k8s.io/cluster-name: my-cluster 101 topology.cluster.x-k8s.io/owned: "" 102 nodeDrainTimeout: 1s 103 replicas: 1 104 rolloutStrategy: 105 rollingUpdate: 106 maxSurge: 1 107 type: RollingUpdate 108 version: v1.21.2 109 --- 110 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 111 kind: DockerMachineTemplate 112 metadata: 113 annotations: 114 cluster.x-k8s.io/cloned-from-groupkind: DockerMachineTemplate.infrastructure.cluster.x-k8s.io 115 cluster.x-k8s.io/cloned-from-name: control-plane 116 labels: 117 cluster.x-k8s.io/cluster-name: my-cluster 118 topology.cluster.x-k8s.io/owned: "" 119 name: my-second-cluster-control-plane-44cd4 120 namespace: default 121 ownerReferences: 122 - apiVersion: cluster.x-k8s.io/v1beta1 123 kind: Cluster 124 name: my-second-cluster 125 uid: 3ba5ce4f-d279-4edb-8ade-62a2381d11a9 126 spec: 127 template: 128 spec: 129 extraMounts: 130 - containerPath: /var/run/docker.sock 131 hostPath: /var/run/docker.sock