@@ -770,17 +770,22 @@ intentionally use resources without patches and variables to focus on the simple
770
770
##### Create a new Cluster using ClusterClass object
771
771
1. User creates a ClusterClass object.
772
772
```yaml
773
- apiVersion: cluster.x-k8s.io/v1alpha4
773
+ apiVersion: cluster.x-k8s.io/v1beta1
774
774
kind: ClusterClass
775
775
metadata:
776
776
name: mixed
777
777
namespace: bar
778
778
spec:
779
779
controlPlane:
780
780
ref:
781
- apiVersion: controlplane.cluster.x-k8s.io/v1alpha4
781
+ apiVersion: controlplane.cluster.x-k8s.io/v1beta1
782
782
kind: KubeadmControlPlaneTemplate
783
783
name: vsphere-prod-cluster-template-kcp
784
+ machineInfrastructure:
785
+ ref:
786
+ apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
787
+ kind: VSphereMachineTemplate
788
+ name: linux-vsphere-template
784
789
# This will create a MachineHealthCheck for ControlPlane machines.
785
790
machineHealthCheck:
786
791
nodeStartupTimeout: 3m
@@ -793,17 +798,17 @@ intentionally use resources without patches and variables to focus on the simple
793
798
status: "False"
794
799
timeout: 300s
795
800
workers:
796
- deployments :
801
+ machineDeployments :
797
802
- class: linux-worker
798
803
template:
799
804
bootstrap:
800
805
ref:
801
- apiVersion: bootstrap.cluster.x-k8s.io/v1alpha4
806
+ apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
802
807
kind: KubeadmConfigTemplate
803
808
name: existing-boot-ref
804
809
infrastructure:
805
810
ref:
806
- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
811
+ apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
807
812
kind: VSphereMachineTemplate
808
813
name: linux-vsphere-template
809
814
# This will create a health check for each deployment created with the "linux-worker" MachineDeploymentClass
@@ -814,17 +819,17 @@ intentionally use resources without patches and variables to focus on the simple
814
819
timeout: 300s
815
820
- type: Ready
816
821
status: "False"
817
- timeout: 300s
822
+ timeout: 300s
818
823
- class: windows-worker
819
824
template:
820
825
bootstrap:
821
826
ref:
822
- apiVersion: bootstrap.cluster.x-k8s.io/v1alpha4
827
+ apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
823
828
kind: KubeadmConfigTemplate
824
829
name: existing-boot-ref-windows
825
830
infrastructure:
826
831
ref:
827
- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
832
+ apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
828
833
kind: VSphereMachineTemplate
829
834
name: windows-vsphere-template
830
835
# This will create a health check for each deployment created with the "windows-worker" MachineDeploymentClass
@@ -835,16 +840,16 @@ intentionally use resources without patches and variables to focus on the simple
835
840
timeout: 300s
836
841
- type: Ready
837
842
status: "False"
838
- timeout: 300s
843
+ timeout: 300s
839
844
infrastructure:
840
845
ref:
841
- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
846
+ apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
842
847
kind: VSphereClusterTemplate
843
848
name: vsphere-prod-cluster-template
844
849
```
845
850
2. User creates a cluster using the class name and defining the topology.
846
851
```yaml
847
- apiVersion: cluster.x-k8s.io/v1alpha4
852
+ apiVersion: cluster.x-k8s.io/v1beta1
848
853
kind: Cluster
849
854
metadata:
850
855
name: foo
@@ -941,7 +946,7 @@ to avoid creating separate ClusterClasses for every small deviation, e.g. a diff
941
946
942
947
1. User creates a ClusterClass object with variables and patches (other fields are omitted for brevity).
943
948
` ` ` yaml
944
- apiVersion: cluster.x-k8s.io/v1alpha4
949
+ apiVersion: cluster.x-k8s.io/v1beta1
945
950
kind: ClusterClass
946
951
metadata:
947
952
name: my-cluster-class
@@ -962,7 +967,7 @@ to avoid creating separate ClusterClasses for every small deviation, e.g. a diff
962
967
- name: region
963
968
definitions:
964
969
- selector:
965
- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
970
+ apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
966
971
kind: AWSClusterTemplate
967
972
jsonPatches:
968
973
- op: replace
@@ -972,7 +977,7 @@ to avoid creating separate ClusterClasses for every small deviation, e.g. a diff
972
977
- name: controlPlaneMachineType
973
978
definitions:
974
979
- selector:
975
- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
980
+ apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
976
981
kind: AWSMachineTemplate
977
982
matchResources:
978
983
controlPlane: true
@@ -987,7 +992,7 @@ to avoid creating separate ClusterClasses for every small deviation, e.g. a diff
987
992
988
993
1. User creates a Cluster referencing the ClusterClass created above and defining variables (other fields are omitted for brevity).
989
994
` ` ` yaml
990
- apiVersion: cluster.x-k8s.io/v1alpha4
995
+ apiVersion: cluster.x-k8s.io/v1beta1
991
996
kind: Cluster
992
997
metadata:
993
998
name: my-cluster
0 commit comments