phabricator

by joaquinito2051

Helm chartv11.0.26App 2021.26.0

Collection of open source web applications that help software companies build better software.

About this chart

Phabricator

Phabricator is a collection of open source web applications that help software companies build better software. Phabricator is built by developers for developers. Every feature is optimized around developer efficiency for however you like to work. Code Quality starts with an effective collaboration between team members.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
$ helm install my-release bitnami-azure/phabricator

Introduction

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

It also packages the Bitnami MariaDB chart which is required for bootstrapping a MariaDB deployment for the database requirements of the Phabricator application.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This chart has been tested to work with NGINX Ingress, cert-manager, fluentd and Prometheus on top of the BKPR.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.1.0
  • PV provisioner support in the underlying infrastructure
  • ReadWriteMany volumes for deployment scaling

Installing the Chart

To install the chart with the release name my-release:

$ helm install my-release bitnami-azure/phabricator

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

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
nameOverrideString to partially override common.names.fullname template (will maintain the release name)""
fullnameOverrideString to fully override common.names.fullname template""
commonLabelsAdd labels to all the deployed resources{}
commonAnnotationsAdd annotations to all the deployed resources{}
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
clusterDomainKubernetes Cluster Domaincluster.local
extraDeployExtra objects to deploy (value evaluated as a template)[]

Phabricator parameters

NameDescriptionValue
image.registryPhabricator image registrydocker.io
image.repositoryPhabricator image repositorybitnami/phabricator
image.tagPhabricator image tag (immutable tags are recommended)2021.26.0-debian-10-r11
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
image.debugSpecify if debug logs should be enabledfalse
phabricatorUsernamePhabricator admin useruser
phabricatorPasswordAdmin user password""
phabricatorEmailAdmin user email[email protected]
phabricatorFirstNameAdmin user first nameFirst Name
phabricatorLastNameAdmin user last nameLast Name
phabricatorHostPhabricator host to create application URLs""
phabricatorAlternateFileDomainPhabricator alternate domain to upload files""
phabricatorEnableHttpsConfigure Phabricator to build application URLs using httpstrue
phabricatorUseLFSConfigure Phabricator to use GIT Large File Storage (LFS)false
phabricatorGitSSHConfigure a self-hosted GIT repository with SSH authenticationfalse
phabricatorEnablePygmentsEnable syntax highlighting using Pygmentstrue
phabricatorSkipInstallSkip the initial bootstrapping for the applicationfalse
smtpHostSMTP mail delivery host""
smtpPortSMTP mail delivery port""
smtpUserSMTP mail delivery user""
smtpPasswordSMTP mail delivery password""
smtpProtocolSMTP mail delivery protocol [ssl, tls]""
commandOverride default container command (useful when using custom images)[]
argsOverride default container args (useful when using custom images)[]
extraEnvVarsAn array to add extra env vars[]
extraEnvVarsCMName of existing ConfigMap containing extra environment variables""
extraEnvVarsSecretName of existing Secret containing extra environment variables""

Phabricator deployment parameters

NameDescriptionValue
updateStrategy.typeStrategyTypeRollingUpdate
containerPortsPhabricator container ports to open{}
podSecurityContext.enabledEnable Phabricator pods' Security Contexttrue
podSecurityContext.fsGroupGroup ID for the volumes of the pod1001
containerSecurityContext.enabledEnable Phabricator containers' SecurityContexttrue
containerSecurityContext.runAsUserUser ID for the container1001
resources.limitsThe resources limits for the container{}
resources.requestsThe requested resources for the container{}
livenessProbe.enabledEnable livenessProbetrue
livenessProbe.pathRequest path for livenessProbe/auth/
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe180
livenessProbe.periodSecondsPeriod seconds for livenessProbe10
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
livenessProbe.failureThresholdFailure threshold for livenessProbe6
livenessProbe.successThresholdSuccess threshold for livenessProbe1
readinessProbe.enabledEnable readinessProbetrue
readinessProbe.pathRequest path for readinessProbe/auth/
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe30
readinessProbe.periodSecondsPeriod seconds for readinessProbe10
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe5
readinessProbe.failureThresholdFailure threshold for readinessProbe6
readinessProbe.successThresholdSuccess threshold for readinessProbe1
startupProbe.enabledEnable startupProbefalse
startupProbe.pathRequest path for startupProbe/auth/
startupProbe.initialDelaySecondsInitial delay seconds for startupProbe0
startupProbe.periodSecondsPeriod seconds for startupProbe10
startupProbe.timeoutSecondsTimeout seconds for startupProbe3
startupProbe.failureThresholdFailure threshold for startupProbe20
startupProbe.successThresholdSuccess threshold for startupProbe1
customLivenessProbeOverride default liveness probe{}
customReadinessProbeOverride default readiness probe{}
customStartupProbeCustom Startup probe for Phabricator{}
podLabelsExtra labels for Phabricator pods{}
podAnnotationsAnnotations for Phabricator pods{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
`nodeAffinityPre

Deploy phabricator with OpenTenant

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