File tree Expand file tree Collapse file tree
pages/plural-features/projects-and-multi-tenancy Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,40 +26,38 @@ The core of how tenancy is managed at scale is via Projects. An example of how
2626apiVersion : v1
2727kind : Namespace
2828metadata :
29- name : gke-fleet
29+ name : gke-fleet # this will be the namespace all Plural CRDS for `gke-fleet` live in for your management cluster
3030---
3131apiVersion : deployments.plural.sh/v1alpha1
3232kind : ServiceAccount
3333metadata :
3434 name : gke-fleet
3535spec :
36- email : gke-fleet-fleet@plural.sh
36+ email : gke-fleet-fleet@plural.sh # the Plural service account user that will be admin for that Project
3737 tokenSecretRef :
38- name : gke-fleet-sa-token
38+ name : gke-fleet-sa-token # a secret that its access token will be dumped to
3939 namespace : gke-fleet
4040---
4141apiVersion : deployments.plural.sh/v1alpha1
4242kind : Project
4343metadata :
4444 name : gke-fleet
45- annotations :
46- config.kubernetes.io/depends-on : deployments.plural.sh/ServiceAccount/gke-fleet
4745spec :
4846 name : gke-fleet
4947 description : resources for managing the gke-fleet fleet
5048 bindings :
5149 write :
52- - userEmail : gke-fleet-fleet@plural.sh
50+ - userEmail : gke-fleet-fleet@plural.sh # adds the user as a writer for the project (by email)
5351---
5452apiVersion : deployments.plural.sh/v1alpha1
5553kind : NamespaceCredentials
5654metadata :
5755 name : gke-fleet
5856spec :
5957 namespaces :
60- - gke-fleet
58+ - gke-fleet # the namespace we want gke-fleet crs to live in
6159 secretRef :
62- name : gke-fleet-sa-token
60+ name : gke-fleet-sa-token # the token the operator will use in that namespace, ensuring permissions are only scoped to the project
6361 namespace : gke-fleet
6462` ` `
6563
You can’t perform that action at this time.
0 commit comments