Created
August 16, 2018 03:24
-
-
Save flavio-fernandes/85264a4ce9a6ebbe1811495025aa6e80 to your computer and use it in GitHub Desktop.
Error: could not find tiller
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
steps from trying https://github.com/tvieira/presentations/blob/master/kiali/DEMO.md | |
pre-reqs: | |
# install kvm... | |
sudo apt -y install uvtool ; # installs uvt-simplestreams-libvirt and uvt-kvm | |
time uvt-simplestreams-libvirt sync release=xenial arch=amd64 | |
=-==-=-= | |
VM=minik | |
# to blow it away later on | |
uvt-kvm destroy ${VM} | |
uvt-kvm create ${VM} release=xenial arch=amd64 --memory 8196 --disk 80 --cpu 4 --packages tree | |
uvt-kvm wait --insecure ${VM} | |
#ssh into a xenial vm, brand new vm | |
uvt-kvm ssh --insecure ${VM} | |
sudo apt-get update && sudo apt-get -y upgrade && \ | |
sudo apt-get -y install docker.io && \ | |
sudo adduser $USER docker && \ | |
echo ok | |
# logout and log back in | |
exit | |
uvt-kvm ssh --insecure ${VM} ; # up arrow should do | |
=-=-=-=-= | |
# define and run minikube_up function, as shown in evernote uuid: 2018-Apr-24-Tue@17:58:51 | |
3 WITH SOME TWEAKS to accomoadate versions in https://github.com/tvieira/presentations/blob/master/kiali/DEMO.md | |
function minikube_up { | |
minikube_version=v0.28.2 | |
kube_version=v1.10.0 | |
#do this before, logout and login | |
#sudo apt-get -y install docker.io | |
#sudo adduser $USER docker | |
sudo curl -Lo /usr/local/bin/minikube https://storage.googleapis.com/minikube/releases/${minikube_version}/minikube-linux-amd64 && sudo chmod +x /usr/local/bin/minikube | |
sudo curl -Lo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${kube_version}/bin/linux/amd64/kubectl && sudo chmod +x /usr/local/bin/kubectl | |
export MINIKUBE_WANTUPDATENOTIFICATION=false | |
export MINIKUBE_WANTREPORTERRORPROMPT=false | |
export MINIKUBE_HOME=$HOME | |
export CHANGE_MINIKUBE_NONE_USER=true | |
mkdir -pv $HOME/.kube | |
touch $HOME/.kube/config | |
export KUBECONFIG=$HOME/.kube/config | |
sudo -E minikube start --vm-driver=none \ | |
--extra-config=controller-manager.ClusterSigningCertFile="/var/lib/localkube/certs/ca.crt" --extra-config=controller-manager.ClusterSigningKeyFile="/var/lib/localkube/certs/ca.key" --kubernetes-version=$kube_version \ | |
--memory=8192 | |
# this for loop waits until kubectl can access the api server that Minikube has created | |
for i in {1..150}; do # timeout for 5 minutes | |
./kubectl get po &> /dev/null | |
if [ $? -ne 1 ]; then | |
break | |
fi | |
sleep 2 | |
done | |
# k8 tab completion is a beautiful thing | |
kubectl completion bash >/tmp/kube.complete | |
cat /tmp/kube.complete >> ~/.bashrc | |
} | |
minikube_up | |
cat <<EOT >> ~/.bashrc | |
export MINIKUBE_WANTUPDATENOTIFICATION=false | |
export MINIKUBE_WANTREPORTERRORPROMPT=false | |
export MINIKUBE_HOME=$HOME | |
export CHANGE_MINIKUBE_NONE_USER=true | |
export KUBECONFIG=$HOME/.kube/config | |
EOT | |
# logout and log back in | |
exit | |
uvt-kvm ssh --insecure ${VM} | |
=-=-=-=-= | |
sudo minikube addons enable ingress | |
# install helm | |
# https://github.com/helm/helm/releases/tag/v2.9.1 | |
cd | |
curl -Lo helm_v2.9.1.tar.gz \ | |
https://storage.googleapis.com/kubernetes-helm/helm-v2.9.1-linux-amd64.tar.gz | |
tar xzf helm_v2.9.1.tar.gz | |
sudo mv linux-amd64/helm /usr/local/bin/helm | |
# download istio | |
cd | |
curl -Lo istio-0.8.0-linux.tar.gz \ | |
https://github.com/istio/istio/releases/download/0.8.0/istio-0.8.0-linux.tar.gz | |
tar xzf istio-0.8.0-linux.tar.gz ; cd istio-0.8.0 | |
kubectl create -f install/kubernetes/helm/helm-service-account.yaml | |
helm init --service-account tiller | |
ubuntu@minik:~/istio-0.8.0$ helm install install/kubernetes/helm/istio --name istio --namespace istio-system --set tracing.enabled=true | |
Error: could not find tiller | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment