Difference between revisions of "Kubectl config view --minify"
Jump to navigation
Jump to search
↑ https://stackoverflow.com/questions/61406690/bash-kube-context-and-git-branch-prompt
Line 6: | Line 6: | ||
kubectl config view --minify --output 'jsonpath={..namespace}@{.current-context}' 2> /dev/null | kubectl config view --minify --output 'jsonpath={..namespace}@{.current-context}' 2> /dev/null | ||
} | } | ||
− | + | <ref>https://stackoverflow.com/questions/61406690/bash-kube-context-and-git-branch-prompt</ref> | |
Revision as of 21:18, 28 September 2022
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: