...
Code Block |
---|
ubuntu@onap-control-1:~$ mkdir .kube ubuntu@onap-control-1:~$ mv kube_config_cluster.yml .kube/config. ubuntu@onap-control-1:~$ kubectl config set-context --current --namespace=onap |
Create a context file shell script in the onap-control-1 VM
...
Code Block |
---|
#!/bin/bash
export KUBECONFIG=~/.kube/config.onap
kubectl config use-context onap |
...