@@ -752,17 +752,22 @@ intentionally use resources without patches and variables to focus on the simple
752
752
##### Create a new Cluster using ClusterClass object
753
753
1. User creates a ClusterClass object.
754
754
```yaml
755
- apiVersion: cluster.x-k8s.io/v1alpha4
755
+ apiVersion: cluster.x-k8s.io/v1beta1
756
756
kind: ClusterClass
757
757
metadata:
758
758
name: mixed
759
759
namespace: bar
760
760
spec:
761
761
controlPlane:
762
762
ref:
763
- apiVersion: controlplane.cluster.x-k8s.io/v1alpha4
763
+ apiVersion: controlplane.cluster.x-k8s.io/v1beta1
764
764
kind: KubeadmControlPlaneTemplate
765
765
name: vsphere-prod-cluster-template-kcp
766
+ machineInfrastructure:
767
+ ref:
768
+ apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
769
+ kind: VSphereMachineTemplate
770
+ name: linux-vsphere-template
766
771
# This will create a MachineHealthCheck for ControlPlane machines.
767
772
machineHealthCheck:
768
773
nodeStartupTimeout: 3m
@@ -775,17 +780,17 @@ intentionally use resources without patches and variables to focus on the simple
775
780
status: "False"
776
781
timeout: 300s
777
782
workers:
778
- deployments :
783
+ machineDeployments :
779
784
- class: linux-worker
780
785
template:
781
786
bootstrap:
782
787
ref:
783
- apiVersion: bootstrap.cluster.x-k8s.io/v1alpha4
788
+ apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
784
789
kind: KubeadmConfigTemplate
785
790
name: existing-boot-ref
786
791
infrastructure:
787
792
ref:
788
- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
793
+ apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
789
794
kind: VSphereMachineTemplate
790
795
name: linux-vsphere-template
791
796
# This will create a health check for each deployment created with the "linux-worker" MachineDeploymentClass
@@ -796,17 +801,17 @@ intentionally use resources without patches and variables to focus on the simple
796
801
timeout: 300s
797
802
- type: Ready
798
803
status: "False"
799
- timeout: 300s
804
+ timeout: 300s
800
805
- class: windows-worker
801
806
template:
802
807
bootstrap:
803
808
ref:
804
- apiVersion: bootstrap.cluster.x-k8s.io/v1alpha4
809
+ apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
805
810
kind: KubeadmConfigTemplate
806
811
name: existing-boot-ref-windows
807
812
infrastructure:
808
813
ref:
809
- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
814
+ apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
810
815
kind: VSphereMachineTemplate
811
816
name: windows-vsphere-template
812
817
# This will create a health check for each deployment created with the "windows-worker" MachineDeploymentClass
@@ -817,16 +822,16 @@ intentionally use resources without patches and variables to focus on the simple
817
822
timeout: 300s
818
823
- type: Ready
819
824
status: "False"
820
- timeout: 300s
825
+ timeout: 300s
821
826
infrastructure:
822
827
ref:
823
- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
828
+ apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
824
829
kind: VSphereClusterTemplate
825
830
name: vsphere-prod-cluster-template
826
831
```
827
832
2. User creates a cluster using the class name and defining the topology.
828
833
```yaml
829
- apiVersion: cluster.x-k8s.io/v1alpha4
834
+ apiVersion: cluster.x-k8s.io/v1beta1
830
835
kind: Cluster
831
836
metadata:
832
837
name: foo
@@ -923,7 +928,7 @@ to avoid creating separate ClusterClasses for every small deviation, e.g. a diff
923
928
924
929
1. User creates a ClusterClass object with variables and patches (other fields are omitted for brevity).
925
930
` ` ` yaml
926
- apiVersion: cluster.x-k8s.io/v1alpha4
931
+ apiVersion: cluster.x-k8s.io/v1beta1
927
932
kind: ClusterClass
928
933
metadata:
929
934
name: my-cluster-class
@@ -944,7 +949,7 @@ to avoid creating separate ClusterClasses for every small deviation, e.g. a diff
944
949
- name: region
945
950
definitions:
946
951
- selector:
947
- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
952
+ apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
948
953
kind: AWSClusterTemplate
949
954
jsonPatches:
950
955
- op: replace
@@ -954,7 +959,7 @@ to avoid creating separate ClusterClasses for every small deviation, e.g. a diff
954
959
- name: controlPlaneMachineType
955
960
definitions:
956
961
- selector:
957
- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
962
+ apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
958
963
kind: AWSMachineTemplate
959
964
matchResources:
960
965
controlPlane: true
@@ -969,7 +974,7 @@ to avoid creating separate ClusterClasses for every small deviation, e.g. a diff
969
974
970
975
1. User creates a Cluster referencing the ClusterClass created above and defining variables (other fields are omitted for brevity).
971
976
` ` ` yaml
972
- apiVersion: cluster.x-k8s.io/v1alpha4
977
+ apiVersion: cluster.x-k8s.io/v1beta1
973
978
kind: Cluster
974
979
metadata:
975
980
name: my-cluster
0 commit comments