kubectl config view --minify
Jump to navigation
Jump to search
↑ https://stackoverflow.com/questions/61406690/bash-kube-context-and-git-branch-prompt
kubectl config view --minify --output 'jsonpath={..namespace}@{.current-context}' 2> /dev/null
k8s_info() { kubectl config view --minify --output 'jsonpath={..namespace}@{.current-context}' 2> /dev/null } [1]
See also
kubectl config view
kubectl config
[view | get-contexts | current-context | get-clusters | set-context | set-credentials ], ~/.kube/config, kubectl config --help
,kubectx
, Kubernetes contexts,KUBECONFIG, kubectl --kubeconfig
Advertising: