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

be able to configure server liveness/readiness/startup probe #300

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

jmazzitelli
Copy link
Contributor

@jmazzitelli
Copy link
Contributor Author

to test, first "make build-helm-charts" and then...

configure with custom values:

 helm template -n istio-system --show-only templates/deployment.yaml --set deployment.readiness_probe.initial_delay_seconds=123 --set deployment.readiness_probe.period_seconds=456 kiali-server _output/charts/kiali-server-*.tgz 

you should see in the output:

        readinessProbe:
          httpGet:
            path: /kiali/healthz
            port: api-port
            scheme: HTTP
          initialDelaySeconds: 123
          periodSeconds: 456

then do not configure or set with empty string - see defaults take effect:

helm template -n istio-system --show-only templates/deployment.yaml --set deployment.readiness_probe.initial_delay_seconds= --set deployment.readiness_probe.period_seconds= kiali-server _output/charts/kiali-server-*.tgz 

and you should see in the output:

        readinessProbe:
          httpGet:
            path: /kiali/healthz
            port: api-port
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 30

@jmazzitelli jmazzitelli marked this pull request as ready for review November 13, 2024 18:42
@jmazzitelli jmazzitelli marked this pull request as draft November 13, 2024 18:45
@jmazzitelli
Copy link
Contributor Author

do not merge this - I think we need to change this to configure the startup probe, not the readiness probe (based on the github issue description of why this is needed)

@jmazzitelli
Copy link
Contributor Author

latest commit lets you config some or all three probes - because you just know SOMEBODY somewhere is going to want to configure one of the other ones (not just readiness).

to test that you can configure all three:

helm template -n istio-system --show-only templates/deployment.yaml --set deployment.probes.readiness.initial_delay_seconds=11 --set deployment.probes.readiness.period_seconds=22 --set deployment.probes.liveness.initial_delay_seconds=33 --set deployment.probes.liveness.period_seconds=44 --set deployment.probes.startup.initial_delay_seconds=55 --set deployment.probes.startup.period_seconds=66 --set deployment.probes.startup.failure_threshold=77 kiali-server _output/charts/kiali-server-*.tgz

and you should see this:

        readinessProbe:
          httpGet:
            path: /kiali/healthz
            port: api-port
            scheme: HTTP
          initialDelaySeconds: 11
          periodSeconds: 22
        livenessProbe:
          httpGet:
            path: /kiali/healthz
            port: api-port
            scheme: HTTP
          initialDelaySeconds: 33
          periodSeconds: 44
        startupProbe:
          httpGet:
            path: /kiali/healthz
            port: api-port
            scheme: HTTP
          initialDelaySeconds: 55
          periodSeconds: 66
          failureThreshold: 77

@jmazzitelli
Copy link
Contributor Author

when you don't set them - the defaults are:

        readinessProbe:
          httpGet:
            path: /kiali/healthz
            port: api-port
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 30
        livenessProbe:
          httpGet:
            path: /kiali/healthz
            port: api-port
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 30
        startupProbe:
          httpGet:
            path: /kiali/healthz
            port: api-port
            scheme: HTTP
          initialDelaySeconds: 30
          periodSeconds: 10
          failureThreshold: 6

@jmazzitelli jmazzitelli marked this pull request as ready for review November 13, 2024 18:59
@jmazzitelli jmazzitelli changed the title be able to configure server readiness probe be able to configure server liveness/readiness/startup probe Nov 13, 2024
Copy link

@jshaughn jshaughn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nerd, I was just playing around to see if I could better understand this stuff :-) Probably my lack of expertise hurt your eyes.

@jmazzitelli jmazzitelli merged commit 4711c9c into kiali:master Nov 14, 2024
1 check passed
@jmazzitelli jmazzitelli deleted the config-probe branch November 14, 2024 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Adjustable readiness and liveness probes delay
2 participants