confluence-server
by mox
Wiki collaboration platform
About this chart
Atlassian Confluence Server
Confluence is a collaboration software program developed and published by the australian software company Atlassian.
TL;DR;
All commands below are Helm v3
$ helm repo add mox https://helm.mox.sh
$ helm repo update
$ helm install my-release mox/confluence-server
Introduction
This chart bootstraps a Confluence 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)
- At least 1GB Memory
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/confluence-server
The command deploys Confluence 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 Confluence server with PostgreSQL enabled for more details.
PostgreSQL enabled
This chart deploys by default a bitnami PostgreSQL instance.
Install Confluence 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 Confluence.
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/confluence-server
Uninstall Confluence 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 Confluence 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 Confluence 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 confluence-server.fullname (will prepend the release name) | nil |
fullnameOverride | String to fully override confluence-server.fullname | nil |
Confluence parameters
| Parameter | Description | Default |
|---|---|---|
image.registry | Confluence Server Image registry | docker.io |
image.repository | Confluence Server Image name | atlassian/confluence-server |
image.tag | Confluence Server Image tag | {TAG_NAME} |
image.pullPolicy | Confluence 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 | 2002 |
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 | Confluence Server environment variables that will be injected in the ConfigMap | {} |
extraEnv | Enable additional Confluence Server container environment variables, passed as string | nil |
Dependencies
Confluence 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 | 10 |
postgresql.image.pullPolicy | PostgreSQL image pull policy | IfNotPresent |
postgresql.fullnameOverride | String to fully override postgresql.fullname template with a string | confluence-server-db |
postgresql.persistence.size | PVC Storage Request for PostgreSQL volume | nil |
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 | confluence-server-db |
databaseConnection.user | Confluence database user | confluenceuser |
databaseConnection.password | Confluence database password | "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 | Confluence database name | confluencedb |
databaseConnection.lang | Encoding used for lc_ctype and lc_collate in case the database needs to be created | C |
databaseConnection.port | Confluence database server port | 5432 |
databaseConnection.type | Confluence database server type | postgresql |
databaseConnection.jdbcUrl | Override JDBC URL | nil ` |
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 | {} |
priorityClassName | Pod priority class name | nil |
podAnnotations | Map of annotations to add to the pods | {} |
podLabels | Map of labels 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 | {} |
Deploy confluence-server with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has confluence-server 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 chartconfluence-server is pinned at v3.7.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