https://github.com/iwanhae/kuview
GitHub - iwanhae/kuview
Contribute to iwanhae/kuview development by creating an account on GitHub.
github.com
8001포트를 기본으로 사용한다.
# Download and extract the latest release
curl -sL https://r2.iwanhae.kr/kuview/latest.tar.gz | tar xvz
# Initiate the dashboard
kubectl proxy -w ./dist
쿠버네티스에서 배포
# Create a namespace for KuView
kubectl create namespace kuview
# Create a ClusterRole for read-only access
kubectl create clusterrole kuview \
--verb=get,list,watch \
--resource=nodes,pods,pods/log,namespaces,services,\
endpointslices.discovery.k8s.io,\
nodes.metrics.k8s.io,pods.metrics.k8s.io
# Create a ServiceAccount for KuView
kubectl create -n kuview serviceaccount kuview
# Bind the ClusterRole to the ServiceAccount
kubectl create -n kuview clusterrolebinding kuview \
--clusterrole=kuview \
--serviceaccount=kuview:kuview
# Deploy KuView
kubectl create -n kuview deployment kuview --image ghcr.io/iwanhae/kuview:latest --port 8001
kubectl patch -n kuview deployments.apps kuview --patch '{"spec":{"template":{"spec":{"serviceAccountName":"kuview"}}}}'
# Expose the service as a NodePort (optional, you can use ingress or port-forwarding instead)
kubectl expose -n kuview deployment kuview --port 8001 --type=NodePort
# Now you can access KuView at http://<node-ip>:<node-port>/