LoginSignup
13
10

More than 1 year has passed since last update.

Kubernetes WebUI調査

Last updated at Posted at 2019-10-24

Kubernetes Dashboard

v2.5.1 (2022/05/03)
v2.5.0からKubernetes 1.23対応
v2.3.0からKubernetes 1.21対応
v2.1.0からKubernetes 1.20対応
v2.0.4からKubernetes 1.19対応
v2.0.0からKubernetes 1.18対応
v2.0.0-rc4からKubernetes 1.17対応

Apache License 2.0
GitHub
Kubernetes Dashboard Documentation

Version 1.20 1.21 1.22 1.23
v2.5.1 ? ? ?
v2.5.0 ? ? ?
v2.4.0 ? ?
v2.3.1 ? ?
v2.3.0 ? ?
v2.2.0 ? ? ?
v2.1.0 ? ? ?

調査中Recommended setup (v2.0.0-beta5)
https://github.com/kubernetes/dashboard/blob/master/docs/user/installation.md
https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/creating-sample-user.md
https://github.com/kubernetes/dashboard/blob/master/docs/user/accessing-dashboard/1.7.x-and-above.md

$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta5/aio/deploy/recommended.yaml

# type: ClusterIP を type: NodePortに変更して保存
$ kubectl -n kubernetes-dashboard edit service kubernetes-dashboard
$ vi dashboard-adminuser.yaml
dashboard-adminuser.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
  name: admin-user
  namespace: kubernetes-dashboard
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: admin-user
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: admin-user
  namespace: kubernetes-dashboard
$ kubectl apply -f dashboard-adminuser.yaml

#トークン取得
$ kubectl -n kubernetes-dashboard describe secret $(kubectl -n kubernetes-dashboard get secret | grep admin-user | awk '{print $1}') | grep token: | awk '{print $2}'

# Node Portを確認
$ kubectl -n kubernetes-dashboard get service kubernetes-dashboard

ブラウザを起動して以下のアドレスにアクセス
https://マスターノードのIPアドレスまたはホスト名:確認したNodePort/

トークンを選択し、コピーしたトークンを貼り付けて「SIGN IN」をクリック

PodのCPU利用率やメモリ利用率を見たい場合、をデプロイする必要がある

mkdir metrics-server
cd metrics-server
wget https://raw.githubusercontent.com/kubernetes-incubator/metrics-server/v0.3.6/deploy/1.8%2B/aggregated-metrics-reader.yaml
wget https://raw.githubusercontent.com/kubernetes-incubator/metrics-server/v0.3.6/deploy/1.8%2B/auth-delegator.yaml
wget https://raw.githubusercontent.com/kubernetes-incubator/metrics-server/v0.3.6/deploy/1.8%2B/auth-reader.yaml
wget https://raw.githubusercontent.com/kubernetes-incubator/metrics-server/v0.3.6/deploy/1.8%2B/metrics-apiservice.yaml
wget https://raw.githubusercontent.com/kubernetes-incubator/metrics-server/v0.3.6/deploy/1.8%2B/metrics-server-deployment.yaml
wget https://raw.githubusercontent.com/kubernetes-incubator/metrics-server/v0.3.6/deploy/1.8%2B/metrics-server-service.yaml
wget https://raw.githubusercontent.com/kubernetes-incubator/metrics-server/v0.3.6/deploy/1.8%2B/resource-reader.yaml

metrics-server-deployment.yamlに以下のコードを追加

command:
  - /metrics-server
  - --kubelet-insecure-tls
  - --kubelet-preferred-address-types=InternalDNS,InternalIP,ExternalDNS,ExternalIP,Hostname

デプロイ

kubectl apply -f metrics-server/

Kubernetes Dashboard v2.0.0をデプロイする
Kubernetes dashboard Deploy
Dashboard for Kubernetes のデプロイ
Kuberenetes Dashboard Upgradeとtoken pasteをスキップする方法
KubernetesにDashboardをインストールして、認証なしでアクセスする
KUBERNETESのダッシュボードを外部からアクセスする
Kubernetes のダッシュボードが見れなかったときの対処
備忘録:kubernetes-dashboardを表示するまでのトラブルシューティング
Kubernetes 1.8のアクセス制御について。あとDashboard。
Kubernetes Dashboardにcluster-admin権限でSign inする

