align ClusterClass blog to CAPI book tutorial
This commit is contained in:
@@ -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-control-plane
|
||||||
name: high-availability-kcp
|
machineInfrastructure:
|
||||||
machineInfrastructure:
|
ref:
|
||||||
ref:
|
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
|
||||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
|
kind: DockerMachineTemplate
|
||||||
kind: VSphereMachineTemplate
|
name: control-plane-machine
|
||||||
name: controlplane-vsphere-machinetemplate
|
workers:
|
||||||
workers:
|
machineDeployments:
|
||||||
deployments:
|
- class: type1-workers
|
||||||
- class: linux-worker
|
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: type1-bootstrap
|
||||||
name: linux-bootstrap
|
infrastructure:
|
||||||
infrastructure:
|
ref:
|
||||||
ref:
|
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
|
||||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
|
kind: DockerMachineTemplate
|
||||||
kind: VSphereMachineTemplate
|
name: type1-machine
|
||||||
name: linux-vsphere-template
|
- class: type2-workers
|
||||||
- class: windows-worker
|
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: type2-bootstrap
|
||||||
name: windows-bootstrap
|
infrastructure:
|
||||||
infrastructure:
|
ref:
|
||||||
ref:
|
kind: DockerMachineTemplate
|
||||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
|
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
|
||||||
kind: VSphereMachineTemplate
|
name: type2-machine
|
||||||
name: windows-vsphere-template
|
infrastructure:
|
||||||
infrastructure:
|
ref:
|
||||||
ref:
|
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
|
||||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
|
kind: DockerClusterTemplate
|
||||||
kind: VSphereClusterTemplate
|
name: cluster-infrastructure
|
||||||
name: vsphere-cluster
|
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
||||||
Reference in New Issue
Block a user