Kubernetes 애플리케이션 자동 검색 참조
Teleport에 Kubernetes 애플리케이션을 자동으로 등록하기 위한 설정 옵션의 종합 참조 가이드입니다.
Kubernetes 애플리케이션 자동 검색에는 Teleport Discovery Service, Teleport Application Service 및 Kubernetes 서비스의 어노테이션이 포함됩니다. 이 가이드에서는 Kubernetes 클러스터에서 Kubernetes 애플리케이션 자동 검색을 관리하기 위해 각각을 설정하는 방법을 보여줍니다. Teleport 에이전트 Helm 차트 설정 # 차트의 kubernetesDiscovery 값을 설정하여 서비스 검색 범위를 설정할 수 있습니다. 자세한 내용은 helm 차트 문서 를 참조하세요. values.yaml 예시: kubernetesDiscovery: - types: [ "app" ] namespaces: [ "toronto" , "porto" ] labels: env: staging - types: [ "app" ] namespaces: [ "seattle" , "oakland" ] labels: env: testing Kubernetes 앱 자동 검색 수동 설정 # teleport-kube-agent Helm 차트가 자동으로 설정을 구성하지만 필요한 서비스를 수동으로 설정할 수도 있습니다. 이를 위해 Teleport Application Service 및 Teleport Discovery Service의 설정 파일을 조정한 다음 이러한 서비스를 실행하는 에이전트를 다시 시작합니다. Discovery Service의 설정은 kubernetes 필드로 제어되며, 예시는 다음과 같습니다: Warning Discovery Service exposes a configuration parameter - discovery_service.discovery_group - that allows you to group discovered resources into different sets. This parameter is used to prevent Discovery Agents watching different sets of cloud resources from colliding against each other and deleting resources created by another services. When running multiple Discovery Services, you must ensure that each service is configured with the same discovery_group value if they are watching the same cloud resources or a different value if they are watching different cloud resources. It is possible to run a mix of configurations in the same Teleport cluster meaning that some Discovery Services can be configured to watch the same cloud