Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Add kubernetes liveliness(health) check uri#268

Merged
seanmalloy merged 1 commit intomasterfrom
issue-248
Jan 23, 2020
Merged

Add kubernetes liveliness(health) check uri#268
seanmalloy merged 1 commit intomasterfrom
issue-248

Conversation

@karolkrawczyk
Copy link
Copy Markdown
Contributor

Description

Add liveliness endpoint at /healthz for eunomia-operatator and add
livenessProbe to deployment definition. This is done in order for
kubernetes to know when pod is healthy or need to be restarted.

Fixes #248

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • [not needed ] Unit tests and e2e tests updated
  • [not needed] Documentation updated

Add liveliness endpoint at /healthz for eunomia-operatator and add
livenessProbe to deployment definition. This is done in order for
kubernetes to know when pod is healthy or need to be restarted.

Signed-off-by: Karol Krawczyk <kkrawczyk@griddynamics.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 23, 2020

Codecov Report

Merging #268 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #268   +/-   ##
=====================================
  Coverage       0%     0%           
=====================================
  Files           1      1           
  Lines          52     52           
=====================================
  Misses         52     52

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cee8065...91ae930. Read the comment docs.

@seanmalloy seanmalloy added this to the v0.1.2 milestone Jan 23, 2020
@seanmalloy seanmalloy merged commit c443f54 into master Jan 23, 2020
@seanmalloy seanmalloy deleted the issue-248 branch January 23, 2020 20:23
Comment thread cmd/manager/main.go
handler.WebhookHandler(w, r, gitopsconfig.NewReconciler(mgr))
})

mux.HandleFunc("/healthz", func(w http.ResponseWriter, _ *http.Request) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice, the _ is a fine touch!

Also, huge thanks for including the "why" in the commit message. Highly appreciated!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add kubernetes liveliness(health) check uri

3 participants