crowd
by mox
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
| Parameter | Description | Default |
|---|---|---|
global.postgresql.postgresqlPassword | PostgreSQL admin password (overrides postgresql.postgresqlPassword) | nil |
global.postgresql.replicationPassword | Replication user password (overrides postgresql.replication.password) | nil |
Common parameters
| Parameter | Description | Default |
|---|---|---|
nameOverride | String to partially override crowd.fullname (will prepend the release name) | nil |
fullnameOverride | String to fully override crowd.fullname | nil |
Crowd parameters
| Parameter | Description | Default |
|---|---|---|
image.registry | Crowd Server Image registry | docker.io |
image.repository | Crowd Server Image name | atlassian/crowd |
image.tag | Crowd Server Image tag | {TAG_NAME} |
image.pullPolicy | Crowd Server Image pull policy | IfNotPresent |
image.pullSecrets | Secrets to pull an image from a private Docker registry or repository | {} |
podSecurityContext.fsGroup | All processes of the container are also part of this supplementary group ID | 2004 |
caCerts.secret | Secret that will be imported into the keystore using keytool | nil |
caCerts.storepass | Keytool store password (storepass parameter) | nil |
caCertsEnv | Any environment variable you would like to pass on to the OpenJDK init container | nil |
envVars | Crowd Server environment variables that will be injected in the ConfigMap | {} |
extraEnv | Enable additional Crowd Server container environment variables, passed as string | nil |
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.
| Parameter | Description | Default |
|---|---|---|
postgresql.enabled | Whether to use the PostgreSQL chart | true |
postgresql.image.registry | PostgreSQL image registry | docker.io |
postgresql.image.repository | PostgreSQL image repository | bitnami/postgresql |
postgresql.image.tag | PostgreSQL image tag | 11 |
postgresql.image.pullPolicy | PostgreSQL image pull policy | IfNotPresent |
postgresql.fullnameOverride | String to fully override postgresql.fullname template with a string | crowd-db |
postgresql.persistence.size | PVC Storage Request for PostgreSQL volume | 8Gi |
postgresql.postgresqlPassword | PostgreSQL user password | random 10 character string |
postgresql.initdbScriptsConfigMap | ConfigMap with the initdb scripts (Note: Overrides initdbScripts), evaluated as template | .Release.Name.db-helper-cm |
postgresql.initdbScriptsSecret | Secret with initdb scripts that contain sensitive information | nil |
databaseConnection.host | Hostname of the database server. See Database connection | crowd-db |
databaseConnection.user | Crowd database user. See Database connection | crowduser |
databaseConnection.password | Crowd database password.See Database connection | "CHANGEME" |
databaseConnection.existingSecret.name | Secret name that contains the database connection password | nil |
databaseConnection.existingSecret.key | Secret key of database connection password | nil |
databaseConnection.database | Crowd database name. See Database connection | crowddb |
databaseConnection.lang | Encoding used for lc_ctype and lc_collate in case the database needs to be created | C |
databaseDrop.enabled | Enable database removal. See remove existing database | false |
databaseDrop.dropIt | Confirm database removal if set to yes | no |
Deployment parameters
| Parameter | Description | Default |
|---|---|---|
replicaCount | Number of replicas for this deployment | 1 |
securityContext | Container security context options | {} |
hostAliases | Host aliases that are added to the pods | [] |
resources | CPU/Memory resource requests/limits | Memory: 1Gi, CPU: 500m |
nodeSelector | Node labels for pod assignment | {} |
tolerations | List of node taints to tolerate | [] |
affinity | Map of node/pod affinity labels | {} |
podAnnotations | Map of annotations to add to the pods | {} |
extraVolumeMounts | Additional volume mounts to add to the pods | [] |
extraVolumes | Additional volumes to add to the pods | [] |
schedulerName | Use an alternate scheduler, eg. stork | "" |
readinessProbe | Readiness probe values | {} |
readinessProbe.httpGet.path | Readiness probe HTTP GET request (Note: Crowd handler is /status) | nil |
readinessProbe.httpGet.port | Readiness probe port (Note: Crowd listens on internal port 8095) | nil |
readinessProbe.initialDelaySeconds | Delay before readiness probe is initiated | nil |
readinessProbe.periodSeconds | How often to perform the probe | nil |
readinessProbe.failureThreshold | Minimum consecutive failures for the probe to be considered failed after having succeeded | nil |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcrowd is pinned at v2.4.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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