-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tests) switch from minikube to kind (#107)
* fix(kind) switch from minikube to kind * fix(ci) kind / helm compatibility fix * fix(ci) adjust installation order * fix(ci) install helm * fix(ci) define clone location * fix(ci) cleanup travis.yml file * fix(ci) background the ci test setup steps * fix(ci) wait until the k8s cluster is ready
Showing
4 changed files
with
29 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
GO111MODULE=on go get sigs.k8s.io/kind | ||
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl | ||
chmod +x ./kubectl | ||
mv kubectl $HOME/bin/ | ||
curl -Lo get_helm.sh https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | ||
chmod +x get_helm.sh | ||
kind create cluster | ||
sudo ./get_helm.sh | ||
rm -rf get_helm.sh | ||
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")" | ||
kubectl create serviceaccount --namespace kube-system tiller | ||
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller | ||
helm init --service-account tiller --upgrade | ||
kubectl get nodes -o wide | ||
kubectl get pods --all-namespaces -o wide | ||
kubectl get services --all-namespaces -o wide |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters