본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

카나리 릴리스 플러그인 설정 레퍼런스

원문 보기 위키 갱신

카나리 릴리스 플러그인 설정 레퍼런스 (Canary Release Plugin Configuration Reference)

이 문서는 Kong의 카나리 릴리스 플러그인에서 설정할 수 있는 모든 옵션을 스키마 형태로 정리한 레퍼런스예요. 트래픽을 카나리 버전으로 보낼 비율(percentage), 해시 방식(hash), 진행 시간(duration), 대상 그룹(groups), 업스트림 폴백 여부 같은 필드별 설명과 기본값, 허용 범위를 한눈에 확인할 수 있어요. 플러그인을 처음 구성하거나 카나리 배포 동작을 세밀하게 조정할 때 필요한 값을 빠르게 찾아보기에 딱 좋아요

출처: 문서

본문

{
  "properties": {
    "config": {
      "properties": {
        "canary_by_header_name": {
          "description": "A string representing an HTTP header name.",
          "type": "string"
        },
        "duration": {
          "default": 3600,
          "description": "The duration of the canary release in seconds.",
          "type": "number"
        },
        "groups": {
          "description": "The groups allowed to access the canary release.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "hash": {
          "default": "consumer",
          "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.",
          "enum": [
            "allow",
            "consumer",
            "deny",
            "header",
            "ip",
            "none"
          ],
          "type": "string"
        },
        "hash_header": {
          "description": "A string representing an HTTP header name.",
          "type": "string"
        },
        "percentage": {
          "description": "The percentage of traffic to be routed to the canary release.",
          "maximum": 100,
          "minimum": 0,
          "type": "number"
        },
        "start": {
          "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`.",
          "type": "number"
        },
        "steps": {
          "default": 1000,
          "description": "The number of steps for the canary release.",
          "minimum": 1,
          "type": "number"
        },
        "upstream_fallback": {
          "default": false,
          "description": "Specifies whether to fallback to the upstream server if the canary release fails.",
          "type": "boolean"
        },
        "upstream_host": {
          "description": "A string representing a host name, such as example.com.",
          "type": "string"
        },
        "upstream_port": {
          "description": "An integer representing a port number between 0 and 65535, inclusive.",
          "maximum": 65535,
          "minimum": 0,
          "type": "integer"
        },
        "upstream_uri": {
          "description": "The URI of the upstream server to be used for the canary release.",
          "minLength": 1,
          "type": "string"
        }
      },
      "type": "object"
    },
    "expressions": {
      "additionalProperties": true,
      "type": "object"
    },
    "protocols": {
      "default": [
        "grpc",
        "grpcs",
        "http",
        "https"
      ],
      "description": "A set of strings representing HTTP protocols.",
      "items": {
        "enum": [
          "grpc",
          "grpcs",
          "http",
          "https"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "route": {
      "additionalProperties": false,
      "description": "If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "service": {
      "additionalProperties": false,
      "description": "If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}

관련 리소스

더 알아보기 (Learn more)

  • 카나리 해시의 allow와 deny 옵션처럼 그룹 기반 접근 제어를 구성할 때 함께 참고하면 좋아요 — ACL plugin
  • 카나리 릴리스가 Kong Gateway의 트래픽 제어와 라우팅 전체에서 어떤 역할을 하는지 큰 그림을 잡을 수 있어요 — Kong Gateway traffic control and routing
  • 카나리 릴리스 방식을 활용해 Kong Gateway를 안전하게 업그레이드하는 흐름을 살펴볼 수 있어요 — Upgrading Kong Gateway