Skip to content
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

HTTP2 health check does not use readiness probe path #487

Closed
anuraaga opened this issue Sep 21, 2018 · 2 comments
Closed

HTTP2 health check does not use readiness probe path #487

anuraaga opened this issue Sep 21, 2018 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@anuraaga
Copy link
Contributor

I recently switched some services from protocol HTTPS to HTTP2 and noticed that health checks stopped being sent to the path defined in the deployment config, but are just sent to the root path.

The deployment config is identical for

...
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /internal/health
            port: 8080
            scheme: HTTPS
          initialDelaySeconds: 30
          periodSeconds: 15
          successThreshold: 1
          timeoutSeconds: 5
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /internal/health
            port: 8080
            scheme: HTTPS
          initialDelaySeconds: 30
          periodSeconds: 5
          successThreshold: 1
          timeoutSeconds: 5
...

If svc is HTTPS, the health check uses the path

Description
Kubernetes L7 health check generated with readiness probe settings.

Path
/internal/health
Protocol
HTTPS
Port
31508

If svc is HTTP2, the health check does not

Description
Default kubernetes L7 Loadbalancing health check.

Protocol
HTTP2
Port
31021

The issue seems to be because of comparing the string HTTP2 to HTTPS, as kube API does not support the scheme HTTP2.

@k8s-ci-robot
Copy link
Contributor

@rramkumar1: GitHub didn't allow me to assign the following users: agau4779.

Note that only kubernetes members and repo collaborators can be assigned.
For more information please see the contributor guide

In response to this:

/assign @agau4779

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@rramkumar1
Copy link
Contributor

/cc @agau4779

@bowei bowei added the kind/bug Categorizes issue or PR as related to a bug. label Oct 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants