https://kubernetes.io/ko/docs/tasks/access-application-cluster/web-ui-dashboard/
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.6.1/aio/deploy/recommended.yaml
์ฟ ๋ฒ๋คํฐ์ค ๋์๋ณด๋๋ฅผ ์ฌ์ฉํ๋ ค๋ฉด Metrics-Server๊ฐ ํ์ํจ
ํด๋ฌ์คํฐ IP๋ฅผ ํตํด ๋ฐฐํฌ๋ ๋ชจ์ต
kubectl patch svc kubernetes-dashboard -n kubernetes-dashboard -p '{"spec": {"type": "LoadBalancer"}}'
gcloud compute firewall-rules create kubernetes-dashboard --allow=tcp:<ํฌํธ๋ฒํธ>
https://EXTERNAL-IP
๋ฅผํตํด ์ ์
๋น๊ณต๊ฐ ๋๋ฅด๊ณ thisisunsafe ๋ผ๊ณ ์ ๋ ฅ
https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/creating-sample-user.md
cat <<EOF | kubectl apply -f -
๋ ๊ฐ์ด ์จ๋๋จ
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 -n kubernetes-dashboard create token admin-user
ํด๋นํ ํฐ์ kubernetes dashboard ํ ํฐ์ ์ ๋ ฅํ๊ธฐ