11
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

kubectxが便利だった

Posted at

ahmetb/kubectxに記載の通り。

背景

kubernetesのコンテキスト・ネームスペースの切り替えが面倒だった

Install

MacOS利用のため、brewを使った。

$ brew install kubectx

Usage

kubectl との比較

context


# kubectl
$ kubectl config use-context <insert-context-name-here>

# kubectx
$ kubectx <insert-context-name-here>

namespace


# kubectl
$ kubectl config set-context --current --namespace=<insert-namespace-name-here>
$ kubectl config view | grep namespace:

# kubens
$ kubens <insert-namespace-name-here>
$ kubens -c

参考

11
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?