crowd

by mox

Helm chartv2.4.3App 5.2.2Verified publisher

Centralized identity management

About this chart

Atlassian Crowd

Crowd is the directory service solution from Atlassian that provides Single sign-on (SSO) and OpenID compatibility.

TL;DR;

All commands below are Helm v3

$ helm repo add mox https://helm.mox.sh
$ helm repo update
$ helm install my-release mox/crowd

Introduction

This chart bootstraps a Crowd server deployment on a Kubernetes cluster using the Helm package manager.

It is available on:

Prerequisites

  • Kubernetes 1.12+
  • Helm 2.11+ or Helm 3.0-beta3+
  • PV provisioner support in the underlying infrastructure (Only when persisting data)

Installing the Chart

This chart is not available in the Helm repositories. To install the chart first you need to add this Helm repository:

$ helm repo add mox https://helm.mox.sh
$ helm repo update

To deploy it with the release name my-release run:

$ helm install my-release mox/crowd

The command deploys Crowd server on the Kubernetes cluster in the default configuration. The configuration parameters section lists the parameters that can be configured during installation.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm uninstall my-release

The command removes (almost) all the Kubernetes components associated with the chart and deletes the release. See PostgreSQL enabled for more details.

Upgrading the Chart

To upgrade the my-release deployment when there was no PostgreSQL deployed just run:

$ helm upgrade my-release

Otherwise, see Upgrade Crowd server with PostgreSQL enabled for more details.

Database connection

The values databaseConnection.* are only used to create a user and a database for Crowd if PostgreSQL is enabled. During the Setup Wizard is still necessary to configure the database connection, as no connection URL is documented here.

PostgreSQL enabled

This chart deploys by default a bitnami PostgreSQL instance.

Install Crowd server with PostgreSQL enabled

PostgreSQL Chart from bitnami generates a random password if we do not specify one. Random or not, keep the password safe because it will be needed when upgrading Crowd.

To specify a password:

$ helm install my-release \
     --set postgresql.postgresqlPassword=[POSTGRESQL_PASSWORD] \
     --set postgresql.replication.password=[REPLICATION_PASSWORD] # in case Replication is enabled \
     mox/crowd

Uninstall Crowd server with PostgreSQL enabled

The Persistent Volume Claim (PVC) of postgres will NOT be automatically deleted. It needs to be removed manually:

$ kubectl delete pvc -l app.kubernetes.io/instance=my-release

Upgrade Crowd server with PostgreSQL enabled

From bitnami/postgresql:

It's necessary to specify the existing passwords while performing an upgrade to ensure the secrets are not updated with invalid randomly generated passwords.

We upgrade the my-release deployment by running:

$ helm upgrade my-release \
     --set postgresql.postgresqlPassword=[POSTGRESQL_PASSWORD] \
     --set postgresql.replication.password=[REPLICATION_PASSWORD] # in case Replication is enabled

Parameters

The following tables lists the configurable parameters of the Crowd Server chart and their default values.

Global parameters

ParameterDescriptionDefault
global.postgresql.postgresqlPasswordPostgreSQL admin password (overrides postgresql.postgresqlPassword)nil
global.postgresql.replicationPasswordReplication user password (overrides postgresql.replication.password)nil

Common parameters

ParameterDescriptionDefault
nameOverrideString to partially override crowd.fullname (will prepend the release name)nil
fullnameOverrideString to fully override crowd.fullnamenil

Crowd parameters

ParameterDescriptionDefault
image.registryCrowd Server Image registrydocker.io
image.repositoryCrowd Server Image nameatlassian/crowd
image.tagCrowd Server Image tag{TAG_NAME}
image.pullPolicyCrowd Server Image pull policyIfNotPresent
image.pullSecretsSecrets to pull an image from a private Docker registry or repository{}
podSecurityContext.fsGroupAll processes of the container are also part of this supplementary group ID2004
caCerts.secretSecret that will be imported into the keystore using keytoolnil
caCerts.storepassKeytool store password (storepass parameter)nil
caCertsEnvAny environment variable you would like to pass on to the OpenJDK init containernil
envVarsCrowd Server environment variables that will be injected in the ConfigMap{}
extraEnvEnable additional Crowd Server container environment variables, passed as stringnil

Dependencies

Crowd requires a database. It can be either deployed as dependency using PostgreSQL subchart or configured a database connection to an external server. By default a PostgreSQL will be deployed and a user and a database will be created using the databaseConnection values.

ParameterDescriptionDefault
postgresql.enabledWhether to use the PostgreSQL charttrue
postgresql.image.registryPostgreSQL image registrydocker.io
postgresql.image.repositoryPostgreSQL image repositorybitnami/postgresql
postgresql.image.tagPostgreSQL image tag11
postgresql.image.pullPolicyPostgreSQL image pull policyIfNotPresent
postgresql.fullnameOverrideString to fully override postgresql.fullname template with a stringcrowd-db
postgresql.persistence.sizePVC Storage Request for PostgreSQL volume8Gi
postgresql.postgresqlPasswordPostgreSQL user passwordrandom 10 character string
postgresql.initdbScriptsConfigMapConfigMap with the initdb scripts (Note: Overrides initdbScripts), evaluated as template.Release.Name.db-helper-cm
postgresql.initdbScriptsSecretSecret with initdb scripts that contain sensitive informationnil
databaseConnection.hostHostname of the database server. See Database connectioncrowd-db
databaseConnection.userCrowd database user. See Database connectioncrowduser
databaseConnection.passwordCrowd database password.See Database connection"CHANGEME"
databaseConnection.existingSecret.nameSecret name that contains the database connection passwordnil
databaseConnection.existingSecret.keySecret key of database connection passwordnil
databaseConnection.databaseCrowd database name. See Database connectioncrowddb
databaseConnection.langEncoding used for lc_ctype and lc_collate in case the database needs to be createdC
databaseDrop.enabledEnable database removal. See remove existing databasefalse
databaseDrop.dropItConfirm database removal if set to yesno

Deployment parameters

ParameterDescriptionDefault
replicaCountNumber of replicas for this deployment1
securityContextContainer security context options{}
hostAliasesHost aliases that are added to the pods[]
resourcesCPU/Memory resource requests/limitsMemory: 1Gi, CPU: 500m
nodeSelectorNode labels for pod assignment{}
tolerationsList of node taints to tolerate[]
affinityMap of node/pod affinity labels{}
podAnnotationsMap of annotations to add to the pods{}
extraVolumeMountsAdditional volume mounts to add to the pods[]
extraVolumesAdditional volumes to add to the pods[]
schedulerNameUse an alternate scheduler, eg. stork""
readinessProbeReadiness probe values{}
readinessProbe.httpGet.pathReadiness probe HTTP GET request (Note: Crowd handler is /status)nil
readinessProbe.httpGet.portReadiness probe port (Note: Crowd listens on internal port 8095)nil
readinessProbe.initialDelaySecondsDelay before readiness probe is initiatednil
readinessProbe.periodSecondsHow often to perform the probenil
readinessProbe.failureThresholdMinimum consecutive failures for the probe to be considered failed after having succeedednil

Deploy crowd with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has crowd on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcrowd is pinned at v2.4.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply