diff --git a/docs/next/modules/en/pages/user/clusterclass.adoc b/docs/next/modules/en/pages/user/clusterclass.adoc index 1d65f2fd..8bcf6ba1 100644 --- a/docs/next/modules/en/pages/user/clusterclass.adoc +++ b/docs/next/modules/en/pages/user/clusterclass.adoc @@ -651,6 +651,67 @@ spec: name: md-0 replicas: 1 ---- +AWS EKS:: ++ +* An AWS EKS ClusterClass can be found among the https://github.com/rancher/turtles/tree/main/examples/clusterclasses[Turtles examples]. ++ +[tabs] +======= + +CLI:: ++ +An AWS EKS ClusterClass and associated applications can be applied using the examples tool: ++ +[source,bash] +---- +go run github.com/rancher/turtles/examples@main -r aws-eks | kubectl apply -f - +---- + +kubectl:: ++ +* Alternatively, you can apply the AWS EKS ClusterClass directly using kubectl: ++ +[source,bash] +---- +kubectl apply -f https://raw.githubusercontent.com/rancher/turtles/main/examples/clusterclasses/aws/eks/clusterclass-eks-example.yaml +---- +======= ++ +* Create the AWS Cluster from the example ClusterClass + ++ +Note that some variables are left to the user to substitute. + ++ +[source,yaml] +---- +apiVersion: cluster.x-k8s.io/v1beta1 +kind: Cluster +metadata: + labels: + cluster-api.cattle.io/rancher-auto-import: "true" + name: aws-quickstart +spec: + clusterNetwork: + pods: + cidrBlocks: + - 192.168.0.0/16 + topology: + class: aws-eks-example + variables: + - name: region + value: eu-west-2 + - name: sshKeyName + value: + - name: instanceType + value: + - name: awsClusterIdentityName + value: cluster-identity + version: v1.31.0 + workers: + machineDeployments: + - class: default-worker + name: md-0 + replicas: 1 +---- AWS Kubeadm:: +