teleport-proxy 차트 레퍼런스
Teleport v19.0요약
teleport-proxy Helm 차트는 쿠버네티스에 Teleport 프록시 서버를 배포합니다. teleport-proxy 차트의 구성/값은 대체로 teleport-cluster의 구성/값과 유사합니다. authServer와 joinParams 필드는 teleport-cluster가 프록시를 Auth Service와 같은 쿠버네티스 클러스터에서 실행하기 때문에 자동으로 생성할 수 있는 것과 다릅니다.
teleport-proxy Helm 차트는 쿠버네티스에 Teleport 프록시 서버를 배포합니다.
이 차트는 Teleport Auth Service 없이 Teleport 프록시가 필요한 경우
teleport-cluster 차트와 함께 사용해야 합니다. 일반적으로
teleport-cluster가 배포된 쿠버네티스 클러스터와는 다른
쿠버네티스 클러스터에 배포합니다. 예를 들어 Teleport 에이전트나 클라이언트와
가까운 리전에 Teleport 프록시를 배포하는 경우가 있습니다.
teleport-proxy 차트의 구성/값은 대체로 teleport-cluster의 구성/값과
유사합니다. 필수 필드는 다음 세 가지입니다:
clusterName-teleport-cluster와 일치해야 합니다.authServer- 이 프록시가 Teleport Auth Service 인스턴스에 연결할 때 사용할 수 있는 주소입니다. 현재 릴리즈에서 프록시는 Teleport Auth Service 인스턴스와 직접 IP/L4 연결이 가능해야 하며, SNI를 사용하는 L7 로드 밸런서를 통한 라우팅은 아직 지원되지 않습니다.joinParams- 이 Teleport 프록시가 Teleport 클러스터에 인증하는 방법입니다.
authServer와 joinParams 필드는 teleport-cluster가 프록시를 Auth Service와
같은 쿠버네티스 클러스터에서 실행하기 때문에 자동으로 생성할 수 있는 것과
다릅니다. 자세한 내용은 아래 전체 레퍼런스를 참고하세요.
소스 코드는 GitHub에서 확인할 수 있습니다.
teleport-proxy는 호환성과 향후 클라우드 전용 동작을 위해 teleport-cluster와
동일한 모드를 지원합니다. 다만 현재 릴리즈에서는 aws 모드만 클라우드 전용 동작을
프로비저닝해야 합니다.
chartMode |
용도 | 가이드 |
|---|---|---|
standalone |
쿠버네티스 리소스만으로 실행합니다. | 시작하기 - 쿠버네티스 |
aws |
Service에 AWS 로드 밸런서 어노테이션을 추가합니다. | AWS EKS 클러스터를 사용하여 HA Teleport 클러스터 실행하기 |
gcp |
현재 릴리즈에서는 사용자 지정 동작이 필요하지 않습니다. | Google Cloud GKE 클러스터를 사용하여 HA Teleport 클러스터 실행하기 |
azure |
현재 릴리즈에서는 사용자 지정 동작이 필요하지 않습니다. | Microsoft Azure AKS 클러스터를 사용하여 HA Teleport 클러스터 실행하기 |
scratch (v12 이상) |
빈 Teleport 구성을 생성합니다. 사용자가 직접 구성을 전달해야 합니다. 권장하지 않으며, standalone 모드의 teleportConfig를 대신 사용하세요. |
사용자 지정 구성으로 Teleport 클러스터 실행하기 |
이 차트는 Teleport와 같은 버전 체계를 따릅니다. 새 차트와 이전 Teleport 메이저 버전 간의 호환성은 보장되지 않습니다. 항상 Helm 차트와 같은 메이저 버전의 Teleport를 배포할 것을 강력히 권장합니다.
전체 레퍼런스#
clusterName#
| Type | Default |
|---|---|
string |
"" |
clusterName은 Teleport Auth 서비스에서 사용하는 clusterName과 반드시 일치해야 합니다
(teleport-cluster 차트의 clusterName
/ Auth 서비스 설정의 auth_service.cluster_name).
이 값은 이 프록시가 Teleport 클러스터를 가리킬 때 사용하는 이름과
클러스터에 접근할 때 사용하는 외부 공개 주소를 결정합니다. 대부분의
구성에서 이 값은 기본적으로 클러스터의 공개 주소로 사용되므로, 정규화된 도메인 이름
(예: teleport.example.com)이어야 합니다.
[!NOTE] 정규화된 도메인 이름을
clusterName으로 사용하는 경우, 해당 도메인의 DNS 공급자가 Teleport 클러스터의 외부 로드 밸런서 주소를 가리키도록 설정해야 합니다. 이 프록시 전용 차트를 사용한다면, 보통 이 프록시의 로드 밸런서 외부 IP를 지리 기반 DNS 서비스에 추가하게 됩니다. Teleport 클라이언트는 오래 유지되는 지속 연결을 사용하므로 Anycast 라우팅이 변경될 때 연결이 끊어질 수 있습니다. 따라서 Anycast VIP를 사용하는 로드 밸런서는 권장하지 않습니다.
authServer#
| Type | Default |
|---|---|
string |
"" |
authServer는 이 프록시가 Auth 서비스에 연결할 때 사용하는 주소입니다.
Auth 서비스로 향하는 내부 네트워크 경로의 : 형식이어야 합니다.
포트를 지정하지 않으면 기본값은 3025입니다.
Auth 서비스와 같은 쿠버네티스 클러스터에서 실행하는 경우에는
teleport-cluster 차트를 대신 사용하는 것을 고려하세요.
joinParams#
| Type | Default |
|---|---|
object |
{"azure":{"clientId":""},"method":"kubernetes","tokenName":""} |
joinParams는 Teleport 클러스터에 조인하기 위한 매개변수입니다.
이 차트를 사용하려면 이 프록시가 클러스터에 인증할 때 사용할 Teleport 프로비저닝 토큰을
미리 만들어 두어야 합니다. 토큰 이름과 기타 매개변수는 여기에서 설정합니다.
이 차트는 시크릿이 필요하지 않은 위임형 조인 방식만 지원합니다.
token 및 bound_keypair 조인 방식은 지원하지 않습니다.
함께 보기:
토큰을 만드는 방법은 문서(Terraform 또는 tctl)를 참고하세요.
issuer="$(kubectl get --raw /.well-known/openid-configuration | yq -r .issuer)"
tctl create <<EOT
kind: token
version: v2
metadata:
name: my-proxy
spec:
roles: [Proxy]
join_method: kubernetes
kubernetes:
type: oidc
oidc:
issuer: "${issuer}"
allow:
- service_account: "my-namespace:my-custom-sa-name-or-helm-release-name"
EOT
joinParams.method#
| Type | Default |
|---|---|
string |
"kubernetes" |
joinParams.method는 클러스터에 조인하는 방식입니다.
조인 방식을 참고하세요.
joinParams.tokenName#
| Type | Default |
|---|---|
string |
"" |
joinParams.tokenName은 Teleport 조인 토큰의 이름입니다.
joinParams.azure#
| Type | Default |
|---|---|
object |
{"clientId":""} |
joinParams.azure는 Azure 설정 매개변수입니다. Azure를 통한 서비스 조인을 참고하세요.
joinParams.azure.clientId#
| Type | Default |
|---|---|
string |
"" |
joinParams.azure.clientId는 조인에 사용할 Azure 클라이언트 ID입니다.
teleportVersionOverride#
| Type | Default |
|---|---|
string |
"" |
teleportVersionOverride는 Chart.yaml의 차트 버전과 다른 경우에 사용하는
Teleport 이미지의 버전입니다.
위험: teleportVersionOverride를 Teleport 버전을 제어하는 용도로 사용해서는 안 됩니다.
이 차트는 특정 Teleport 버전(Chart.yaml 참고)을 실행하도록 설계되었습니다.
다른 Teleport 버전을 함께 실행하면 호환성 문제가 발생합니다.
Teleport 버전 X를 실행하려면 helm --version X를 사용해야 합니다.
proxyProtocol#
| Type | Default |
|---|---|
string |
"" |
proxyProtocol은 PROXY 프로토콜이 활성화된 L4 로드 밸런서(예: AWS ELB, GCP L4 LB 등)
뒤에 있을 때, Proxy 파드가 클라이언트 IP 주소가 담긴 PROXY 줄을 수락할지 여부를
제어합니다. L4 로드 밸런서는 클라이언트 IP 주소를 보존하지 않으므로, Teleport가 클라이언트 IP 주소를
올바르게 감사하려면 PROXY 프로토콜이 필요합니다.
Teleport 파드가 PROXY 프로토콜이 활성화된 L4 로드 밸런서 뒤에 있지 않다면, 신뢰할 수 없는 출처의 PROXY 헤더를 Teleport가 수락하지 않도록 이 값을 "off"로 설정해야 합니다. 사용할 수 있는 값은 "on"과 "off"입니다.
- "on"은 모든 연결에 PROXY 프로토콜을 활성화하며, L4 로드 밸런서가 PROXY 헤더를 보내야 합니다.
- "off"는 모든 연결에 PROXY 프로토콜을 비활성화하며, PROXY 헤더가 앞에 붙은 모든 연결을 거부합니다.
proxyProtocol을 지정하지 않으면 Teleport는 연결에 PROXY 헤더를 요구하지 않지만, 헤더가 있으면 수락합니다. 이 모드는 안전하지 않은 것으로 간주되므로 테스트 용도로만 사용해야 합니다.
자세한 내용은 Proxy 프로토콜로 Teleport 실행하기를 참고하세요.
teleportConfig#
| Type | Default |
|---|---|
object |
{} |
teleportConfig는 프록시 파드의 YAML Teleport 설정을 담고 있습니다.
이 설정은 차트가 생성한 설정과 합쳐지며, 충돌하는 경우 이 설정이 우선합니다.
지원하는 필드 목록은 Teleport 설정 레퍼런스를 참고하세요.
teleportConfig:
teleport:
cache:
enabled: false
proxy_service:
https_keypairs:
- key_file: /my-custom-mount/key.pem
cert_file: /my-custom-mount/cert.pem
proxyListenerMode#
| Type | Default |
|---|---|
string |
"separate" |
proxyListenerMode는 TLS 라우팅을 제어합니다.
이 값은 클러스터 전체(즉, teleport-cluster 차트나 이 차트의 다른 인스턴스)에서
같은 값으로 설정해야 합니다.
'multiplex' 모드에서는 모든 클라이언트 연결이 TLS로 감싸져 하나의 Teleport 프록시 포트에서 다중화됩니다. "separate" 모드는 TLS 라우팅을 사용하지 않으며 하위 호환 모드로 동작합니다.
인그레스를 사용하려면 proxyListenerMode=multiplex, ingress.enabled=true, service.type=ClusterIP로 설정하세요.
사용할 수 있는 값은 'separate'와 'multiplex'입니다.
separatePostgresListener#
| Type | Default |
|---|---|
bool |
false |
separatePostgresListener는 Postgres의 다중화를 제어합니다.
기본적으로 Teleport는 Postgres 데이터베이스 연결을 프록시의 웹 리스너와 같은
포트(443)에서 다중화합니다. 이 값을 true로 설정하면
리스너를 별도의 포트(5432)로 분리합니다.
Teleport 앞단의 로드 밸런서에서 TLS를 종료하는 경우(예: AWS ACM 사용 시)에
유용합니다.
proxyListenerMode가 "multiplex"로 설정된 경우 이 설정은 적용되지 않습니다.
separateMongoListener#
| Type | Default |
|---|---|
bool |
false |
separateMongoListener는 MongoDB의 다중화를 제어합니다.
기본적으로 Teleport는 MongoDB 데이터베이스 연결을 프록시의 웹 리스너와 같은
포트(443)에서 다중화합니다. 이 값을 true로 설정하면
리스너를 별도의 포트(27017)로 분리합니다.
Teleport 앞단의 로드 밸런서에서 TLS를 종료하는 경우(예: AWS ACM 사용 시)에
유용합니다.
proxyListenerMode가 "multiplex"로 설정된 경우 이 설정은 적용되지 않습니다.
enterprise#
| Type | Default |
|---|---|
bool |
false |
enterprise는 Enterprise 이미지를 사용합니다.
이를 사용하려면 Teleport 대시보드에서 Enterprise 라이선스를 내려받고 시크릿을 만들어야 합니다.
kubectl -n ${TELEPORT_NAMESPACE?} create secret generic license --from-file=/path/to/downloaded/license.pem
[!NOTE] 이 차트가 배포하는 Teleport 프록시 서비스 (teleport.yaml의
proxy_service.enabled)는 Enterprise 빌드를 실행하더라도 라이선스 파일이 필요하지 않습니다. 라이선스 파일은 teleport-cluster 차트로 배포하는 Auth 서비스에만 있으면 됩니다.
chartMode#
| Type | Default |
|---|---|
string |
"standalone" |
chartMode는 클라우드별 설정을 도입합니다. 현재는 AWS에서만
필요하므로 다른 모드는 사실상 동일합니다. 차트
모드는 향후 사용을 위해 예약되어 있으며 teleport-cluster 차트의 설정 구조와
맞추기 위한 것입니다.
-
"standalone": 설정 파일을 생성하되 클라우드별 설정은 포함하지 않습니다.
-
"aws": EKS에서 실행할 때 사용합니다.
-
"gcp": GKE에서 실행할 때 사용합니다.
-
"azure": AKS에서 실행할 때 사용합니다.
-
"scratch": 최소한의 설정 파일을 생성합니다. 필수 Helm 값에서 도출된 값만 설정에 삽입됩니다. 추가 설정은 teleportConfig로 제공하세요.
일반적으로 이 모드는 사용하지 마세요. 대신
standalone을 사용하세요.
validateConfigOnDeploy#
| Type | Default |
|---|---|
bool |
true |
validateConfigOnDeploy는 설치 및 업그레이드 전에 teleport.yaml 설정이 유효한지
검증하는 쿠버네티스 잡을 실행하며, 유효하지 않으면
배포를 차단합니다.
podMonitor#
| Type | Default |
|---|---|
object |
{"additionalLabels":{"prometheus":"default"},"enabled":false,"interval":"30s"} |
podMonitor는 [PodMonitor CR](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#monitoring.coreos.com/v1.PodMonitor].
을 제어합니다.
이 CRD는 prometheus-operator가 관리하며 워크로드를 모니터링할 수 있게 해 줍니다.
이 값을 사용하려면 클러스터에서 prometheus-operator를 실행해야 적용됩니다.
https://prometheus-operator.dev/docs/getting-started/introduction/ 을 참고하세요.
podMonitor.enabled#
| Type | Default |
|---|---|
bool |
false |
podMonitor.enabled는 차트가 PodMonitor를 배포할지 여부를 제어합니다.
PodMonitor CRD가 설치되어 있어야 하므로 기본적으로 비활성화되어 있습니다.
podMonitor.additionalLabels#
| Type | Default |
|---|---|
object |
{"prometheus":"default"} |
podMonitor.additionalLabels는 PodMonitor에 붙일 라벨입니다.
특정 prometheus 인스턴스가 선택할 수 있도록 하는 데 사용합니다.
기본값은 {prometheus: default}이며, 흔히 쓰이는 기본 prometheus 셀렉터로 보입니다.
podMonitor.interval#
| Type | Default |
|---|---|
string |
"30s" |
podMonitor.interval은 메트릭을 두 번 수집하는 사이의 간격입니다. 기본값은 30s입니다.
highAvailability#
| Type | Default |
|---|---|
object |
{"certManager":{"addCommonName":false,"addPublicAddrs":false,"enabled":false,"issuerGroup":"cert-manager.io","issuerKind":"Issuer","issuerName":""},"minReadySeconds":15,"podDisruptionBudget":{"enabled":false,"minAvailable":1},"replicaCount":2,"requireAntiAffinity":false} |
highAvailability는 Teleport 파드를 복제하고 스케줄링하는 방식을 제어하는 설정을
담고 있습니다. 이를 통해 Teleport를 고가용성 방식으로 실행할 수 있으며,
머신 하나가 중단되거나 사라지더라도 서비스가 끊기지 않아야 합니다.
복제하려면 Proxy 파드에 인증서를 제공하거나(tls.existingSecretName 또는
highAvailability.certManager 사용) 인그레스(ingress.enabled)를 통해
노출해야 합니다.
highAvailability.replicaCount#
| Type | Default |
|---|---|
int |
2 |
highAvailability.replicaCount는 파드 레플리카 수를 제어합니다. 복제 요구 사항은 highAvailability
설명을 참고하세요.
[!WARNING] 복제 조건을 반드시 충족해야 합니다. 그렇지 않으면 배포에서 오류가 발생하고 데이터가 일관되지 않게 됩니다.
highAvailability.requireAntiAffinity#
| Type | Default |
|---|---|
bool |
false |
highAvailability.requireAntiAffinity는 'requiredDuringSchedulingIgnoredDuringExecution'을 사용하여 여러 Teleport 파드가 같은
물리 호스트에 스케줄링되지 않도록 요구합니다. 매우 작은 클러스터이거나 노드가 중단된 동안에는 Teleport 파드가 스케줄링되지 않을 수 있으므로 주의해서 사용해야 합니다.
'requireAntiAffinity'를 false(기본값)로 설정하면 'preferredDuringSchedulingIgnoredDuringExecution'을 사용하여 이를 느슨한 요구 사항으로 만듭니다.
이 설정은 replicaCount가 1보다 클 때만 효과가 있습니다.
highAvailability.podDisruptionBudget#
| Type | Default |
|---|---|
object |
{"enabled":false,"minAvailable":1} |
highAvailability.podDisruptionBudget은
Pod Disruption Budget을
생성합니다.
highAvailability.podDisruptionBudget.enabled#
| Type | Default |
|---|---|
bool |
false |
highAvailability.podDisruptionBudget.enabled는 차트가 프록시 파드용 Pod Disruption Budget을
생성할지 여부를 제어합니다.
highAvailability.podDisruptionBudget.minAvailable#
| Type | Default |
|---|---|
int |
1 |
highAvailability.podDisruptionBudget.minAvailable은 자발적 중단이 발생하는 동안
계속 사용 가능해야 하는 최소 파드 수입니다.
highAvailability.certManager#
| Type | Default |
|---|---|
object |
{"addCommonName":false,"addPublicAddrs":false,"enabled":false,"issuerGroup":"cert-manager.io","issuerKind":"Issuer","issuerName":""} |
highAvailability.certManager는 고가용성 모드에서 TLS 인증서를 발급하는 데 사용하는
cert-manager 설정입니다.
이 설정은 아래의 "tls" 값과 함께 사용할 수 없습니다.
highAvailability.certManager.enabled#
| Type | Default |
|---|---|
bool |
false |
highAvailability.certManager.enabled가 true이면 cert-manager를 사용하여
Teleport가 TLS 종료에 사용할 인증서를 받습니다.
highAvailability.certManager.addCommonName#
| Type | Default |
|---|---|
bool |
false |
highAvailability.certManager.addCommonName이 true이면 클러스터 이름과 일치하는
common name이 인증서 서명 요청에 설정됩니다. 일부 CA에서는 이 설정이 필수입니다.
highAvailability.certManager.addPublicAddrs#
| Type | Default |
|---|---|
bool |
false |
highAvailability.certManager.addPublicAddrs가 true이면 publicAddr 차트 값 아래에
설정한 추가 공개 주소가 모두
인증서 서명 요청에 추가됩니다.
하위 호환성을 유지하기 위해 이 설정은 기본적으로 활성화되어 있지 않습니다.
highAvailability.certManager.issuerName#
| Type | Default |
|---|---|
string |
"" |
highAvailability.certManager.issuerName은 인증서에 사용할
Issuer/ClusterIssuer의 이름입니다.
참고: certManager.enabled가 true이면 이를 항상 직접 만들어야 합니다.
highAvailability.certManager.issuerKind#
| Type | Default |
|---|---|
string |
"Issuer" |
highAvailability.certManager.issuerKind는 cert-manager가 찾아야 하는
Issuer의 종류입니다.
모든 것을 teleport 네임스페이스 안에 두기 위해 기본값은 'Issuer'입니다.
highAvailability.certManager.issuerGroup#
| Type | Default |
|---|---|
string |
"cert-manager.io" |
highAvailability.certManager.issuerGroup은 cert-manager가 찾아야 하는
Issuer의 그룹입니다.
기본값은 기본 Issuer 그룹인 'cert-manager.io'입니다.
highAvailability.minReadySeconds#
| Type | Default |
|---|---|
int |
15 |
highAvailability.minReadySeconds는 파드 롤아웃 시 지연을 주어
모든 에이전트 터널이 동시에 끊어지는 것을 완화합니다.
https://github.com/gravitational/teleport/issues/13129 를 참고하세요.
tls#
| Type | Default |
|---|---|
object |
{"existingCASecretKeyName":"ca.pem","existingCASecretName":"","existingSecretName":""} |
tls는 Teleport 웹 UI를 보호하기 위해 직접 준비한 TLS 키 쌍을 마운트하는 설정입니다.
이 설정은 위의 "highAvailability.certManager" 및 "acme" 값과 함께 사용할 수 없습니다.
tls.existingSecretName#
| Type | Default |
|---|---|
string |
"" |
tls.existingSecretName은 TLS 키 쌍이 들어 있는 기존 시크릿의 이름입니다.
이 값을 지정하면 teleport.yaml의 https_keypairs 섹션이 자동으로 설정됩니다.
Teleport와 같은 네임스페이스에 다음 명령으로 시크릿을 만드세요.
kubectl create secret tls my-tls-secret --cert=/path/to/cert/file --key=/path/to/key/file
자세한 내용은 Kubernetes TLS Secrets를 참고하세요.
tls.existingCASecretName#
| Type | Default |
|---|---|
string |
"" |
tls.existingCASecretName은 x509 PEM 형식의 CA 또는 신뢰 번들이 들어 있는
기존 시크릿의 이름이며, 선택 사항입니다.
중간 인증 기관을 사용할 때 신뢰를 구성하는 데 유용합니다.
이 값을 지정하면 CA를 신뢰하도록 SSL_CERT_FILE 환경 변수가 자동으로 설정됩니다.
다음 명령으로 시크릿을 만드세요.
kubectl create secret generic my-root-ca --from-file=ca.pem=/path/to/root-ca.pem
위험: Teleport distroless 컨테이너는 기본적으로 ca-certificates 패키지(Mozilla PKI)의 CA를 신뢰합니다.
existingCASecretName을 설정하면 Teleport는 시크릿에 있는 CA 번들만 신뢰합니다.
Teleport가 다른 시스템(예: AWS, GitHub 등)과 통신해야 한다면, 시크릿에 해당 시스템의 CA가 들어 있어야 합니다.
그렇지 않으면 Teleport가 외부 서비스와 TLS 연결을 맺지 못합니다.
tls.existingCASecretKeyName#
| Type | Default |
|---|---|
string |
"ca.pem" |
tls.existingCASecretKeyName은 신뢰할 CA 번들 파일로 사용할
CA 시크릿 안의 기존 키 이름이며, 선택 사항입니다.
log#
| Type | Default |
|---|---|
object |
{"extraFields":["timestamp","level","component","caller"],"format":"text","level":"INFO","output":"stderr"} |
log는 Teleport 로깅 설정입니다.
log.level#
| Type | Default |
|---|---|
string |
"INFO" |
log.level은 Teleport 프로세스의 로그 레벨입니다.
사용할 수 있는 로그 레벨은 DEBUG, INFO, WARNING, ERROR입니다.
기본값은 INFO이며 프로덕션 환경에서 권장합니다.
DEBUG는 처음 설정할 때나 디버깅을 위해 더 자세한 로그를 볼 때 유용합니다.
log.output#
| Type | Default |
|---|---|
string |
"stderr" |
log.output은 로그를 보낼 위치입니다.
디스크에 기록하려면 파일 경로를 사용하세요(예: '/var/lib/teleport/teleport.log').
그 밖에 'stdout', 'stderr', 'syslog'를 지원합니다.
log.format#
| Type | Default |
|---|---|
string |
"text" |
log.format은 로그 형식 설정입니다.
사용할 수 있는 출력 값은 'json'과 'text'(기본값)입니다.
log.extraFields#
| Type | Default |
|---|---|
array |
["timestamp","level","component","caller"] |
log.extraFields는 기록할 추가 필드입니다. 사용할 수 있는 extra_fields 값은 timestamp, component, caller, level입니다.
기본적으로 모든 추가 필드가 포함됩니다.
disableTopologySpreadConstraints#
| Type | Default |
|---|---|
bool |
false |
disableTopologySpreadConstraints는 토폴로지 분산 제약 조건을 끕니다.
쿠버네티스 1.18 미만 버전에서는 이 기능이 자동으로 꺼집니다.
affinity#
| Type | Default |
|---|---|
object |
{} |
affinity는 파드 배치를 위한 설정입니다.
https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
참고: 여기에 affinity를 설정했다면 highAvailability.requireAntiAffinity를 함께 사용할 수 없습니다. 둘 중 하나만 설정할 수 있습니다.
annotations#
| Type | Default |
|---|---|
object |
{"certSecret":{},"config":{},"deployment":{},"ingress":{},"pod":{},"service":{},"serviceAccount":{}} |
annotations는 적용할 어노테이션입니다. 쿠버네티스 어노테이션을 참고하세요.
annotations.config#
| Type | Default |
|---|---|
object |
{} |
annotations.config는 ConfigMap에 적용하는 어노테이션입니다.
annotations.deployment#
| Type | Default |
|---|---|
object |
{} |
annotations.deployment는 Deployment에 적용하는 어노테이션입니다.
annotations.pod#
| Type | Default |
|---|---|
object |
{} |
annotations.pod는 Deployment의 각 Pod에 적용하는 어노테이션입니다.
annotations.service#
| Type | Default |
|---|---|
object |
{} |
annotations.service는 Service 오브젝트에 적용하는 어노테이션입니다.
annotations.serviceAccount#
| Type | Default |
|---|---|
object |
{} |
annotations.serviceAccount는 ServiceAccount 오브젝트에 적용하는 어노테이션입니다.
annotations.certSecret#
| Type | Default |
|---|---|
object |
{} |
annotations.certSecret은 highAvailability.certManager.enabled가 true일 때 cert-manager v1.5 이상이 생성하는 인증서 시크릿에 적용하는 어노테이션입니다.
annotations.ingress#
| Type | Default |
|---|---|
object |
{} |
annotations.ingress는 Ingress 오브젝트에 적용하는 어노테이션입니다.
extraLabels#
extraLabels는 차트가 생성하는 리소스에 적용할 추가 쿠버네티스 라벨을
담고 있습니다.
자세한 내용은 쿠버네티스 라벨 문서
를
참고하세요.
참고: PodMonitor 라벨은 대신 podMonitor.additionalLabels를 참고하세요.
extraLabels.certSecret#
| Type | Default |
|---|---|
object |
{} |
extraLabels.certSecret은 highAvailability.certManager.enabled가 true일 때
cert-manager v1.5 이상이 생성하는 인증서 시크릿에 설정할 라벨입니다.
extraLabels.clusterRole#
| Type | Default |
|---|---|
object |
{} |
extraLabels.clusterRole은 ClusterRole에 설정할 라벨입니다.
extraLabels.clusterRoleBinding#
| Type | Default |
|---|---|
object |
{} |
extraLabels.clusterRoleBinding은 ClusterRoleBinding에 설정할 라벨입니다.
extraLabels.role#
extraLabels.role은 Role에 설정할 라벨입니다.
extraLabels.deployment#
| Type | Default |
|---|---|
object |
{} |
extraLabels.deployment는 Deployment에 설정할 라벨입니다.
extraLabels.ingress#
| Type | Default |
|---|---|
object |
{} |
extraLabels.ingress는 Ingress에 설정할 라벨입니다.
extraLabels.job#
| Type | Default |
|---|---|
object |
{} |
extraLabels.job은 Helm 훅이 실행하는 Job에 설정할 라벨입니다.
extraLabels.jobPod#
| Type | Default |
|---|---|
object |
{} |
extraLabels.jobPod는 Helm 훅이 실행하는 Job이 생성하는 Pod에
설정할 라벨입니다.
extraLabels.pod#
| Type | Default |
|---|---|
object |
{} |
extraLabels.pod는 Deployment가 생성하는 Pod에
설정할 라벨입니다.
extraLabels.podDisruptionBudget#
| Type | Default |
|---|---|
object |
{} |
extraLabels.podDisruptionBudget은 podDisruptionBudget에 설정할 라벨입니다.
extraLabels.secret#
| Type | Default |
|---|---|
object |
{} |
extraLabels.secret은 Secret에 설정할 라벨입니다.
extraLabels.service#
| Type | Default |
|---|---|
object |
{} |
extraLabels.service는 Service에 설정할 라벨입니다.
extraLabels.serviceAccount#
| Type | Default |
|---|---|
object |
{} |
extraLabels.serviceAccount는 ServiceAccount에 설정할 라벨입니다.
serviceAccount#
| Type | Default |
|---|---|
object |
{"create":true,"name":""} |
serviceAccount는 생성하거나 사용할 쿠버네티스 서비스 계정입니다.
서비스 계정에 어노테이션을 설정하려면
annotations.serviceAccount 값을 사용하세요.
serviceAccount.create#
| Type | Default |
|---|---|
bool |
true |
serviceAccount.create는 ServiceAccount를 생성할지 여부를 지정합니다.
serviceAccount.name#
| Type | Default |
|---|---|
string |
"" |
serviceAccount.name은 사용할 ServiceAccount의 이름입니다.
설정하지 않고 serviceAccount.create가 true이면 릴리즈 이름을 사용하여 이름을 생성합니다.
create가 false이면 이 이름으로 기존 서비스 계정을 참조합니다.
rbac#
| Type | Default |
|---|---|
object |
{"create":true} |
rbac는 쿠버네티스 RBAC를 관리합니다.
rbac.create#
| Type | Default |
|---|---|
bool |
true |
rbac.create는 ClusterRole과 ClusterRoleBinding을 생성할지 여부를 지정합니다.
클러스터 수준 리소스를 별도로 관리한다면 false로 설정하세요.
service#
| Type | Default |
|---|---|
object |
{"spec":{},"type":"LoadBalancer"} |
service를 사용하면 꼭 필요한 경우 프록시의 백엔드 서비스를 ("LoadBalancer" 이외의) 임의의 서비스 유형으로 재정의할 수 있습니다.
Ingress를 사용하려면 service.type=ClusterIP, ingress.enabled=true로 설정하세요.
service.type#
| Type | Default |
|---|---|
string |
"LoadBalancer" |
service.type은 쿠버네티스 로드 밸런서 유형입니다.
service.spec#
| Type | Default |
|---|---|
object |
{} |
service.spec은 서비스 spec에 추가할 항목입니다.
예시:
loadBalancerIP: "1.2.3.4"
ingress#
| Type | Default |
|---|---|
object |
{"enabled":false,"spec":{},"suppressAutomaticWildcards":false,"useExisting":false} |
ingress는 쿠버네티스 Ingress 오브젝트입니다.
ingress.enabled를 true로 설정하면, 불필요한 로드 밸런서가 추가로 생성되지 않도록 service.type도 반드시
"LoadBalancer" 이외의 값으로 설정해야 합니다. 인그레스 컨트롤러가 자체 로드 밸런서를 프로비저닝해야 합니다.
Ingress를 사용하는 경우 Teleport 뒤에 있는 쿠버네티스 클러스터와 데이터베이스에 연결할 때도 tsh 클라이언트를 사용해야 합니다.
자세한 내용은 TLS 라우팅을 참고하세요.
ingress.enabled#
| Type | Default |
|---|---|
bool |
false |
ingress.enabled는 인그레스를 생성합니다.
ingress.useExisting#
| Type | Default |
|---|---|
bool |
false |
ingress.useExisting은 직접 인그레스를 관리한다는 것을 나타냅니다
(HTTPRoute 또는 TLS를 종료하는 다른 로드 밸런싱 방식도 해당합니다).
차트는 Teleport가 인그레스 뒤에서 실행되는 것처럼 설정하지만, 인그레스 리소스는 생성하지 않습니다.
인그레스를 직접 생성하고 관리해야 합니다.
ingress.suppressAutomaticWildcards#
| Type | Default |
|---|---|
bool |
false |
ingress.suppressAutomaticWildcards를 설정하면 Ingress가 제공하는 호스트 이름으로
*.<clusterName>을 자동으로 추가하지 않습니다. Teleport로 보호하는 애플리케이션을
사용하지 않는다면 이 설정이 바람직할 수 있습니다.
ingress.spec#
| Type | Default |
|---|---|
object |
{} |
ingress.spec은 인그레스 spec에 추가할 항목입니다.
예시:
ingressClassName: nginx
extraArgs#
| Type | Default |
|---|---|
array |
[] |
extraArgs는 주 Teleport 파드의 'teleport start'에 인수를 추가합니다.
extraEnv#
| Type | Default |
|---|---|
array |
[] |
extraEnv는 Teleport 파드에 환경 변수를 추가합니다.
extraContainers#
| Type | Default |
|---|---|
array |
[] |
extraContainers는 Teleport 파드에 추가할 컨테이너입니다.
예시:
- name: my-extra-tool
command:
- /bin/bash
- -c
- sleep infinity & wait
image: network-tool
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
runAsNonRoot: false
extraVolumeMounts#
| Type | Default |
|---|---|
array |
[] |
extraVolumeMounts는 extraVolumes로 마운트한 볼륨에 대응하는 마운트입니다.
예시:
- name: myvolume
mountPath: /path/on/host
initContainers#
| Type | Default |
|---|---|
array |
[] |
initContainers는 각 Teleport 파드가 시작되기 전에 실행할
initContainers 목록입니다.
예시:
- name: "teleport-init"
image: "alpine"
args: ["echo test"]
postStart#
| Type | Default |
|---|---|
object |
{"command":[]} |
postStart를 설정하면 해당 명령을
postStart 핸들러로 실행합니다.
postStart.command#
| Type | Default |
|---|---|
array |
[] |
postStart.command는 실행할 명령의 배열입니다.
resources#
| Type | Default |
|---|---|
object |
{} |
resources는 teleport 컨테이너에 요청할 리소스입니다.
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
[!DANGER] CPU 제한을 설정하는 것은 안티 패턴이며 대부분의 경우 해롭습니다. Static CPU 관리 정책을 활성화하지 않았다면, CPU 제한이 있는 멀티스레드 워크로드는 CPU 한도에 가까워질 때 예상과 다르게 동작할 가능성이 매우 높습니다.
스로틀링이 시작되면 Teleport가 불안정해집니다. CPU 제한은 설정하지 않기를 권장합니다. 기술적인 세부 사항은 GitHub PR을 참고하세요.
예시:
requests:
cpu: "1"
memory: "2Gi"
limits:
memory: "2Gi"
jobResources#
| Type | Default |
|---|---|
object |
{} |
jobResources는 teleport 배포 전 잡에 요청할 리소스입니다.
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
현재 잡에는 설정 검증과 마이그레이션 훅이 포함될 수 있습니다. 리소스 요구량은 보통 주 teleport 디플로이먼트보다 낮습니다. 대부분의 경우 이 제한은 설정하지 않는 것이 좋습니다. 예시:
requests:
cpu: "20m"
memory: "500Mi"
limits:
memory: "500Mi"
goMemLimitRatio#
| Type | Default |
|---|---|
float |
0.9 |
goMemLimitRatio는 차트가 설정하는 GOMEMLIMIT 환경 변수를 구성합니다.
GOMEMLIMIT은 Go 가비지 컬렉터가 할당된 메모리를 주어진 임곗값 이하로
유지하도록 지시합니다. 최선의 노력 방식이지만, 부하가 급증할 때
OOM을 방지하는 데 도움이 됩니다.
메모리 제한이 설정되어 있고 goMemLimitRatio가 0이 아니면,
차트는 GOMEMLIMIT을 resources.memory.limits * goMemLimitRatio로 설정합니다.
값은 0과 1 사이여야 합니다.
GOMEMLIMIT을 설정하지 않으려면 0으로 설정하세요.
extraEnv로 이미 GOMEMLIMIT을 설정했다면 아무 효과가 없습니다.
podSecurityContext#
| Type | Default |
|---|---|
object |
{} |
podSecurityContext는 차트가 생성하는 모든 파드에 적용하는 설정입니다.
예시:
fsGroup: 65532
securityContext#
| Type | Default |
|---|---|
object |
{} |
securityContext는 컨테이너에 추가하는 설정입니다.
예시:
runAsUser: 99
priorityClassName#
| Type | Default |
|---|---|
string |
"" |
priorityClassName은 디플로이먼트에 추가하는 값입니다.
tolerations#
| Type | Default |
|---|---|
array |
[] |
tolerations는 파드 배치를 위한 설정입니다.
https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
probeTimeoutSeconds#
| Type | Default |
|---|---|
int |
5 |
probeTimeoutSeconds는 readiness 및 liveness 프로브의 타임아웃입니다.
https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
readinessProbe#
| Type | Default |
|---|---|
object |
{"failureThreshold":12,"initialDelaySeconds":5,"periodSeconds":5,"successThreshold":1} |
readinessProbe는 readiness 프로브 설정을 구성합니다.
Auth를 사용할 수 없는 동안에도 프록시 파드가 준비 상태를 유지하도록 조정할 수 있습니다.
기본값은 readiness 프로브가 1분 동안 실패하면 파드를 준비되지 않은 상태로 표시합니다.
readinessProbe.initialDelaySeconds#
| Type | Default |
|---|---|
int |
5 |
readinessProbe.initialDelaySeconds는 컨테이너가 시작된 후
liveness 프로브를 시작하기까지 대기하는 시간(초)입니다. 자세한 내용: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
readinessProbe.periodSeconds#
| Type | Default |
|---|---|
int |
5 |
readinessProbe.periodSeconds는 프로브를 수행하는 주기(초)입니다. 최솟값은 1입니다.
readinessProbe.failureThreshold#
| Type | Default |
|---|---|
int |
12 |
readinessProbe.failureThreshold는 프로브가 한 번 성공한 뒤
실패한 것으로 간주되기 위해 필요한 최소 연속 실패 횟수입니다. 최솟값은 1입니다.
readinessProbe.successThreshold#
| Type | Default |
|---|---|
int |
1 |
readinessProbe.successThreshold는 프로브가 실패한 뒤
성공한 것으로 간주되기 위해 필요한 최소 연속 성공 횟수입니다. 최솟값은 1입니다.
terminationGracePeriodSeconds#
| Type | Default |
|---|---|
int |
60 |
terminationGracePeriodSeconds는 쿠버네티스 종료 유예 시간입니다.
https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#hook-handler-execution
파드가 preStop 훅에서 30초를 대기하므로 이 값은 30초보다 커야 합니다.