Merge pull request #33 from rancher/multi-tenancy-image

Add image to multi-tenancy
This commit is contained in:
Mario Manno 2022-12-08 16:26:59 +01:00 committed by GitHub
commit 15b7f77185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -12,6 +12,8 @@ A multi-tenant fleet setup looks like this:
namespaces on downstream clusters
* clusters are in a separate namespace
![Shared Clusters](/img/FleetSharedClusters.svg)
## Example Tenant
This would create a user 'fleetuser', who can only manage GitRepo resources in the 'project1' namespace.
@ -50,11 +52,11 @@ In each of the user's namespaces, as an admin create a [`BundleNamespaceMapping`
# or target one repo
#fleet.cattle.io/repo-name: simpleapp
# Namespaces containing clusters to match by label
# Namespaces, containing clusters, to match by label
namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: fleet-default
# or clusters in every namespace with a label
# the label is on the namespace
#workspace: prod
The [`target` section](./gitrepo-targets) in the GitRepo resource can be used to deploy only to a subset of the matched clusters.

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 138 KiB