aws / eks-anywhere

Run Amazon EKS on your own infrastructure 🚀
https://anywhere.eks.amazonaws.com
Apache License 2.0
1.97k stars 289 forks source link

Create CAPI machines under the EKSA's Cluster's namesapce #2212

Open wongni opened 2 years ago

wongni commented 2 years ago

What would you like to be added: Currently, CAPI machines (k get machines -A) are created under eksa-system namespace. I want them to be under the namespace specified in the EKSA Cluster.

For example,

apiVersion: anywhere.eks.amazonaws.com/v1alpha1
kind: Cluster
metadata:
  name: a-cluster
  namespace: cluster-ns

In this case, CAPI machines are created uder cluster-ns instead of eksa-system

Why is this needed:

I want to partition the clusters in the long-lived management cluster.

maxdrib commented 2 years ago

Adding to this - in a scenario where a management cluster has hundreds or thousands of workload clusters, we may run into scaling issues if all these capi/capc resources are in the eksa-system namespace. However, it sounds like breaking cluster resources into separate namespaces may have its own tradeoffs as well, since many operations in eks-a rely on the hardcoded eksa-system namespace and can add complexity, like clusterctl move