feat: webhook HA, security hardening, and RBAC naming cleanup#92
Merged
Conversation
…oyment Adds a `high-availability` kustomize component that sets replicas to 2 and adds a PodDisruptionBudget (minAvailable: 1) to prevent webhook downtime during node maintenance or pod restarts. Also renames the manager Deployment from `compute` to `compute-manager` for clarity — the old name was ambiguous given the broader system name. Closes #91 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Ensures the two replicas land on different nodes so a single node failure or drain cannot take down both webhook pods simultaneously. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ndard Adds seccompProfile RuntimeDefault (pod-level), pins runAsUser/runAsGroup to 65532 to match the distroless nonroot image USER, and sets readOnlyRootFilesystem on the container. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ute- Ensures role names are unique to this service and won't collide with other controllers installed in the same cluster. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
kevwilliams
approved these changes
Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Deploymentfromcomputetocompute-managerto avoid ambiguity with the broader system nameconfig/components/high-availabilitykustomize component with:replicas: 2— eliminates the single-replica webhook availability gap on pod restartPodDisruptionBudget(minAvailable: 1) — prevents simultaneous eviction of both pods during node maintenancetopologySpreadConstraints(kubernetes.io/hostname,DoNotSchedule) — ensures the two replicas land on different nodes so a node failure or drain cannot take down both pods at oncehigh-availabilitycomponent intoconfig/overlays/single-clusterseccompProfile: RuntimeDefaultat the pod levelrunAsUser/runAsGroup: 65532pinned to match the distrolessnonrootimageUSERreadOnlyRootFilesystem: trueat the container levelClusterRoleandClusterRoleBindingnames withcompute-to prevent collisions with other controllers in the same clusterConsumers that want a single replica (e.g. staging) simply omit the
high-availabilitycomponent from their overlay.Closes #91
Test plan
kustomize build config/overlays/single-cluster/produces aDeploymentnamedcompute-managerwithreplicas: 2, aPodDisruptionBudgetwithminAvailable: 1, andtopologySpreadConstraintsonkubernetes.io/hostnamekustomize build config/base/manager/still builds cleanly withreplicas: 1and no PDBClusterRoleandClusterRoleBindingnames in the build output are prefixed withcompute-Readyand the webhook remains available during akubectl rollout restart🤖 Generated with Claude Code