De Wiki inetshell
Saltar a: navegación, buscar

Dashboard[editar]

Instalar[editar]

https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/

Obtener token[editar]

kubectl -n kube-system get secret | grep "dash" | grep "token"
kubectl -n kube-system describe secrets kubernetes-dashboard-token-4c6dc

Acceder al dashboard[editar]

  • Correr proxy e una termina
kubectl proxy
  • Abrir la siguiente direccion en un navegador:
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/

Minikube[editar]

Guias[editar]

https://kubernetes.io/docs/setup/minikube/

Prueba con puerto[editar]

minikube start
kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.10 --port=8080
kubectl expose deployment hello-minikube --type=NodePort
kubectl get pod
minikube service hello-minikube --url
curl $(minikube service hello-minikube --url)

Acceder Dashboard[editar]

minikube dashboard

KOPS[editar]

http://connect.cd/2017/10/kops/

https://medium.com/cloud-academy-inc/setup-kubernetes-on-aws-using-kops-877f02d12fc1


Problemas[editar]

Dashboard en GKE[editar]

https://github.com/kubernetes/dashboard/issues/2415

roles.rbac.authorization.k8s.io "kubernetes-dashboard-minimal" is forbidden: attempt to grant extra privileges
kubectl create clusterrolebinding cluster-admin-binding --clusterrole cluster-admin --user $(gcloud config get-value account)