From 64771c2ad9789cdc91dda98273f9a15e73d35b91 Mon Sep 17 00:00:00 2001 From: ada mancini Date: Tue, 26 Nov 2024 14:41:23 -0500 Subject: [PATCH 1/2] Add EC usage example Show example for embedded-cluster distribution and bring up the example k8s apiversion to 1.29 --- cli/cmd/cluster_create.go | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/cli/cmd/cluster_create.go b/cli/cmd/cluster_create.go index 05a2c4b6..b579058f 100644 --- a/cli/cmd/cluster_create.go +++ b/cli/cmd/cluster_create.go @@ -28,25 +28,29 @@ This command supports creating clusters on multiple Kubernetes distributions, in Use the '--dry-run' flag to simulate the creation process and get an estimated cost without actually provisioning the cluster.`, Example: ` # Create a new cluster with basic configuration - replicated cluster create --distribution eks --version 1.21 --nodes 3 --instance-type t3.large --disk 100 --ttl 24h + replicated cluster create --distribution eks --version 1.29 --nodes 3 --instance-type t3.large --disk 100 --ttl 24h # Create a cluster with a custom node group - replicated cluster create --distribution eks --version 1.21 --nodegroup name=workers,instance-type=t3.large,nodes=5 --ttl 24h + replicated cluster create --distribution eks --version 1.29 --nodegroup name=workers,instance-type=t3.large,nodes=5 --ttl 24h # Simulate cluster creation (dry-run) - replicated cluster create --distribution eks --version 1.21 --nodes 3 --disk 100 --ttl 24h --dry-run + replicated cluster create --distribution eks --version 1.29 --nodes 3 --disk 100 --ttl 24h --dry-run # Create a cluster with autoscaling configuration - replicated cluster create --distribution eks --version 1.21 --min-nodes 2 --max-nodes 5 --instance-type t3.large --ttl 24h + replicated cluster create --distribution eks --version 1.29 --min-nodes 2 --max-nodes 5 --instance-type t3.large --ttl 24h # Create a cluster with multiple node groups - replicated cluster create --distribution eks --version 1.21 \ + replicated cluster create --distribution eks --version 1.29 \ --nodegroup name=workers,instance-type=t3.large,nodes=3 \ --nodegroup name=cpu-intensive,instance-type=c5.2xlarge,nodes=2 \ --ttl 24h + # Create a cluster with Embedded Cluster and a customer license + replicated cluster create --distribution embedded-cluster --version 1.29 \ + --license-id 2jbfVR0m7tIy1tDec5ktplXYZZ + # Create a cluster with custom tags - replicated cluster create --distribution eks --version 1.21 --nodes 3 --tag env=test --tag project=demo --ttl 24h`, + replicated cluster create --distribution eks --version 1.29 --nodes 3 --tag env=test --tag project=demo --ttl 24h`, SilenceUsage: true, RunE: r.createCluster, Args: cobra.NoArgs, From 6a587b5dba06323e71ba699d85b650b568a12c15 Mon Sep 17 00:00:00 2001 From: ada mancini Date: Tue, 26 Nov 2024 14:50:01 -0500 Subject: [PATCH 2/2] remove version from EC example --- cli/cmd/cluster_create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cmd/cluster_create.go b/cli/cmd/cluster_create.go index b579058f..b7bcbe60 100644 --- a/cli/cmd/cluster_create.go +++ b/cli/cmd/cluster_create.go @@ -46,7 +46,7 @@ Use the '--dry-run' flag to simulate the creation process and get an estimated c --ttl 24h # Create a cluster with Embedded Cluster and a customer license - replicated cluster create --distribution embedded-cluster --version 1.29 \ + replicated cluster create --distribution embedded-cluster \ --license-id 2jbfVR0m7tIy1tDec5ktplXYZZ # Create a cluster with custom tags