GCP 컴퓨트 인스턴스 자동 검색
GCP 컴퓨트 인스턴스를 자동으로 등록하도록 Teleport를 구성하는 방법.
이 가이드는 Google Compute Engine 가상 머신에 대한 자동 서버 검색을 설정하는 방법을 설명합니다. 작동 방식 # Teleport Discovery Service는 GCP에 연결하여 구성된 레이블과 일치하는 GCP Compute Engine 인스턴스를 자동으로 검색하고 등록할 수 있습니다. 그런 다음 이렇게 검색된 인스턴스에서 스크립트를 실행하여 Teleport를 설치하고, 시작하여 클러스터에 참가시킵니다. 사전 요구 사항 # A running Teleport cluster. If you want to get started with Teleport, sign up for a free trial or set up a demo environment . The tctl and tsh clients. Installing `tctl` and `tsh` clients Determine the version of your Teleport cluster. The tctl and tsh clients must be at most one major version behind your Teleport cluster version. Send a GET request to the Proxy Service at /v1/webapi/find and use a JSON query tool to obtain your cluster version. Replace with the web address of your Teleport Proxy Service: $ TELEPORT_DOMAIN= $ TELEPORT_VERSION="$(curl -s https://$TELEPORT_DOMAIN/v1/webapi/find | jq -r '.server_version')" Follow the instructions for your platform to install tctl and tsh clients: Discovery Service를 실행할 GCP 컴퓨트 인스턴스. 기본 Teleport 설치 스크립트를 사용하는 경우 Ubuntu/Debian/RHEL을 실행하는 Teleport 클러스터에 참가할 GCP 컴퓨트 인스턴스. (다른 Linux 배포판의 경우 Teleport를 수동으로 설치할 수 있습니다.) To check that you can connect to your Teleport cluster, sign in with tsh login , then verify that you can run tctl commands using your current credentials. For example, run the following command, assigning to the domain name of the Teleport Proxy Service in your cluster and to your Teleport username: $ tsh login --proxy= --user= $ tctl status # Cluster (=teleport.url=) # Ver
