This repository contains the Kubernetes manifests and configurations for deploying OpenCollab infrastructure components using Argo CD.
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.
To deploy the infrastructure, follow these steps:
- Install the OKD GitOps Operator in your cluster through the Operator Hub (if it hasn't already by the administrator).
- Create a new Argo CD application using the
argo-cd-apps/apps-of-appsdirectory as the source.- Use the correct overlay for your environment.
- Wait for the applications to sync and deploy all the components defined in the
componentsdirectory.
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-claimscreates the ODF ObjectBucketClaims openDesk stores its objects in, and lets the repo server read them.opendeskis 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:
- The
opencollab-opendesknamespace, labelledargocd.argoproj.io/managed-by=opencollab. - 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).
- A Secret
opendeskinopencollabwithmaster-password(every openDesk password is derived from it) and optionallysmtp-password, read by the plugin sidecar. - Argo CD access to the private opendesk repo through a GitHub App installed on the
opencollaborationorg, with read-only Contents (and Metadata) permission. Argo uses it through a credential template forhttps://github.com/opencollaboration, so the openDesk apps use HTTPS repo URLs. - DNS for
opencollaboration.devand*.opencollaboration.devpointing at the haproxy-ingress LoadBalancer (haproxy.prod1.man1.ziax.ltd). - A Secret
cloudflare-api-token(keyapi-token) inopencollab-opendesk: a Cloudflare API token with Zone:DNS:Edit and Zone:Zone:Read onopencollaboration.dev, which theopendesk-cloudflareIssuer (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.