I need learn about Kubernetes, Helm, conjure-up and also need install Eclipe-Che, and to it I did:
On a fresh install of [Ubuntu 18.04.2 Server X64] running as virtual machine inside vmware workstation Im installing MicroK8S and Helm.
Its on a fresh Ubuntu install and the 0nly script block im pasting on terminal is:
sudo apt-get update
sudo apt-get upgrade
sudo snap install microk8s --classic
microk8s.kubectl version
alias kubectl='microk8s.kubectl'
alias docker='microk8s.docker'
kubectl describe nodes | egrep 'Name:|Roles:|Taints:'
kubectl taint nodes --all node-role.kubernetes.io/master-
kubectl get nodes
sudo snap install helm --classic
kubectl create serviceaccount tiller --namespace kube-system
kubectl create clusterrolebinding tiller-cluster-rule \
--clusterrole=cluster-admin \
--serviceaccount=kube-system:tiller
helm init --service-account=tiller
helm version
helm ls
kubectl get po -n kube-system
The script block above with each output on terminal is:
myUser@myServer:~$ sudo snap install microk8s --classic
microk8s v1.13.4 from Canonical✓ installed
[1]+ Done sleep 10
myUser@myServer:~$ microk8s.kubectl version
Client Version: version.Info {
Major:"1", Minor:"13", GitVersion:"v1.13.4",
GitCommit:"c27b913frrr1a6c480c287433a087698aa92f0b1",
GitTreeState:"clean", BuildDate:"2019-02-28T13:37:52Z",
GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server 127.0.0.1:8080 was
refused - did you specify the right host or port?
myUser@myServer:~$ alias kubectl='microk8s.kubectl'
myUser@myServer:~$ alias docker='microk8s.docker'
myUser@myServer:~$ kubectl describe nodes | egrep 'Name:|Roles:|Taints:'
The connection to the server 127.0.0.1:8080 was
refused - did you specify the right host or port?
myUser@myServer:~$ kubectl taint nodes --all \
node-role.kubernetes.io/master-
The connection to the server 127.0.0.1:8080 was
refused - did you specify the right host or port?
myUser@myServer:~$ kubectl get nodes
The connection to the server 127.0.0.1:8080 was
refused - did you specify the right host or port?
myUser@myServer:~$ sudo snap install helm --classic
helm 2.13.0 from Snapcrafters installed
myUser@myServer:~$ kubectl create serviceaccount tiller \
--namespace kube-system
Error from server (NotFound): namespaces "kube-system" not found
myUser@myServer:~$ kubectl create clusterrolebinding \
tiller-cluster-rule \
--clusterrole=cluster-admin \
--serviceaccount=kube-system:tiller
clusterrolebinding.rbac.authorization.k8s.io/tiller-cluster-rule created
myUser@myServer:~$ helm init --service-account=tiller
Creating /home/myUser/.helm
Creating /home/myUser/.helm/repository
Creating /home/myUser/.helm/repository/cache
Creating /home/myUser/.helm/repository/local
Creating /home/myUser/.helm/plugins
Creating /home/myUser/.helm/starters
Creating /home/myUser/.helm/cache/archive
Creating /home/myUser/.helm/repository/repositories.yaml
Adding stable repo with URL:
https://kubernetes-charts.storage.googleapis.com
Adding local repo with URL: http://127.0.0.1:8879/charts
$HELM_HOME has been configured at /home/myUser/.helm.
Tiller (the Helm server-side component) has been
installed into your Kubernetes Cluster.
Please note: by default, Tiller is deployed with an
insecure 'allow unauthenticated users' policy.
To prevent this, run `helm init` with
the --tiller-tls-verify flag.
For more information on
securing your installation see:
https://docs.helm.sh/using_helm/#securing-your-helm-installation
Happy Helming!
myUser@myServer:~$ helm version
Client: &version.Version {
SemVer:"v2.13.0",
GitCommit:"79d07943b03aea2b76c12644b4b54733bc5958d6",
GitTreeState:"clean"}
Error: could not find tiller
myUser@myServer:~$ helm ls
Error: could not find tiller
myUser@myServer:~$ kubectl get po -n kube-system
No resources found.
As you can see its also refusung connection on 127.0.0.1:8080 too and with the help of @aurelius I improved script above but as you can see its yet giving the same error:
Error: could not find a ready tiller pod
And I did the fix described in stackoverflow as you can see above.
There is an issue opened on Github pointing to fix above and closing as solved but it doesn't solve the problem.
There is one telling the problem is with snap version of LXD that dont integrate with conjure-up, he tell to install LXD from apt packages and his full explanation is here: https://askubuntu.com/a/959771.
I will try it to see if it works too and come back here.