sigs.k8s.io/cluster-api@v1.7.1/cmd/clusterctl/client/cluster/assets/topology-test/my-cluster-class.yaml (about)

     1  apiVersion: cluster.x-k8s.io/v1beta1
     2  kind: ClusterClass
     3  metadata:
     4    name: my-cluster-class
     5    namespace: default
     6  spec:
     7    controlPlane:
     8      ref:
     9        apiVersion: controlplane.cluster.x-k8s.io/v1beta1
    10        kind: KubeadmControlPlaneTemplate
    11        name: control-plane
    12        namespace: default
    13      machineInfrastructure:
    14        ref:
    15          kind: DockerMachineTemplate
    16          apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    17          name: "control-plane"
    18          namespace: default
    19    infrastructure:
    20      ref:
    21        apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    22        kind: DockerClusterTemplate
    23        name: my-cluster
    24        namespace: default
    25  ---
    26  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    27  kind: DockerClusterTemplate
    28  metadata:
    29    name: my-cluster
    30    namespace: default
    31  spec:
    32    template:
    33      spec: {}
    34  ---
    35  kind: KubeadmControlPlaneTemplate
    36  apiVersion: controlplane.cluster.x-k8s.io/v1beta1
    37  metadata:
    38    name: "control-plane"
    39    namespace: default
    40  spec:
    41    template:
    42      spec:
    43        replicas: 1
    44        machineTemplate:
    45          nodeDrainTimeout: 1s
    46          infrastructureRef:
    47            kind: DockerMachineTemplate
    48            apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    49            name: "control-plane"
    50            namespace: default
    51        kubeadmConfigSpec:
    52          clusterConfiguration:
    53            apiServer:
    54              certSANs: [ localhost, 127.0.0.1 ]
    55          initConfiguration:
    56            nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use.
    57          joinConfiguration:
    58            nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use.
    59        version: v1.21.2
    60  ---
    61  apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    62  kind: DockerMachineTemplate
    63  metadata:
    64    name: "control-plane"
    65    namespace: default
    66  spec:
    67    template:
    68      spec:
    69        extraMounts:
    70        - containerPath: "/var/run/docker.sock"
    71          hostPath: "/var/run/docker.sock"