Search

Kubernetes DashBoard

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.6.1/aio/deploy/recommended.yaml
Shell
복사
kubectl proxy &
Shell
복사
ssh -i <your-key-file.pem> -L 8001:127.0.0.1:8001 ec2-user@<your-ec2-public-ip>
Shell
복사
admin-user-config.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
YAML
복사
kubectl apply -f admin-user-config.yaml
Shell
복사
kubectl -n kubernetes-dashboard create token admin-user
Shell
복사
http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
Shell
복사