Skip to content
opencollaborationPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

55 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCollab Infrastructure Deployments

This repository contains the Kubernetes manifests and configurations for deploying OpenCollab infrastructure components using Argo CD.

Structure

  • argo-cd-apps/: Contains the Argo CD applications that manage the deployment of the infrastructure components.
    • argo-cd-apps/apps-of-apps/: Contains the main Argo CD application that deploys all other applications.
  • components/: Contains the individual Kubernetes manifests for each infrastructure component.

Deploying the Infrastructure

To deploy the infrastructure, follow these steps:

  1. Install the OKD GitOps Operator in your cluster through the Operator Hub (if it hasn't already by the administrator).
  2. Create a new Argo CD application using the argo-cd-apps/apps-of-apps directory as the source.
    1. Use the correct overlay for your environment.
  3. Wait for the applications to sync and deploy all the components defined in the components directory.

openDesk

openDesk is deployed from its helmfile in https://github.com/opencollaboration/opendesk.git by two applications in argo-cd-apps/base/opendesk, rendered by the helmfile Config Management Plugin that runs as a sidecar of the repo server (components/argocd/base):

  • opendesk-object-bucket-claims creates the ODF ObjectBucketClaims openDesk stores its objects in, and lets the repo server read them.
  • opendesk is everything else. Rendering it reads the claims' bucket names and credentials, so it reports a ComparisonError until the claims are Bound, then syncs.

Not managed here and needed first:

  1. The opencollab-opendesk namespace, labelled argocd.argoproj.io/managed-by=opencollab.
  2. The SCCs and ConfigMaps the openDesk OpenShift patch expects to be provided out of band (see its commit message and the comments in its values files).
  3. A Secret opendesk in opencollab with master-password (every openDesk password is derived from it) and optionally smtp-password, read by the plugin sidecar.
  4. Argo CD access to the private opendesk repo through a GitHub App installed on the opencollaboration org, with read-only Contents (and Metadata) permission. Argo uses it through a credential template for https://github.com/opencollaboration, so the openDesk apps use HTTPS repo URLs.
  5. DNS for opencollaboration.dev and *.opencollaboration.dev pointing at the haproxy-ingress LoadBalancer (haproxy.prod1.man1.ziax.ltd).
  6. A Secret cloudflare-api-token (key api-token) in opencollab-opendesk: a Cloudflare API token with Zone:DNS:Edit and Zone:Zone:Read on opencollaboration.dev, which the opendesk-cloudflare Issuer (components/opendesk/production) uses for the wildcard certificate's DNS-01 challenge.

scripts/bootstrap-opendesk.sh creates items 3 and 4 from the App's ID and private key.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages