Skip to content

Instantly share code, notes, and snippets.

@russau
Created August 2, 2024 01:25
Show Gist options
  • Select an option

  • Save russau/0b0f11724869e05e52992edbad88de26 to your computer and use it in GitHub Desktop.

Select an option

Save russau/0b0f11724869e05e52992edbad88de26 to your computer and use it in GitHub Desktop.

Revisions

  1. russau created this gist Aug 2, 2024.
    24 changes: 24 additions & 0 deletions quick-cluster.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    ## Create a quick cluster with eksctl

    ```
    # download kubectl and install https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
    curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
    sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
    # https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html
    curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
    sudo mv /tmp/eksctl /usr/local/bin
    ```

    ## eksctl to create a small cluster

    ```
    eksctl create cluster --name quick-cluster --nodes 2 --region us-east-1
    ```

    ## setup a kubeconfig on another instance

    ```
    aws eks update-kubeconfig --name quick-cluster
    ```