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

Dynatrace containers livenessprobes switched from /healthz to /livez #641

Merged
merged 6 commits into from
Mar 17, 2022

Conversation

mjgrzybek
Copy link
Contributor

@mjgrzybek mjgrzybek commented Mar 15, 2022

Description

The /healthz endpoint for the livenessprobe is deprecated since Kubernetes 1.16. It's replaced by the more specific /livez.

How can this be tested?

Apply dynakube with cloudnativeFullstack:

apiVersion: dynatrace.com/v1beta1
kind: DynaKube
metadata:
  name: dk
  namespace: dynatrace
spec:
  apiUrl: <api_url>
  activeGate:
    capabilities:
    - kubernetes-monitoring
    - routing
  oneAgent:
    cloudNativeFullStack: {}
  • see if all pods in dynatrace namespace are working correctly.
  • check is no probe problems are visible in kubectl get events --sort-by='.lastTimestamp' -n dynatrace output
  • check if /healthz is no longer used: kubectl -n dynatrace get pod -o yaml | grep healtz | wc -l

Checklist

  • Unit tests have been updated/added
  • PR is labeled accordingly

@mjgrzybek mjgrzybek requested review from chrismuellner and a team March 15, 2022 21:20
@mjgrzybek mjgrzybek added the core Changes to core functionality of the Operator label Mar 15, 2022
@mjgrzybek mjgrzybek enabled auto-merge (squash) March 15, 2022 21:22
@mjgrzybek mjgrzybek merged commit b30401b into master Mar 17, 2022
@mjgrzybek mjgrzybek deleted the feature/healthz-to-livez branch March 17, 2022 09:29
@dsch
Copy link

dsch commented May 25, 2022

Does this change requires an update of the Kubernetes Monitoring Permissions as documented here:
https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-container-platforms/kubernetes/get-started-with-kubernetes-monitoring/dt-component-permissions#dynatrace-kubernetes-monitoring-activegate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Changes to core functionality of the Operator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants