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