본문 바로가기

TANGO/기본 환경 구성

Kubernetes Dashboard

kubernetes dashboard를 설치하여 전체 kubernetes 환경 구성을 확인할 수 있다

아래는 설치 방법이다.

 

export DASHBOARD_VERSION="v2.0.0"

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/${DASHBOARD_VERSION}/aio/deploy/recommended.yaml

설치 완료 이후에 kube-proxy를 사용하여 dashboard service를 접속할 수 있도록 한다.

$ kubectl proxy --port=8080 --address=0.0.0.0 --disable-filter=true &
[1] 20600
AWSReservedSSO_SandboxAdminAccess_9bb4aaf21b4a335b:~/environment $ W0508 12:37:34.808756   20600 proxy.go:142] Request filter disabled, your proxy is vulnerable to XSRF attacks, please be cautious
Starting to serve on [::]:8080

 

Proxy가 시작되고 Port 8080에서 수신되며 모든 인터페이스에서 수신되는 비 localhost 요청의 필터링이 비활성화된다.

 

접속 URL은 다음과 같다.

 

Cloud9 environment에서 Tools / Preview / Preview Running Application 을 클릭한 후 URL의 끝에

/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/

실제 URL은 아래와 같을 수 있다. 

https://72b227205f3f4da996e306845b50882d.vfs.cloud9.ap-northeast-2.amazonaws.com/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/

접속을 위해서 kubernetes 접속 token을 확인한다

aws eks get-token --cluster-name tango-bmt-eks | jq -r '.status.token'
k8s-aws-v1.aHR0cHM6Ly9zdHMuYXAtbm9ydGhlYXN0LTIuYW1hem9uYXdzLmNvbS8_QWN0aW9uPUdldENhbGxlcklkZW50aXR5JlZlcnNpb249MjAxMS0wNi0xNSZYLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1FeHBpcmVzPTYwJlgtQW16LURhdGU9MjAyMTA1MDhUMTI0NTI3WiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QlM0J4LWs4cy1hd3MtaWQmWC1BbXotU2VjdXJpdHktVG9rZW49SVFvSmIzSnBaMmx1WD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WZ4UGtGTUpYMjJZUUdPdXNCcXg5anhSTXFtWmtRJTJGeVVwdXF6MG5Ka0F1TUZVcEclMkIybmRjQVMzJTJGUGtPZmxqJTJGNEt1aU5YS3NBY3hWTmNqZlRhUk4xcGxoRk4yNnlFemZ5dXdGemN1bU9hWUU0MyUyQiUyRmRuSVFhM3NmSzRhWlklMkI5U3Nya1pFdTUxS2lyc1pTejM5cXJwR0d1TEFVUnUlMkZhcTlOJTJCOWFhNUlpN1FiOENieWFUR1M4UDNsVmV6WnVRJTJGR014UWpteFRTdyUyRkhyYnEwc2hqdTlyN1J4WDZuJTJGSEE4RUJyUWRhU2NqTDZTaFJXRldJZUl1OTRMR2tQamJ4ZktWMTljV1p6cktYM0klMkJyY05aQkRIS281VnBtV2Y2Rk5zQ3M4Z1VyJTJGV2NNaCUyRmpwOXdFM2dTb3d4ejNvMVljVndYNEhBVzA2aDJ2UHh5d0ElM0QlM0QmWC1BbXotQ3JlZGVudGlhbD1BU0lBVk1FRk9SNFlCNUpKMlFOTCUyRjIwMjEwNTA4JTJGYXAtbm9ydGhlYXN0LTIlMkZzdHMlMkZhd3M0X3JlcXVlc3QmWC1BbXotU2lnbmF0dXJlPWUwNDNmMGNhYjliNzI3YzdjOTY3ZDAzNTQ4OWFjYjdlODZhOTlmZmJjZjBmOWIxNDE1NDFhMDA2MGU3OTgwOTA

 

'TANGO > 기본 환경 구성' 카테고리의 다른 글

Amazon EFS CSI Driver  (0) 2021.05.08
AMAZON EBS CSI DRIVER  (1) 2021.05.08
AWS Load Balancer Controller (Ingress Controller) 설치  (0) 2021.05.08
kube-ops-view 설치  (0) 2021.05.08
ELB 서비스 Role 확인  (0) 2021.05.08