Merge pull request #29949 from fabriziopandini/align-ClusterClass-blog-to-CAPI-tutorial
Align the ClusterClass blog to the CAPI book tutorial
This commit is contained in:
		
						commit
						708c442e38
					
				|  | @ -36,52 +36,52 @@ ClusterClass, at its heart, is a collection of Cluster and Machine templates. Yo | ||||||
| ```yaml | ```yaml | ||||||
| --- | --- | ||||||
| apiVersion: cluster.x-k8s.io/v1beta1 | apiVersion: cluster.x-k8s.io/v1beta1 | ||||||
|  kind: ClusterClass | kind: ClusterClass | ||||||
|  metadata: | metadata: | ||||||
|   name: my-amazing-cluster-class |   name: my-amazing-cluster-class | ||||||
|    namespace: bar | spec: | ||||||
|  spec: |  | ||||||
|   controlPlane: |   controlPlane: | ||||||
|     ref: |     ref: | ||||||
|       apiVersion: controlplane.cluster.x-k8s.io/v1beta1 |       apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||||||
|       kind: KubeadmControlPlaneTemplate |       kind: KubeadmControlPlaneTemplate | ||||||
|        name: high-availability-kcp |       name: high-availability-control-plane | ||||||
|     machineInfrastructure: |     machineInfrastructure: | ||||||
|       ref: |       ref: | ||||||
|          apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 |         apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||||||
|          kind: VSphereMachineTemplate |         kind: DockerMachineTemplate | ||||||
|          name: controlplane-vsphere-machinetemplate |         name: control-plane-machine | ||||||
|   workers: |   workers: | ||||||
|      deployments: |     machineDeployments: | ||||||
|      - class: linux-worker |       - class: type1-workers | ||||||
|         template: |         template: | ||||||
|           bootstrap: |           bootstrap: | ||||||
|             ref: |             ref: | ||||||
|               apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 |               apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||||||
|               kind: KubeadmConfigTemplate |               kind: KubeadmConfigTemplate | ||||||
|              name: linux-bootstrap |               name: type1-bootstrap | ||||||
|           infrastructure: |           infrastructure: | ||||||
|             ref: |             ref: | ||||||
|              apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 |               apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||||||
|              kind: VSphereMachineTemplate |               kind: DockerMachineTemplate | ||||||
|              name: linux-vsphere-template |               name: type1-machine | ||||||
|      - class: windows-worker |       - class: type2-workers | ||||||
|         template: |         template: | ||||||
|           bootstrap: |           bootstrap: | ||||||
|             ref: |             ref: | ||||||
|               apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 |               apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||||||
|               kind: KubeadmConfigTemplate |               kind: KubeadmConfigTemplate | ||||||
|              name: windows-bootstrap |               name: type2-bootstrap | ||||||
|           infrastructure: |           infrastructure: | ||||||
|             ref: |             ref: | ||||||
|              apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 |               kind: DockerMachineTemplate | ||||||
|              kind: VSphereMachineTemplate |               apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||||||
|              name: windows-vsphere-template |               name: type2-machine | ||||||
|   infrastructure: |   infrastructure: | ||||||
|     ref: |     ref: | ||||||
|        apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 |       apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||||||
|        kind: VSphereClusterTemplate |       kind: DockerClusterTemplate | ||||||
|        name: vsphere-cluster |       name: cluster-infrastructure | ||||||
|  | 
 | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| 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. | 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 | ||||||
|        replicas: 3 |        replicas: 3 | ||||||
|      workers: |      workers: | ||||||
|        machineDeployments: |        machineDeployments: | ||||||
|        - class: linux-worker |        - class: type1-workers | ||||||
|          name: big-pool-of-linux-machines-1 |          name: big-pool-of-machines | ||||||
|          replicas: 5 |          replicas: 5 | ||||||
|        - class: linux-worker |        - class: type2-workers | ||||||
|          name: small-pool-of-linux-machines-1 |          name: small-pool-of-machines | ||||||
|          replicas: 1 |          replicas: 1 | ||||||
|        - class: windows-worker |  | ||||||
|          name: pool-of-windows-machines |  | ||||||
|          replicas: 3 |  | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| But there is more than simplified cluster creation. Now the Cluster acts as a single control point for your entire topology. | 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 | ||||||
| * Chat with us on the Kubernetes [Slack](http://slack.k8s.io/):[#cluster-api](https://kubernetes.slack.com/archives/C8TSNPY4T) | * Chat with us on the Kubernetes [Slack](http://slack.k8s.io/):[#cluster-api](https://kubernetes.slack.com/archives/C8TSNPY4T) | ||||||
| * 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 | * 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 | ||||||
| * Join our [Zoom meeting](https://zoom.us/j/861487554), every Wednesday at 10:00 Pacific Time | * Join our [Zoom meeting](https://zoom.us/j/861487554), every Wednesday at 10:00 Pacific Time | ||||||
|  | * Check out the [ClusterClass tutorial](https://cluster-api.sigs.k8s.io/tasks/experimental-features/cluster-classes.html) in the Cluster API book. | ||||||
		Loading…
	
		Reference in New Issue