GitOps for k8s
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

e2e-kind.sh 674B

12345678910111213141516171819202122
  1. #!/usr/bin/env bash
  2. set -o errexit
  3. export GOPATH=$HOME/go
  4. export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
  5. REPO_ROOT=$(git rev-parse --show-toplevel)
  6. echo ">>> Installing kubectl"
  7. curl -sLO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \
  8. chmod +x kubectl && \
  9. sudo mv kubectl /usr/local/bin/
  10. echo ">>> Building sigs.k8s.io/kind"
  11. go get -u sigs.k8s.io/kind
  12. echo ">>> Installing kind"
  13. sudo cp $GOPATH/bin/kind /usr/local/bin/
  14. kind create cluster --wait 5m
  15. export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
  16. kubectl get pods --all-namespaces