0
0

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.

Kuberenetes Dashboard Upgradeとtoken pasteをスキップする方法

Posted at

##背景

  1. Tokenを毎回ペーストするのが面倒だなぁと感じてなんとかpbcopy/pbpasteでtokenをブラウザーにParseできないのか調べてたところ、同僚からStagingだしenable-skip-login & disable-settings-authorizerを使えばいいと言われてやり方を調べました。
  2. dashboardのバージョンも上がってたのでついでにアップグレード。

##参考にした記事
Upgrade

enable-skip-login & disable-settings-authorizer

pbcopy&pbpaste

##v1.10.1 & v2.0.0-beta4のテスト

v1.10.1
metrics-server-amd64:v0.3.3
kubernetes-dashboard-amd64:v1.10.1

Test1 [doesn’t work] Test2 [Works] Test3 [doesn’t work]
Just adding --enable-skip-login & --disable-settings-authorizer adding --enable-skip-login & --disable-settings-authorizer & clusterrolebinding Adding just clusterrolebinding
As of 1.7+ Dashboard no longer has full admin privileges granted by default.-

v2.0.0-beta4
metrics-server-amd64:v0.3.4¥5
kubernetesui/metrics-scraper:v1.0.1
kubernetesui/dashboard:v2.0.0-beta4

Test 4 [works] Test 5 [doesn’t work] Test 6 [works]
Deploy as it is adding --enable-skip-login & --disable-settings-authorizer adding --enable-skip-login & --disable-settings-authorizer + cluster-admin under roleRef

Test 6を採用

##v1.10.1の気になる点
another thing to note for when we upgrade to kubernetes 1.16
https://github.com/kubernetes/dashboard/issues/4332

##見落としやすい点

v1.10.1 v2.0.0
eks-admin-service-account.yaml Namespace: kube-system Namespace: kube-system
kubernetes-dashboard.yaml Namespace: kube-system Namespace: kubernetes-dashboard
metrics-server/1.8+/ Namespace: kube-system Namespace: kube-system
URL http://localhost:$PORT/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/ http://localhost:$PORT/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/

##学んだこと

  • dashboard設定方法
  • token
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?