$ curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
kubectl version
# Cargar
$ export KUBECONFIG=/.../k8s_read_cluster.conf
# Listar
$ kubectl config get-contexts
# Usar
$ kubectl config use-context staging
# Listar todos los pods
$ kubectl get pods --all-namespaces
# Pods de WUR
$ kubectl get pods --namespace wur
# Pods de Development para WUR
$ kubectl get pods --namespace wur --context development
# Listar todos los servicios
$ kubectl get services
# Listar pods
kubectl get pods --namespace wur --context staging
#Log de un Pod
kubectl logs service-amqp2salesforce-545f58bb7c-5n62h --namespace wur --context staging
#Log de un Pod Live
kubectl logs --follow service-amqp2salesforce-545f58bb7c-5n62h --namespace wur --context staging
# Describe del pod
kubectl describe pod service-amqp2salesforce-545f58bb7c-5n62h --namespace wur --context staging
# Listar los cronjobs
kubectl get cronjobs --namespace wur --context staging