Templates: Update node key in tolerations and affinity#4
Conversation
…ments to use cluster.ctfpilot.com/node
There was a problem hiding this comment.
Pull request overview
This PR updates the Kubernetes node selector key convention from ctfpilot.com/node to cluster.ctfpilot.com/node in template files. This change standardizes the node selector naming pattern to use a more specific cluster.ctfpilot.com domain prefix, likely to better organize cluster-level resources and avoid naming conflicts with other ctfpilot.com labels used for challenge metadata.
- Updated node tolerations and affinity rules in two Kubernetes deployment templates
- Changed the key in both
tolerationsandnodeAffinity.requiredDuringSchedulingIgnoredDuringExecutionsections
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| template/instanced-web-k8s.yml | Updated node selector key in tolerations (line 42) and affinity matchExpressions (line 50) for web-based challenge deployments |
| template/instanced-tcp-k8s.yml | Updated node selector key in tolerations (line 42) and affinity matchExpressions (line 50) for TCP-based challenge deployments |
The changes are consistent across both files, and no other template files in the repository use this node selector key. The update is straightforward and maintains the same values (scaler) and operators, only changing the key name to follow the new convention.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Update
ctfpilot.com/nodetocluster.ctfpilot.com/node