[PoC] Teleport - 사용해보기

jeonghyun yu·2025년 9월 19일

공부

목록 보기
3/4

기본 사용

로그인

tsh login --proxy=[Domain] --user=myuser

리소스 확인

# 액세스 권한이 있는 클러스터에 연결된 모든 서버를 나열
$ tsh ls
Node Name Address Labels
--------- ------- ------


  Not seeing nodes? Either no nodes are available or your user's roles do not match the labels of at least one node.

  Check with your Teleport cluster administrator that your user's roles should have nodes available.

# Application
$ tsh apps ls
Application Description Type Public Address Labels
----------- ----------- ---- -------------- ------

# Database
$ tsh db ls
Name Description Allowed Users Labels Connect
---- ----------- ------------- ------ -------

# Kubernetes Cluster
$ tsh kube ls
Kube Cluster Name Labels Selected
----------------- ------ --------
teleport.com

윈도우에서는

리소스 연결

# kubernetes 클러스터에 연결해보기
$ tsh kube login teleport.com --insecure
Logged into Kubernetes cluster "teleport.com". Try 'kubectl version' to test the connection.

$ kubectl version
ERROR: Your user's Teleport role does not allow Kubernetes access. Please ask cluster administrator to ensure your role has appropriate kubernetes_groups and kubernetes_users set.

Client Version: v1.32.9
Kustomize Version: v5.5.0
Unable to connect to the server: getting credentials: exec: executable /usr/local/bin/tsh failed with exit code 1

리소스 연결 해제

tsh logout
Logged out all users from all proxies.

0개의 댓글