실습 3탄 = 2/3
Cloud9 실행
1
export DASHBOARD_VERSION="v2.0.0"
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/${DASHBOARD_VERSION}/aio/deploy/recommended.yaml
2
개인 클러스터에 배포 되므로 프록시를 통해 액세스 해야함
8080 대기
local요청 필터링 비활성화
백앤드로 계속 실행됨
kubectl proxy --port=8080 --address=0.0.0.0 --disable-filter=true &
3
대시보드 접근?
Cloud9 > Tools > Preview > Preview Running Application
브라우저 옆에 클릭
URL 뒤에 아래 url을 추가 한다.
/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
4
새 터미널로 실행 ?
aws eks get-token --cluster-name eksworkshop-eksctl | jq -r '.status.token'
6
토큰 옆에 라디오 버튼 클릭 > 붙여 넣기
7
로그인
// 에러가 뜨네요~
다시 테스트해봐야겠어요~
1
# kill proxy
pkill -f 'kubectl proxy --port=8080'
2
# delete dashboard
kubectl delete -f https://raw.githubusercontent.com/kubernetes/dashboard/${DASHBOARD_VERSION}/aio/deploy/recommended.yaml
unset DASHBOARD_VERSION
3
alias k=kubectl
complete -F __start_kubectl k
k get ns,no,po,deploy,rs,ing
Warning: extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
NAME STATUS AGE
namespace/default Active 123m
namespace/kube-node-lease Active 123m
namespace/kube-public Active 123m
namespace/kube-system Active 123m
NAME STATUS ROLES AGE VERSION
node/ip-192-168-10-105.us-east-2.compute.internal Ready <none> 112m v1.19.6-eks-49a6c0
node/ip-192-168-62-103.us-east-2.compute.internal Ready <none> 112m v1.19.6-eks-49a6c0
node/ip-192-168-75-78.us-east-2.compute.internal Ready <none> 112m v1.19.6-eks-49a6c0
Web UI (Dashboard)
https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/
https://brunch.co.kr/@topasvga/1706
https://brunch.co.kr/@topasvga/1881
https://brunch.co.kr/@topasvga/1679
감사합니다.