Skip to content

Commit 708c442

Browse files
authored
Merge pull request #29949 from fabriziopandini/align-ClusterClass-blog-to-CAPI-tutorial
Align the ClusterClass blog to the CAPI book tutorial
2 parents 1ef0e9a + f268125 commit 708c442

File tree

1 file changed

+51
-53
lines changed

1 file changed

+51
-53
lines changed

content/en/blog/_posts/2021-10-08-clusterclass-and-managed-topologies.md

Lines changed: 51 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -36,52 +36,52 @@ ClusterClass, at its heart, is a collection of Cluster and Machine templates. Yo
3636
```yaml
3737
---
3838
apiVersion: cluster.x-k8s.io/v1beta1
39-
kind: ClusterClass
40-
metadata:
41-
name: my-amazing-cluster-class
42-
namespace: bar
43-
spec:
44-
controlPlane:
45-
ref:
46-
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
47-
kind: KubeadmControlPlaneTemplate
48-
name: high-availability-kcp
49-
machineInfrastructure:
50-
ref:
51-
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
52-
kind: VSphereMachineTemplate
53-
name: controlplane-vsphere-machinetemplate
54-
workers:
55-
deployments:
56-
- class: linux-worker
57-
template:
58-
bootstrap:
59-
ref:
60-
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
61-
kind: KubeadmConfigTemplate
62-
name: linux-bootstrap
63-
infrastructure:
64-
ref:
65-
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
66-
kind: VSphereMachineTemplate
67-
name: linux-vsphere-template
68-
- class: windows-worker
69-
template:
70-
bootstrap:
71-
ref:
72-
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
73-
kind: KubeadmConfigTemplate
74-
name: windows-bootstrap
75-
infrastructure:
76-
ref:
77-
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
78-
kind: VSphereMachineTemplate
79-
name: windows-vsphere-template
80-
infrastructure:
81-
ref:
82-
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
83-
kind: VSphereClusterTemplate
84-
name: vsphere-cluster
39+
kind: ClusterClass
40+
metadata:
41+
name: my-amazing-cluster-class
42+
spec:
43+
controlPlane:
44+
ref:
45+
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
46+
kind: KubeadmControlPlaneTemplate
47+
name: high-availability-control-plane
48+
machineInfrastructure:
49+
ref:
50+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
51+
kind: DockerMachineTemplate
52+
name: control-plane-machine
53+
workers:
54+
machineDeployments:
55+
- class: type1-workers
56+
template:
57+
bootstrap:
58+
ref:
59+
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
60+
kind: KubeadmConfigTemplate
61+
name: type1-bootstrap
62+
infrastructure:
63+
ref:
64+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
65+
kind: DockerMachineTemplate
66+
name: type1-machine
67+
- class: type2-workers
68+
template:
69+
bootstrap:
70+
ref:
71+
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
72+
kind: KubeadmConfigTemplate
73+
name: type2-bootstrap
74+
infrastructure:
75+
ref:
76+
kind: DockerMachineTemplate
77+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
78+
name: type2-machine
79+
infrastructure:
80+
ref:
81+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
82+
kind: DockerClusterTemplate
83+
name: cluster-infrastructure
84+
8585
```
8686

8787
The possibilities are endless; you can get a default ClusterClass from the community, “off-the-shelf” classes from your vendor of choice, “certified” classes from the platform admin in your company, or even create custom ones for advanced scenarios.
@@ -111,15 +111,12 @@ apiVersion: cluster.x-k8s.io/v1beta1
111111
replicas: 3
112112
workers:
113113
machineDeployments:
114-
- class: linux-worker
115-
name: big-pool-of-linux-machines-1
114+
- class: type1-workers
115+
name: big-pool-of-machines
116116
replicas: 5
117-
- class: linux-worker
118-
name: small-pool-of-linux-machines-1
117+
- class: type2-workers
118+
name: small-pool-of-machines
119119
replicas: 1
120-
- class: windows-worker
121-
name: pool-of-windows-machines
122-
replicas: 3
123120
```
124121
125122
But there is more than simplified cluster creation. Now the Cluster acts as a single control point for your entire topology.
@@ -141,3 +138,4 @@ Stay tuned for what comes next, and if you have any questions, comments or sugge
141138
* Chat with us on the Kubernetes [Slack](http://slack.k8s.io/):[#cluster-api](https://kubernetes.slack.com/archives/C8TSNPY4T)
142139
* Join the SIG Cluster Lifecycle [Google Group](https://groups.google.com/g/kubernetes-sig-cluster-lifecycle) to receive calendar invites and gain access to documents
143140
* Join our [Zoom meeting](https://zoom.us/j/861487554), every Wednesday at 10:00 Pacific Time
141+
* Check out the [ClusterClass tutorial](https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-classes.html) in the Cluster API book.

0 commit comments

Comments
 (0)