Comandos interesantes
DECLARATIVO
apiVersion: v1
clusters:
- cluster:
server: http://localhost:8080
name: local-server
contexts:
- context:
cluster: local-server
namespace: the-right-prefix
user: myself
name: default-context
current-context: default-context
kind: Config
preferences: {}
users:
- name: myself
user:
password: secret
username: admin
COMANDOS DE CONFIGURACIÓN
kubectl config set-credentials myself --username=admin --password=pass
kubectl config set-cluster local-server --server?http://localhost:8080
kubectl config set-context default-context --cluster=local-server --user=myself
kubectl use-context default-context
kubectl config set contexts.default-context.namespace the-right-prefix
kubectl config view