Configurando kubectl para usar GCE o lo que se te ocurra....
... ya lo puedes probar...
- Instalar los componentes de gcloud ()
- Instalar el componente kubectl (gcloud components update kubectl)
- Configurar el proyecto por defecto (gcloud config set project xxxxxx-XXXXX)
- Configurar la zona (gcloud config set compute/zone europe-west1-d)
- Configurar el nombre del cluster (gcloud config set container/cluster mi-cluster)
- Obtener los datos de acceso (gcloud container clusters get-credentials mi-cluster)
Ya podemos mandar comandos al cluster k8s:
- kubectl get nodes NAME LABELS STATUS AGE
- kubectl cluster-info Kubernetes master is running at https://104.155.39.104 GLBCDefaultBackend is running at https://104.155.39.104/api/v1/proxy/namespaces/kube-system/services/default-http-backend Heapster is running at https://104.155.39.104/api/v1/proxy/namespaces/kube-system/services/heapster KubeDNS is running at https://104.155.39.104/api/v1/proxy/namespaces/kube-system/services/kube-dns KubeUI is running at https://104.155.39.104/api/v1/proxy/namespaces/kube-system/services/kube-ui
gke-k8s-pre-opencanarias-8d8c059c-node-petk kubernetes.io/hostname=gke-k8s-pre-opencanarias-8d8c059c-node-petk Ready 40m
gke-k8s-pre-opencanarias-8d8c059c-node-rurs kubernetes.io/hostname=gke-k8s-pre-opencanarias-8d8c059c-node-rurs Ready 40m
... ya lo puedes probar...
Comentarios
Publicar un comentario