capsule icon indicating copy to clipboard operation
capsule copied to clipboard

Document how to use Capsule with GCP

Open maxgio92 opened this issue 3 years ago • 2 comments

Describe the feature

This issue tracks the work to document how to use Capsule in a GCP environment with GKE and GCP IAM.

What would the new user story look like?

As an adopter I'd like to understand how to setup GCP and Kubernetes resources to make Capsule work in GKE with Tenant users as Google Users.

maxgio92 avatar Jul 28 '22 17:07 maxgio92

This is a work in progress

  1. Create/update GKE cluster enabling the Google Groups for Kubernetes RBAC GKE feature
  2. Create a GCP IAM Group:
  • email: gke-security-group@<domain>
  • name: gke-security-group
  1. Create a GCP IAM Group that will be a Capsule Group, e.g.:
  1. Add the capsule-group GCP IAM Group above as a member the gke-security-group GCP IAM Group
  2. Add the Google Users of the Capsule Tenant Owners as members of the capsule-group GCP IAM Group
  3. Create a GCP IAM Role to enable the Capsule Tenant Owner Google Users to authenticate to GKE (and Kubernetes) with permissions:
  • containers.clusters.get
  • containers.clusters.GetCredentials
  1. Assign GCP IAM Role above to Tenant Owner IAM User
  2. Create/update the used CapsuleConfiguration with as Capsule group the email of the GCP IAM Group capsule-group (i.e. [email protected])

maxgio92 avatar Jul 28 '22 17:07 maxgio92