Rancher

Apache License 2.0
v2.6.5 (2022/05/13)

・オンプレミスやあらゆるクラウドサービス上にKubernetesクラスタを
 構築及び管理、また既存のKubernetesクラスタをインポートして
 Rancherで管理できる
・Helmをベースとしたカタログという機能
・他のOSSとの連携が可能

RancherによるKubernetes活用完全ガイド(Think IT Books)

公式サイト
GitHub
Rancher 1.x image
Rancher 2.x image
RANCHER JP

Rancherってどんなもの?
RancherでKubernetesクラスタを作る
RancherのCatalog機能を詳細に見てみる

Rancher v2.3の主要機能を触ってみた

Rancher v2.2.2のHA構成をAWS上で構築する

Rancher2.1でKubernetes環境を構築する

話題のKubernetesをRancher2.0で 便利に使う!
Rancher2.0を使って超高速にkubernetesクラスタを構築した時のメモ
シングルノードにkubernetesとRancher 2.0を導入して、コンテナ管理してみた
Rancher 2.0で複数のKubernetes環境を管理してみる
Rancher 2.0 入門!!! Kubernetesクラスタの可視化!!!
複数の物理ホストの Debian9 上に Kubernetes (k8s) クラスタを Rancher で立ち上げる

Cockpit

ライセンスは、GNU Lesser General Public License v2.1
269 (2022/05/13)

コンテナの管理やネットワーク、ストレージの管理、性能監視、ログ監視などができる
コンテナのコンソール接続もできる

公式サイト
GitHub
第480回 ウェブブラウザーから操作できる軽量管理ツール「Cockpit」
Docker管理UIのCockpitが面白い
Cockpit (Linux サーバ管理ツール) で Docker コンテナを起動する方法を検証してみた
Cockpit (Linux サーバ管理ツール) で Kubernetes クラスタを管理する方法を検証してみた

Weave Scope

1.13.2(2021/04/09)
Apache License Version 2.0
Docker & Kubernetesに対応している

・Web上でコンテナの管理ができる
・コンテナのネットワークの繋がりが見える
・コンテナを直接操作できる

git clone https://github.com/weaveworks/scope.git
cd scope
cd examples

# k8s 1.16でエラーになったので
# 「apiVersion: extensions/v1beta1」を「apiVersion: policy/v1beta1」に変更
vi k8s/psp.yaml

#「type: NodePort」を追加
#「nodePort: 30002」を追加
vi k8s/svc.yaml

# デプロイ
kubectl apply -f k8s/ns.yaml
kubectl apply -f k8s/

ブラウザを起動して http://マスターノードのIPアドレス:30002/ にアクセス

GitHub
【IBM Cloud k8s検証メモ】OSSのコンテナ監視ツール Weave Scope を利用してKubernetesリソース監視

Kubernetes Web View

21.2.0 (2021/02/05)
GPL-3.0
GitHub
ドキュメント
ライブデモサイト

K8Dash - Kubernetes Dashboard

Apache License 2.0
GitHub

Kubernetes Operational View

20.4.0 (2020/04/26)
GPL-3.0
codeberg

Kubernetesクラスタの簡単なモニタリングツールkube-ops-viewを使ってみる

Kubernetes Resource Report

21.6.0 (2021/06/23)
GPL-3.0
codeberg

OCTANT

v0.24.0 (2021/09/10)
Apache License 2.0
GitHub

Octantを使って簡単!Kubernetesダッシュボード

konstellate

MIT License

GitHub
konstellate - Kubernetesの設定をビジュアル化

Kubricks

MIT License

GitHub

Web Kubectl

ライセンスは、Apache License 2.0
v2.10.5 (2022/04/13)

ブラウザ上でkubectlを叩けるツール

sighupio/permission-manager

ライセンスは、BSD 3-Clause "New" or "Revised" License
v1.7.1-rc1 (2021/09/14)

Kubernetes RBAC and Users management Web UI

13
10
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
13
10