LoginSignup
1
1

More than 5 years have passed since last update.

IBM Cloud k8s でダッシュボードにサインインする

Posted at

ぶっちゃけここに書いてあるけど、jsonpathの書き方がよく分からなかったんでメモ。 https://console.bluemix.net/docs/containers/cs_app.html#cli_dashboard


トークンをクリップボードにコピー

私の環境の場合、 複数のkubeconfig読み込んでるのでname指定でuserを指定やる.

kubectl config view -o jsonpath='{.users[?(@.name == "hoge@anonymous.co.jp")].user.auth-provider.config.id-token}' | pbcopy

ダッシュボードにアクセス

(便宜上バックグラウンドでproxyコマンド実行していますが 、フォアグランドで実行してブラウザにURL入力の方が楽)

kubectl proxy &
open http://127.0.0.1:8001/ui 

サインイン

ヘッダー上部のサインインボタンからサインイン画面に遷移、「Authentication method」 で token を選択して、クリップボードにコピーしておいた トークンを貼り付けて Sign in

1
1
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
1
1