메시 헬스 체크 프로토콜 폴백
메시 헬스 체크 프로토콜 폴백 (MeshHealthChecks: Protocol fallback)
이 문서는 Kong Mesh의 MeshHealthCheck 정책에서 프로토콜 폴백을 설정하는 방법을 설명해요. TCP 헬스 체크를 활성화하고 HTTP 헬스 체크를 비활성화하는 예시 설정으로 폴백 동작을 구성하는 방법을 보여줘요. Kubernetes, Universal, Terraform 세 가지 환경별 예시를 제공하고, Kubernetes와 Universal에서는 kuma.io/service 태그 기반 방식과 MeshService 리소스 기반 방식을 각각 소개해요
출처: 문서
본문
프로토콜 폴백
프로토콜 폴백
구성
Kubernetes
kuma.io/service 태그 기반 네이밍을 사용해요:
apiVersion: kuma.io/v1alpha1
kind: MeshHealthCheck
metadata:
name: web-to-backend-check
namespace: kuma-demo
labels:
kuma.io/mesh: default
spec:
targetRef:
kind: Dataplane
labels:
app: web
to:
- targetRef:
kind: MeshService
name: backend_kuma-demo_svc_3001
default:
interval: 10s
timeout: 2s
unhealthyThreshold: 3
healthyThreshold: 1
tcp: {}
http:
disabled: true
MeshService Kubernetes 리소스를 사용해요:
apiVersion: kuma.io/v1alpha1
kind: MeshHealthCheck
metadata:
name: web-to-backend-check
namespace: kuma-demo
labels:
kuma.io/mesh: default
spec:
targetRef:
kind: Dataplane
labels:
app: web
to:
- targetRef:
kind: MeshService
name: backend
namespace: kuma-demo
sectionName: http
default:
interval: 10s
timeout: 2s
unhealthyThreshold: 3
healthyThreshold: 1
tcp: {}
http:
disabled: true
Universal
kuma.io/service 태그 기반 네이밍을 사용해요:
type: MeshHealthCheck
name: web-to-backend-check
mesh: default
spec:
targetRef:
kind: Dataplane
labels:
app: web
to:
- targetRef:
kind: MeshService
name: backend
default:
interval: 10s
timeout: 2s
unhealthyThreshold: 3
healthyThreshold: 1
tcp: {}
http:
disabled: true
MeshService Kubernetes 리소스를 사용해요:
type: MeshHealthCheck
name: web-to-backend-check
mesh: default
spec:
targetRef:
kind: Dataplane
labels:
app: web
to:
- targetRef:
kind: MeshService
name: backend
sectionName: http
default:
interval: 10s
timeout: 2s
unhealthyThreshold: 3
healthyThreshold: 1
tcp: {}
http:
disabled: true
Terraform
현재 구성에 맞게 konnect_mesh_control_plane.my_meshcontrolplane.id와 konnect_mesh.my_mesh.name을 조정하세요. {: .text-sm}
resource "konnect_mesh_health_check" "web_to_backend_check" {
provider = konnect-beta
type = "MeshHealthCheck"
name = "web-to-backend-check"
spec = {
target_ref = {
kind = "Dataplane"
labels = {
app = "web"
}
}
to = [
{
target_ref = {
kind = "MeshService"
name = "backend"
section_name = "http"
}
default = {
interval = "10s"
timeout = "2s"
unhealthy_threshold = "3"
healthy_threshold = "1"
tcp = {
}
http = {
disabled = "true"
}
}
}
]
}
labels = {
"kuma.io/mesh" = konnect_mesh.my_mesh.name
}
cp_id = konnect_mesh_control_plane.my_meshcontrolplane.id
mesh = konnect_mesh.my_mesh.name
}
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.