Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Appveyor file which runs minikube for testing Kubernetes
image: ubuntu
# Download ans install minikube
# Download kubectl, which is a requirement for using minikube
- curl -sL$(curl -s -o kubectl
- chmod +x kubectl
- sudo mv kubectl /usr/local/bin/
# Download minikube
- curl -sL -o minikube
- chmod +x minikube
- sudo mv minikube /usr/local/bin/
- sudo CHANGE_MINIKUBE_NONE_USER=true minikube start --vm-driver=none --memory=4096
# Wait for Kubernetes to be up and ready (
- JSONPATH='{range .items[*]}{}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl get nodes -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1; done
# Run commands
- kubectl get nodes
- kubectl get pods --all-namespaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.