Skip to content

Commit 470b3a1

Browse files
Merge pull request #371 from valaparthvi/aws-eks-example
Add EKS ClusterClass doc
2 parents cbbd817 + 5c3af24 commit 470b3a1

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

docs/next/modules/en/pages/user/clusterclass.adoc

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,67 @@ spec:
651651
name: md-0
652652
replicas: 1
653653
----
654+
AWS EKS::
655+
+
656+
* An AWS EKS ClusterClass can be found among the https://github.com/rancher/turtles/tree/main/examples/clusterclasses[Turtles examples].
657+
+
658+
[tabs]
659+
=======
660+
661+
CLI::
662+
+
663+
An AWS EKS ClusterClass and associated applications can be applied using the examples tool:
664+
+
665+
[source,bash]
666+
----
667+
go run github.com/rancher/turtles/examples@main -r aws-eks | kubectl apply -f -
668+
----
669+
670+
kubectl::
671+
+
672+
* Alternatively, you can apply the AWS EKS ClusterClass directly using kubectl:
673+
+
674+
[source,bash]
675+
----
676+
kubectl apply -f https://raw.githubusercontent.com/rancher/turtles/main/examples/clusterclasses/aws/eks/clusterclass-eks-example.yaml
677+
----
678+
=======
679+
+
680+
* Create the AWS Cluster from the example ClusterClass +
681+
+
682+
Note that some variables are left to the user to substitute. +
683+
+
684+
[source,yaml]
685+
----
686+
apiVersion: cluster.x-k8s.io/v1beta1
687+
kind: Cluster
688+
metadata:
689+
labels:
690+
cluster-api.cattle.io/rancher-auto-import: "true"
691+
name: aws-quickstart
692+
spec:
693+
clusterNetwork:
694+
pods:
695+
cidrBlocks:
696+
- 192.168.0.0/16
697+
topology:
698+
class: aws-eks-example
699+
variables:
700+
- name: region
701+
value: eu-west-2
702+
- name: sshKeyName
703+
value: <AWS_SSH_KEY_NAME>
704+
- name: instanceType
705+
value: <AWS_NODE_MACHINE_TYPE>
706+
- name: awsClusterIdentityName
707+
value: cluster-identity
708+
version: v1.31.0
709+
workers:
710+
machineDeployments:
711+
- class: default-worker
712+
name: md-0
713+
replicas: 1
714+
----
654715
655716
AWS Kubeadm::
656717
+

0 commit comments

Comments
 (0)