I am new to Kubernetes and I recently installed it in a Linux machine (Mint 19 version Tara) with the following commands:
#install kubectl
curl -Lo kubectl 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 && sudo cp kubectl /usr/local/bin/ && rm kubectl
# in case you don't have virtual box, go and install it with the following commands
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox
# install minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && sudo install minikube-linux-amd64 /usr/local/bin/minikube
# start minikube
minikube start
The status of minikube indicates that the configuration is correct:
minikube status
host: Running
kubelet: Running
apiserver: Running
kubectl: Correctly Configured:
kubectl cluster-info
Kubernetes master is running at https://192.168.99.100:8443
KubeDNS is running at https://192.168.99.100:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
ping 192.168.99.100
PING 192.168.99.100 (192.168.99.100) 56(84) bytes of data.
64 bytes from 192.168.99.100: icmp_seq=1 ttl=64 time=0.876 ms
64 bytes from 192.168.99.100: icmp_seq=2 ttl=64 time=1.01 ms
64 bytes from 192.168.99.100: icmp_seq=3 ttl=64 time=1.36 ms
64 bytes from 192.168.99.100: icmp_seq=4 ttl=64 time=1.03 ms
But when I try to get access to 192.168.99.100:30000 (dashboard) or 192.168.99.100:8443 I receive invalid http responses.
Is there any step I miss to properly setup Kubernetes?
Update
I applied minikube delete
and minikube start
and now I got a different error in my display:
You can access port 30000 from localhost, not from other hosts. Try running on minikube VM:
minikube dashboard
It will redirect you to dashboard page.