카나리 릴리스 정책 구성 참조
카나리 릴리스 정책 구성 참조 (Canary Release Policy Configuration Reference)
이 문서는 Kong의 카나리 릴리스 정책에서 설정할 수 있는 구성 옵션을 JSON 스키마 형태로 정리한 참조 자료예요. 시작 시간, 지속 시간, 단계 수, 트래픽 비율 같은 기본 항목부터 업스트림 호스트·포트·URI 지정 방법까지 하나씩 확인할 수 있어요. 해시 알고리즘을 consumer, ip, allow, deny 등으로 지정해 트래픽 분배 방식을 조정하거나 특정 그룹의 접근을 허용·차단하는 방법도 설명해 줘요. 각 필드의 타입, 기본값, 최솟값·최댓값 같은 제약 조건이 담겨 있어서 실제 설정을 작성할 때 바로 참고하기 좋아요
출처: 문서
본문
{
"properties": {
"config": {
"type": "object",
"properties": {
"start": {
"type": "number",
"description": "Future time in seconds since epoch, when the canary release will start. Ignored when `percentage` is set, or when using `allow` or `deny` in `hash`."
},
"duration": {
"type": "number",
"description": "The duration of the canary release in seconds.",
"default": 3600
},
"steps": {
"type": "number",
"minimum": 1,
"description": "The number of steps for the canary release.",
"default": 1000
},
"percentage": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "The percentage of traffic to be routed to the canary release."
},
"upstream_host": {
"type": "string",
"description": "A string representing a host name, such as example.com."
},
"upstream_port": {
"type": "integer",
"maximum": 65535,
"minimum": 0,
"description": "An integer representing a port number between 0 and 65535, inclusive."
},
"upstream_uri": {
"type": "string",
"minLength": 1,
"description": "The URI of the upstream server to be used for the canary release."
},
"canary_by_header_name": {
"type": "string",
"description": "A string representing an HTTP header name."
},
"hash": {
"type": "string",
"enum": [
"allow",
"consumer",
"deny",
"header",
"ip",
"none"
],
"description": "Hash algorithm to be used for canary release.\n\n* `consumer`: The hash will be based on the consumer.\n* `ip`: The hash will be based on the client IP address.\n* `none`: No hash will be applied.\n* `allow`: Allows the specified groups to access the canary release.\n* `deny`: Denies the specified groups from accessing the canary release.\n* `header`: The hash will be based on the specified header value.",
"default": "consumer"
},
"hash_header": {
"type": "string",
"description": "A string representing an HTTP header name."
},
"upstream_fallback": {
"type": "boolean",
"description": "Specifies whether to fallback to the upstream server if the canary release fails.",
"default": false
},
"groups": {
"type": "array",
"items": {
"type": "string"
},
"description": "The groups allowed to access the canary release."
}
}
}
}
}
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.