|
| 1 | +# Copyright 2023 D2iQ, Inc. All rights reserved. |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +apiVersion: cluster.x-k8s.io/v1beta1 |
| 5 | +kind: ClusterClass |
| 6 | +metadata: |
| 7 | + name: capd-quick-start |
| 8 | +spec: |
| 9 | + controlPlane: |
| 10 | + machineInfrastructure: |
| 11 | + ref: |
| 12 | + apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 |
| 13 | + kind: DockerMachineTemplate |
| 14 | + name: capd-quick-start-control-plane |
| 15 | + ref: |
| 16 | + apiVersion: controlplane.cluster.x-k8s.io/v1beta1 |
| 17 | + kind: KubeadmControlPlaneTemplate |
| 18 | + name: capd-quick-start-control-plane |
| 19 | + infrastructure: |
| 20 | + ref: |
| 21 | + apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 |
| 22 | + kind: DockerClusterTemplate |
| 23 | + name: capd-quick-start-cluster |
| 24 | + patches: |
| 25 | + - external: |
| 26 | + discoverVariablesExtension: clusterconfigvars.capi-runtime-extensions |
| 27 | + generateExtension: clusterconfigpatch.capi-runtime-extensions |
| 28 | + name: cluster-config |
| 29 | + workers: |
| 30 | + machineDeployments: |
| 31 | + - class: default-worker |
| 32 | + template: |
| 33 | + bootstrap: |
| 34 | + ref: |
| 35 | + apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 |
| 36 | + kind: KubeadmConfigTemplate |
| 37 | + name: capd-quick-start-default-worker-bootstraptemplate |
| 38 | + infrastructure: |
| 39 | + ref: |
| 40 | + apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 |
| 41 | + kind: DockerMachineTemplate |
| 42 | + name: capd-quick-start-default-worker-machinetemplate |
| 43 | +--- |
| 44 | +apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 |
| 45 | +kind: DockerClusterTemplate |
| 46 | +metadata: |
| 47 | + name: capd-quick-start-cluster |
| 48 | +spec: |
| 49 | + template: |
| 50 | + spec: {} |
| 51 | +--- |
| 52 | +apiVersion: controlplane.cluster.x-k8s.io/v1beta1 |
| 53 | +kind: KubeadmControlPlaneTemplate |
| 54 | +metadata: |
| 55 | + name: capd-quick-start-control-plane |
| 56 | +spec: |
| 57 | + template: |
| 58 | + spec: |
| 59 | + kubeadmConfigSpec: |
| 60 | + clusterConfiguration: |
| 61 | + apiServer: |
| 62 | + certSANs: |
| 63 | + - localhost |
| 64 | + - 127.0.0.1 |
| 65 | + - 0.0.0.0 |
| 66 | + - host.docker.internal |
| 67 | + controllerManager: |
| 68 | + extraArgs: |
| 69 | + enable-hostpath-provisioner: "true" |
| 70 | + initConfiguration: |
| 71 | + nodeRegistration: {} |
| 72 | + joinConfiguration: |
| 73 | + nodeRegistration: {} |
| 74 | +--- |
| 75 | +apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 |
| 76 | +kind: DockerMachineTemplate |
| 77 | +metadata: |
| 78 | + name: capd-quick-start-control-plane |
| 79 | +spec: |
| 80 | + template: |
| 81 | + spec: |
| 82 | + extraMounts: |
| 83 | + - containerPath: /var/run/docker.sock |
| 84 | + hostPath: /var/run/docker.sock |
| 85 | +--- |
| 86 | +apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 |
| 87 | +kind: DockerMachineTemplate |
| 88 | +metadata: |
| 89 | + name: capd-quick-start-default-worker-machinetemplate |
| 90 | +spec: |
| 91 | + template: |
| 92 | + spec: |
| 93 | + extraMounts: |
| 94 | + - containerPath: /var/run/docker.sock |
| 95 | + hostPath: /var/run/docker.sock |
| 96 | +--- |
| 97 | +apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 |
| 98 | +kind: KubeadmConfigTemplate |
| 99 | +metadata: |
| 100 | + name: capd-quick-start-default-worker-bootstraptemplate |
| 101 | +spec: |
| 102 | + template: |
| 103 | + spec: |
| 104 | + joinConfiguration: |
| 105 | + nodeRegistration: {} |
0 commit comments