jira-software

by mox

Helm chartv2.7.1App 9.7.2Verified publisher

Issue tracker and agile project management platform

About this chart

Atlassian Jira Software

Jira is a tool used for bug tracking, issue tracking, and project management. It is 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/jira-software

Introduction

This chart bootstraps a Jira Software 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

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/jira-software

The command deploys Jira software 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 Jira software with PostgreSQL enabled for more details.

PostgreSQL enabled

This chart deploys by default a bitnami PostgreSQL instance.

Install Jira software 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 Jira.

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/jira-software

Uninstall Jira software 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 Jira software 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 Jira Software 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 jira-software.fullname (will prepend the release name)nil
fullnameOverrideString to fully override jira-software.fullnamenil

Jira parameters

ParameterDescriptionDefault
image.registryJira Software Image registrydocker.io
image.repositoryJira Software Image nameatlassian/jira-softwarer
image.tagJira Software Image tag{TAG_NAME}
image.pullPolicyJira Software 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 ID2001
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
envVarsJira Software environment variables that will be injected in the ConfigMap{}
extraEnvEnable additional Jira container environment variables, passed as stringnil

Dependencies

Jira Software 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 stringjira-software-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 serverjira-software-db
databaseConnection.userJira database userjirauser
databaseConnection.passwordJira database password"CHANGEME"
databaseConnection.existingSecret.nameSecret name that contains the database connection passwordnil
databaseConnection.existingSecret.keySecret key of database connection passwordnil
databaseConnection.databaseJira database namejiradb
databaseConnection.langEncoding used for lc_ctype and lc_collate in case the database needs to be createdC
databaseConnection.portJira database server port5432
databaseConnection.urlPrefixJira JDBC Prefix URLjdbc:postgresql
databaseConnection.databaseDriverJira Database driverorg.postgresql.Driver
databaseConnection.typeJira database server typepostgres72
databaseConnection.schemaNameDatabase schema name (Note: it depends on the databaseConnection.type used)public
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 HTT

Deploy jira-software with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has jira-software 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 chartjira-software is pinned at v2.7.1 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