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