-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Namespaces blocklist #1677
Comments
@dananichev yep, namespace whitelisting is not complete yet, and all namespaces in got are still synced regardless of the namespaces passed in the whitwlist. Good news is that I am completing whitelisting soon, see #1668 Regarding blacklisting, it shouldn't be too hard to add a flag called |
So basically once you finish #1668 Flux will honor new flag Is there any cons against RBAC usage for this purposes? |
Yep
At the very least it will cause quite some noise in the logs. In particular it will try to sync manifests from those manifests in git (since flux doesn't currently know better) cause errors, which may prevent manifests in legitimate namespaces from being synced (I don't know in detail how flux would react to those errors). The same could happen when attempting to read resources from the blacklisted namespaces in k8s, possiblly preventing resources in legitimate namespaces from being read. @squaremo mind adding your two cents? @dananichev would you mind trying it in a test cluster? |
@2opremio as far as i understood i can't specify namespaces restrictions for Or it would be ok to change Also i wanted to ask, why wouldn't you use Kubernetes for such parameters as Also also, how about some default behavior related to namespaces handling? I mean, monitor only those namespaces which described in GIT repo with manifests? |
With release of 1.10 and exclude domains from image metadata scanning this issue now should be considered as closed. Thanks! |
So |
I would like to have this flag --k8s-disallow-namespace available as well. Particularly, I need flux to be able to apply changes in multiple namespaces, but it is not quite suitable to keep namespaces whitelist up-to-date |
Created #3064 |
Is there any way to blacklist namespaces? Whitelisting is quite hard thing to maintain in case you have a lot of namespaces (dynamically created/removed). Plus, only a couple of namespaces should be blacklisted (eg,
kube-system
,default
,monitoring
). And it is easier to blacklist them than to keep whitelist up-to-date.Also, are namespaces defined in GIT's manifests monitored and updated by Flux (even if
--k8s-namespace-whitelist
argument present) or no?Thanks, Dmitry
The text was updated successfully, but these errors were encountered: