SAP-archive / karydia

Kubernetes Security Walnut
Other
77 stars 10 forks source link

Hibernations fails on Kubernetes 1.17.x #254

Closed Neumann-Nils closed 4 years ago

Neumann-Nils commented 4 years ago

Description

Hibernating a cluster will fail as the Karydia pod/pods cannot be stopped. This is due to changes in Kubernetes regarding leader elections of the controller for endpoints (https://github.com/kubernetes/kubernetes/pull/84084).

Steps to reproduce

  1. Create a cluster with Kubernetes version 1.17.x
  2. Hibernate the cluster (e.g. via the Gardener UI)

Expected behavior

The cluster should go into hibernation mode and be easily woken up afterwards.

Logs / console output / screenshots / affected lines of code

Error in Gardener:

"Hibernating control plane" failed: retry failed with context deadline exceeded, last error: retry failed with context deadline exceeded, last error: waiting until there are no running Pods in the shoot cluster... there is still at least one running Pod in the shoot cluster: karydia/karydia

Environment