Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to config kong grpc healthcheck? #13331

Closed
1 task done
kanbo opened this issue Jul 4, 2024 · 2 comments
Closed
1 task done

How to config kong grpc healthcheck? #13331

kanbo opened this issue Jul 4, 2024 · 2 comments
Labels

Comments

@kanbo
Copy link

kanbo commented Jul 4, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Kong version ($ kong version)

Kong 3.2.2

Current Behavior

error.log

2024/07/04 11:50:05 [error] 28965#0: *598 [lua] handler.lua:665: declarative reconfigure failed after 38 ms on worker #1: /usr/local/share/lua/5.1/resty/healthcheck.lua:1490: checks.active.type can only be 'http', 'https' or 'tcp', got 'grpc', context: ngx.timer

kong declarative_config :

services:
- name: grpc_test
  host: grpc_test
  connect_timeout: 10000
  protocol: grpc
  routes:
  - strip_path: true
    path_handling: v0
    preserve_host: true
    name: grpc_test
    hosts:
    - 10.16.156.231
    methods:
    - GET
    - POST
    paths:
    - /

upstreams:
- name: grpc_test
  algorithm: round-robin
  hash_on: none
  healthchecks:
    active:
      https_verify_certificate: false
      type: grpc
      http_path: /
      timeout: 3
      concurrency: 10
      healthy:
        successes: 3
        interval: 10
      unhealthy:
        tcp_failures: 3
        timeouts: 3
        http_failures: 3
        interval: 10

Expected Behavior

No response

Steps To Reproduce

No response

Anything else?

No response

@kanbo kanbo changed the title kong 3.2.2 not support grpc healthcheck? How to config kong grpc healthcheck? Jul 4, 2024
@hanshuebner
Copy link
Contributor

Kong Gateway only supports the http, https and tcp protocols for healthchecks. The configuration schema also allows grpc and grpcs to be specified, but those protocols are not actually supported. The lua-resty-healthcheck library provides the healthchecking implementation, please feel free to open a pull request to add grpc and grpcs support to that library.

@hanshuebner hanshuebner added task/feature Requests for new features in Kong pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... labels Jul 4, 2024
@kanbo
Copy link
Author

kanbo commented Jul 4, 2024

Kong Gateway only supports the http, https and tcp protocols for healthchecks. The configuration schema also allows grpc and grpcs to be specified, but those protocols are not actually supported. The lua-resty-healthcheck library provides the healthchecking implementation, please feel free to open a pull request to add grpc and grpcs support to that library.

Thank you. Is there any other way to solve this problem

@chronolaw chronolaw removed the pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... label Jul 4, 2024
@Kong Kong locked and limited conversation to collaborators Jul 4, 2024
@hanshuebner hanshuebner converted this issue into discussion #13335 Jul 4, 2024
@hanshuebner hanshuebner added bug and removed task/feature Requests for new features in Kong labels Jul 4, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

3 participants