Skip to content

Instantly share code, notes, and snippets.

@raelga
Last active June 18, 2019 17:49
Show Gist options
  • Save raelga/3d14c15d8916f61030014b54d7f48550 to your computer and use it in GitHub Desktop.
Save raelga/3d14c15d8916f61030014b54d7f48550 to your computer and use it in GitHub Desktop.
sudo: required
language: go
go:
- "1.12"
services:
- docker
install: true
script:
- echo "Run your tests here"
before_install:
# Download and install Kind and kubectl
- GO111MODULE=on go get sigs.k8s.io/kind
- kind create cluster --config kind-config.yaml
- export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
- curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.14.3/bin/linux/amd64/kubectl
- chmod +x ./kubectl
- ./kubectl get nodes -o wide
- ./kubectl get pods --all-namespaces -o wide
- ./kubectl get services --all-namespaces -o wide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment