{"id":9614,"date":"2022-05-28T21:13:33","date_gmt":"2022-05-28T13:13:33","guid":{"rendered":"https:\/\/jpuyy.com\/?p=9614"},"modified":"2022-12-01T09:27:46","modified_gmt":"2022-12-01T01:27:46","slug":"kubectl-config","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=9614","title":{"rendered":"kubectl config"},"content":{"rendered":"<p>\u67e5\u770b contexts clusters<\/p>\n<pre>kubectl config get-contexts\nkubectl config get-clusters\nkubectl config get-contexts -o name\nkubectl config get-users\n<\/pre>\n<p>\u5220\u9664 context cluster<\/p>\n<pre>kubectl --kubeconfig=.\/KUBECONFIG_of_my config delete-context gke_europe-west2_123\nkubectl --kubeconfig=.\/KUBECONFIG_of_my config delete-cluster gke_europe-west2_123\nkubectl --kubeconfig=.\/KUBECONFIG_of_my config delete-user gke_europe-west2_123\n<\/pre>\n<p>kubectl via ssh tunnel<br \/>\nhttps:\/\/blog.scottlowe.org\/2020\/06\/16\/using-kubectl-via-an-ssh-tunnel\/#:~:text=To%20use%20kubectl%20via%20an,to%20reflect%20the%20tunnel%20details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u67e5\u770b contexts clusters kubectl config get-contexts kubectl config get-clusters kubectl config get-contexts -o name kubectl config get-users \u5220\u9664 context cluster kubectl &#8211;kubeconfig=.\/KUBECONFIG_of_my config delete-context gke_europe-west2_123 kubectl &#8211;kubeconfig=.\/KUBECONFIG_of_my config delete-cluster gke_europe-west2_123 kubectl &#8211;kubeconfig=.\/KUBECONFIG_of_my config delete-user gke_europe-west2_123 kubectl via ssh tunnel https:\/\/blog.scottlowe.org\/2020\/06\/16\/using-kubectl-via-an-ssh-tunnel\/#:~:text=To%20use%20kubectl%20via%20an,to%20reflect%20the%20tunnel%20details.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-9614","post","type-post","status-publish","format-standard","hentry","category-life"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/9614","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9614"}],"version-history":[{"count":3,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/9614\/revisions"}],"predecessor-version":[{"id":9663,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/9614\/revisions\/9663"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}