configuration is stored in ~/.kube/config. But when i use the below command it gives empty results. kubectl config view
Output:
apiVersion: v1
clusters: []
contexts: []
current-context: ""
kind: Config
preferences: {}
users: []
kubectl config view --kubeconfig <PATH_TO_YOUR_CONFIG_FILE>
.$KUBECONFIG
is empty, (or that it points at ~/.kube/config
).kubectl
via snap
it might possibly be a sand-boxing issue.