bitbucket

by Atlassian

Helm chartv2.0.22App 10.2.10Verified publisherOfficial

A chart for installing Bitbucket Data Center on Kubernetes

About this chart

bitbucket

A chart for installing Bitbucket Data Center on Kubernetes

Homepage: https://atlassian.github.io/data-center-helm-charts/

Source Code

Requirements

Kubernetes: >=1.21.x-0

RepositoryNameVersion
https://atlassian.github.io/data-center-helm-chartscommon1.2.7
https://opensearch-project.github.io/helm-chartsopensearch2.19.0

Values

KeyTypeDefaultDescription
additionalConfigMapslist[]Create additional ConfigMaps with given names, keys and content. Ther Helm release name will be used as a prefix for a ConfigMap name, fileName is used as subPath
additionalContainerslist[]Additional container definitions that will be added to all Bitbucket pods
additionalFileslist[]Additional existing ConfigMaps and Secrets not managed by Helm that should be mounted into service container. Configuration details below (camelCase is important!): 'name' - References existing ConfigMap or secret name. 'type' - 'configMap' or 'secret' 'key' - The file name. 'mountPath' - The destination directory in a container. VolumeMount and Volumes are added with this name and index position, for example; custom-config-0, keystore-2
additionalHostslist[]Additional host aliases for each pod, equivalent to adding them to the /etc/hosts file. https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
additionalInitContainerslist[]Additional initContainer definitions that will be added to all Bitbucket pods
additionalLabelsobject{}Additional labels that should be applied to all resources
affinityobject{}Standard Kubernetes affinities that will be applied to all Bitbucket pods Due to the performance requirements it is highly recommended running all Bitbucket pods in the same availability zone as your dedicated NFS server. To achieve this, you can define affinity and podAffinity rules that will place all pods into the same zone, and therefore minimise the real distance between the application pods and the shared storage. More specific documentation can be found in the official Affinity and Anti-affinity documentation: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity This is an example on how to ensure the pods are in the same zone as NFS server that is labeled with role=nfs-server: podAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: role operator: In values: - nfs-server # needs to be the same value as NFS server deployment topologyKey: topology.kubernetes.io/zone
atlassianAnalyticsAndSupport.analytics.enabledbooltrueMount ConfigMap with selected Helm chart values as a JSON which DC products will read and send analytics events to Atlassian data pipelines
atlassianAnalyticsAndSupport.helmValues.enabledbooltrueMount ConfigMap with selected Helm chart values as a YAML file which can be optionally including to support.zip
bitbucket.additionalAnnotationsobject{}Defines additional annotations to the Bitbucket StateFulSet. This might be required when deploying using a GitOps approach
bitbucket.additionalBundledPluginslist[]Specifies a list of additional Bitbucket plugins that should be added to the Bitbucket container. Note plugins installed via this method will appear as bundled plugins rather than user plugins. These should be specified in the same manner as the 'additionalLibraries' property. Additional details: https://atlassian.github.io/data-center-helm-charts/examples/external_libraries/EXTERNAL_LIBS/ NOTE: only .jar files can be loaded using this approach. OBR's can be extracted (unzipped) to access the associated .jar An alternative to this method is to install the plugins via "Manage Apps" in the product system administration UI.
bitbucket.additionalCertificatesobject{"customCmd":null,"initContainer":{"resources":{},"securityContext":{}},"secretList":[],"secretName":null}Certificates to be added to Java truststore. Provide reference to a secret that contains the certificates
bitbucket.additionalCertificates.customCmdstringnilCustom command to be executed in the init container to import certificates
bitbucket.additionalCertificates.initContainer.resourcesobject{}Resources allocated to the import-certs init container
bitbucket.additionalCertificates.initContainer.securityContextobject{}Custom SecurityContext for the import-certs init container
bitbucket.additionalCertificates.secretListlist[]A list of secrets with their respective keys holding certificates to be added to the Java truststore. It is mandatory to specify which keys from secret data need to be mounted as files to the init container.
bitbucket.additionalCertificates.secretNamestringnilName of the Kubernetes secret with certificates in its data. All secret keys in the secret data will be treated as certificates to be added to Java truststore. If defined, this takes precedence over secretList.
bitbucket.additionalEnvironmentVariableslist[]Defines any additional environment variables to be passed to the Bitbucket container. See https://hub.docker.com/r/atlassian/bitbucket for supported variables.
bitbucket.additionalJvmArgslist[]Specifies a list of additional arguments that can be passed to the Bitbucket JVM, e.g. system properties.
bitbucket.additionalLibrarieslist[]Specifies a list of additional Java libraries that should be added to the Bitbucket container. Each item in the list should specify the name of the volume that contains the library, as well as the name of the library file within that volume's root directory. Optionally, a subDirectory field can be included to specify which directory in the volume contains the library file. Additional details: https://atlassian.github.io/data-center-helm-charts/examples/external_libraries/EXTERNAL_LIBS/
bitbucket.additionalPortslist[]Defines any additional ports for the Bitbucket container.
bitbucket.additionalVolumeClaimTemplateslist[]Defines additional volumeClaimTemplates that should be applied to the Bitbucket pod. Note that this will not create any corresponding volume mounts; those needs to be defined in bitbucket.additionalVolumeMounts
bitbucket.additionalVolumeMountslist[]Defines any additional volumes mounts for the Bitbucket container. These can refer to existing volumes, or new volumes can be defined via 'volumes.additional'.
bitbucket.applicationModestring"default"Application Mode This can be either 'default' or 'mirror'
bitbucket.clustering.enabledboolfalseSet to 'true' if Data Center clustering should be enabled This will automatically configure cluster peer discovery between cluster nodes.
bitbucket.clustering.group.nameSecretKeystring"name"The key in the Kubernetes Secret that contains the Hazelcast group name.
bitbucket.clustering.group.passwordSecretKeystring"password"The key in the Kubernetes Secret that contains the Hazelcast group password.
bitbucket.clustering.group.secretNamestringnilfrom-literal=password=' https://kubernetes.io/docs/concepts/configuration/secret/#opaque-secrets If no secret is specified, a default group name will be used and a random password will be generated during installation.
bitbucket.containerSecurityContextobject{}Standard K8s field that holds security configurations that will be applied to a container. https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
bitbucket.displayNamestringnilSet the display name of the Bitbucket instance. Note that this value is only used during installation and changing the value during an upgrade has no effect.
bitbucket.elasticSearch.baseUrlstringnilThe base URL of the external Elasticsearch instance to be used, for example: http://elasticsearch-master..svc.cluster.local:9200 If this is defined, then Bitbucket will disable its internal Elasticsearch instance.
bitbucket.elasticSearch.credentials.passwordSecretKeystring"password"The key in the Kubernetes Secret that contains the Elasticsearch password.
bitbucket.elasticSearch.credentials.secretNamestringnilfrom-literal=password=' https://kubernetes.io/docs/concepts/configuration/secret/#opaque-secrets
bitbucket.elasticSearch.credentials.usernameSecretKeystring"username"The key in the Kubernetes Secret that contains the Elasticsearch username.
bitbucket.hazelcastService.annotationsobject{}Additional annotations to apply to the Hazelcast Service
bitbucket.hazelcastService.enabledboolfalseEnable or disable an additional Hazelcast service that Bitbucket nodes can use to join a cluster. It is recommended to create a separate Hazelcast service if the Bitbucket service uses a LoadBalancer type (e.g., NLB), ensuring that the Hazelcast port is not exposed at all.
bitbucket.hazelcastService.portint5701The port on which the Bitbucket K8s Hazelcast Service will listen
bitbucket.hazelcastService.typestring"ClusterIP"The type of the Hazelcast K8s service to use for Bitbucket
bitbucket.license.secretKeystring"license-key"The key in the K8s Secret that contains the Bitbucket license key
bitbucket.license.secretNamestringnilThe name of the K8s Secret that contains the Bitbucket license key. If specified, then the license will be automatically populated during Bitbucket setup. Otherwise, it will need to be provided via the browser after initial startup. An Example of creating a K8s secret for the license below: 'kubectl create secret generic --from-literal=license-key= https://kubernetes.io/docs/concepts/configuration/secret/#opaque-secrets
bitbucket.livenessProbe.customProbeobject{}Custom livenessProbe to override the default tcpSocket probe
bitbucket.livenessProbe.enabledboolfalseWhether to apply the livenessProbe check to pod.
bitbucket.livenessProbe.failureThresholdint12The number of consecutive failures of the Bitbucket container liveness probe before the pod fails liveness checks.
bitbucket.livenessProbe.initialDelaySecondsint60Time to wait before starting the first probe
bitbucket.livenessProbe.periodSecondsint5How often (in seconds) the Bitbucket container liveness probe will run
bitbucket.livenessProbe.timeoutSecondsint1Number of seconds after which the probe times out
bitbucket.mesh.additionalAnnotationsobject{}Defines additional annotations to the Bitbucket Mesh StateFulSet. This might be required when deploying using a GitOps approach
bitbucket.mesh.additionalCertificatesobject{"customCmd":null,"initContainer":{"resources":{},"securityContext":{}},"secretList":[],"secretName":null}Certificates to be added to Java truststore. Provide reference to a secret that contains the certificates
bitbucket.mesh.additionalCertificates.customCmdstringnilCustom command to be executed in the init container to import certificates
bitbucket.mesh.additionalCertificates.initContainer.resourcesobject{}Resources allocated to the import-certs init container
bitbucket.mesh.additionalCertificates.initContainer.securityContextobject{}Custom SecurityContext for the import-certs init container
bitbucket.mesh.additionalCertificates.secretListlist[]A list of secrets with their respective keys holding certificates to be added to the Java truststore. It is mandatory to specify which keys from secret data need to be mounted as files to the init container.
bitbucket.mesh.additionalCertificates.secretNamestringnilName of the Kubernetes secret with certificates in its data. All secret keys in the secret data will be treated as certificates to be added to Java truststore. If defined, this takes precedence over secretList.
bitbucket.mesh.additionalEnvironmentVariablesobject{}Defines any additional environment variables to be passed to the Bitbucket mesh containers.
bitbucket.mesh.additionalFilesstringnilAdditional existing ConfigMaps and Secrets not managed by Helm that should be mounted into service container
bitbucket.mesh.additionalInitContainersobject{}Additional initContainer definitions that will be added to all Bitbucket pods
bitbucket.mesh.additionalJvmArgslist[]Specifies a list of additional arguments that can be passed to the Bitbucket Mesh JVM, e.g. system properties.
bitbucket.mesh.affinityobject{}Standard Kubernetes affinities that will be applied to all Bitbucket mesh pods
bitbucket.mesh.enabledboolfalseEnable Bitbucket Mesh. See: https://confluence.atlassian.com/bitbucketserver/bitbucket-mesh-1128304351.html
bitbucket.mesh.hostNamespacesobject{}Share host namespaces which may include hostNetwork, hostIPC, and hostPID
bitbucket.mesh.imageo

Deploy bitbucket with OpenTenant

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