Minikube: Primeiros Passos

From Wiki
Revision as of 10:38, 25 February 2019 by Ebasso (talk | contribs) (Criou a página com " = Usando o kubectl com o Minikube= Para conectar-se ao cluster do Kubernetes, o kubectl precisa saber sobre o master-node e das credenciais para se conectar a ele. 1) V...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Usando o kubectl com o Minikube

Para conectar-se ao cluster do Kubernetes, o kubectl precisa saber sobre o master-node e das credenciais para se conectar a ele.


1) Verifique a configuração de conexão do kubectl ao Minikube, através do comando

kubectl config view

Resultado:

apiVersion: v1
clusters:
- cluster:
    certificate-authority: /Users/ebasso/.minikube/ca.crt
    server: https://192.168.99.100:8443
  name: minikube
contexts:
- context:
    cluster: minikube
    user: minikube
  name: minikube
current-context: minikube
kind: Config
preferences: {}
users:
- name: minikube
  user:
    client-certificate: /Users/ebasso/.minikube/client.crt
    client-key: /Users/ebasso/.minikube/client.key
 

2) Verifique as informações do clusters Kubernetes

kubectl cluster-info

Resultado:

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

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.


Ver também