A solution for locking Pods which reside in a specific namespace to a sepcific node group.
We are waiting for EKS to ship support for scheduler.alpha.kubernetes.io/node-selector
.
apiVersion: v1
kind: Namespace
metadata:
name: your-namespace
annotations:
scheduler.alpha.kubernetes.io/node-selector: env=test
Link to the issue can be found here:
apiVersion: v1
kind: Namespace
metadata:
name: your-namespace
annotations:
k8s-mutate-nodeselector.skpr.io/namespace: env=test