sigs.k8s.io/cluster-api@v1.6.3/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 controllerManager: 83 extraArgs: 84 enable-hostpath-provisioner: "true" 85 dns: {} 86 etcd: {} 87 networking: {} 88 scheduler: {} 89 initConfiguration: 90 localAPIEndpoint: {} 91 nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use. 92 joinConfiguration: 93 discovery: {} 94 nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use. 95 machineTemplate: 96 infrastructureRef: 97 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 98 kind: DockerMachineTemplate 99 name: my-cluster-control-plane-44cd4 100 namespace: default 101 metadata: 102 labels: 103 cluster.x-k8s.io/cluster-name: my-cluster 104 topology.cluster.x-k8s.io/owned: "" 105 nodeDrainTimeout: 1s 106 replicas: 1 107 rolloutStrategy: 108 rollingUpdate: 109 maxSurge: 1 110 type: RollingUpdate 111 version: v1.21.2 112 --- 113 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 114 kind: DockerMachineTemplate 115 metadata: 116 annotations: 117 cluster.x-k8s.io/cloned-from-groupkind: DockerMachineTemplate.infrastructure.cluster.x-k8s.io 118 cluster.x-k8s.io/cloned-from-name: control-plane 119 labels: 120 cluster.x-k8s.io/cluster-name: my-cluster 121 topology.cluster.x-k8s.io/owned: "" 122 name: my-second-cluster-control-plane-44cd4 123 namespace: default 124 ownerReferences: 125 - apiVersion: cluster.x-k8s.io/v1beta1 126 kind: Cluster 127 name: my-second-cluster 128 uid: 3ba5ce4f-d279-4edb-8ade-62a2381d11a9 129 spec: 130 template: 131 spec: 132 extraMounts: 133 - containerPath: /var/run/docker.sock 134 hostPath: /var/run/docker.sock