Skip to content

cloudogu/gop-multi-tenant-shared-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

gop-multi-tenant-shared-example

Deploy an IDP to be shared by multiple tenants.

See also

Running locally

Simple start

Only deploy one static app (PodInfo) per Tenant

VERSION='0.12.1'

bash <(curl -s "https://raw.githubusercontent.com/cloudogu/gitops-playground/$VERSION/scripts/init-cluster.sh")

helm upgrade gop -i oci://ghcr.io/cloudogu/gop-helm --version 0.4.0 -n gop --kube-context k3d-gitops-playground --create-namespace --values - <<EOF
image:
  tag: ${VERSION}
config:
  application:
    baseUrl: http://localhost
  features:
    argocd:
      active: true
    ingressNginx:
      active: true
  content:
    repos:
      - url: 'https://github.com/cloudogu/gop-multi-tenant-shared-example'
        path: repos
        ref: main
        templating: true
        type: FOLDER_BASED
        overwriteMode: UPGRADE
    namespaces:
      - tenant1-production
      - tenant1-staging
      - tenant2
EOF

After deployment is finished, you can access the tenant cluster via

Credentials are admin/admin.

More complex example

If you want to include Building your own app and deploying it there is a more complex example as well inlcuding Jenkins and a Regsitry.

VERSION='0.12.1'

bash <(curl -s "https://raw.githubusercontent.com/cloudogu/gitops-playground/$VERSION/scripts/init-cluster.sh")

helm upgrade gop -i oci://ghcr.io/cloudogu/gop-helm --version 0.4.0 -n gop --kube-context k3d-gitops-playground --create-namespace --values - <<EOF
image:
  tag: ${VERSION}
config:
$(sed 's/^/  /' gop-config.yaml)
EOF

Contributors