Skip to content

Add eviction annotation for theatre-secrets-install#505

Merged
epatmalnieks-gc merged 1 commit into
pre-release-5.1.0from
add-eviction-annotation
Jun 18, 2026
Merged

Add eviction annotation for theatre-secrets-install#505
epatmalnieks-gc merged 1 commit into
pre-release-5.1.0from
add-eviction-annotation

Conversation

@epatmalnieks-gc

Copy link
Copy Markdown

The theatre-secrets-install init container mounts an emptyDir volume to share secrets into the main container. The cluster autoscaler treats any pod with a local emptyDir volume as unsafe to evict, which can prevent nodes from being scaled down.

This PR introduces a change where the webhook now sets cluster-autoscaler.kubernetes.io/safe-to-evict-local-volumes: theatre-secrets-install on any pod it mutates, which signals the cluster autoscaler that it is safe to evict this volume.

@0x0013 0x0013 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@epatmalnieks-gc epatmalnieks-gc merged commit f056def into pre-release-5.1.0 Jun 18, 2026
7 checks passed
@epatmalnieks-gc epatmalnieks-gc deleted the add-eviction-annotation branch June 18, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants