Cloud9을 통해 EKS(K8s) -> DashBoard 구성
Cloud9 K8s/EKS 설치
https://aws-eks-web-application.workshop.aws/ko/10-intro.html
K8s Dashboard
https://docs.aws.amazon.com/ko_kr/eks/latest/userguide/dashboard-tutorial.html
Proxy 모드 포트 지정
$ kubectl proxy --port=8080 --address=0.0.0.0 --disable-filter=true &
Cloud9 -> Preview -> Preview Running Application
Cloud9 호스트 확인
https://"C9 주소"/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
K8S 토큰 값 확인
ec2-user:~/environment $ kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep eks-admin | awk '{print $1}')
Name: eks-admin-token-7s797
Namespace: kube-system
Labels: <none>
Annotations: kubernetes.io/service-account.name: eks-admin
kubernetes.io/service-account.uid: abb88430-8ade-4139-9be6-8aa32ad486e2
Type: kubernetes.io/service-account-token
Data
====
ca.crt: 1066 bytes
namespace: 11 bytes
token: eyJhbGciOixxxxxxxxxxxxxxxxh3MzV5UU90ME9yVndpOTlHZG5tMm9CbUkifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJrdWJlLXN5c3RlbSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUxxxxxxxxxxxxxxxxxxxxxxZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiZWtzLWFkbWluIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQudWlkIjoiYWJiODg0MzAtOGFkZS00MTM5LTliZTYtOGFhMzJhZDQ4NmUyIiwic3ViIjoic3lzdGVtOnNlcnZpY2VhY2NvdW50Omt1YmUtc3lzdGVtOmVrcy1hZG1pbiJ9.Q40VlJe4gp0QUY5w1U8evAlZs_qnj2qbGvnFPWvYnV_P22pb6FpXeGjOUnHb-8DH_SIw5gg9w7soGBUJu8qiHGKSj0srSalVWZ2Q1E3pNnJJaaTGKZzprchWNBGPwdqx_J94DstLwG8kMRFBCuhHEdgChSQOqsG_9FsfiPbWSQxj7pFQUArsjolmaGn5PC9z_ALYNzyE7mHi-ArwfXHSwOSS_6l4bRnBfpQ6GJrelmyTbFImAxq9vfJXm4aJRpJbvt4nmxxxxxxxxxxxxxxxxxx
'Containers > EKS' 카테고리의 다른 글
error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1" 버전 이슈 (0) | 2022.06.08 |
---|