AL
Size: a a a
AL
AL
TL
AL
VR
AK
TL
$ export KUBECONFIG=./config
$ k config view
W0403 00:50:05.246493 28534 loader.go:223] Config not found: ./config
apiVersion: v1
clusters: null
contexts: null
current-context: ""
kind: Config
preferences: {}
users: null
$ k config set-context hello --namespace hello
W0403 00:50:26.373492 28574 loader.go:223] Config not found: ./config
W0403 00:50:26.373576 28574 loader.go:223] Config not found: ./config
Context "hello" created.
$ cat config
apiVersion: v1
clusters: null
contexts:
- context:
cluster: ""
namespace: hello
user: ""
name: hello
current-context: ""
kind: Config
preferences: {}
users: null
TL
AK
AK
TL
AL
TL
$ k config set-context --help
AL
$ k config set-context --help
TL
AK
AK
kubectl config set-cluster g --server=https://127.0.0.1 --embed-certs --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt
TL
TL
--server=https://kubernetes.default.svc