distribution
by Helm
A Helm chart for JFrog Distribution
About this chart
JFrog Distribution Helm Chart
[!NOTE] See the JFrog Helm Charts README for important notices including the container image migration.
IMPORTANT! Our Helm Chart docs have moved to our main documentation site. Below you will find the basic instructions for installing Distribution. For all other information, refer to Installing Distribution.
Prerequisites Details
- Kubernetes 1.23+
Chart Details
This chart does the following:
- Deploy PostgreSQL database
- Deploy distribution
Note: From Distribution 2.37.0, Redis is no longer included in this chart. For more information, see the Distribution 2.37.0 release notes.
Requirements
- A running Kubernetes cluster
- Dynamic storage provisioning enabled
- Default StorageClass set to allow services using the default StorageClass for persistent storage
- A running Artifactory Enterprise Plus
- Kubectl installed and setup to use the cluster
- Helm v3 installed
Installing the Chart
Add the JFrog Helm Repository
Before installing JFrog helm charts, you will need to add the JFrog helm repository to your Helm client.
helm repo add jfrog https://charts.jfrog.io
helm repo update
Artifactory Connection Details
To connect Distribution to your Artifactory installation, you will need to use a join key. To learn how to retrieve the connection details of your Artifactory installation (join key and JFrog URL) from the UI, see https://www.jfrog.com/confluence/display/JFROG/General+Security+Settings#GeneralSecuritySettings-ViewingtheJoinKey.
Initiate Installation
Provide a join key and the JFrog URL as a parameter to the Distribution chart installation:
helm upgrade --install distribution --set distribution.joinKey=<YOUR_PREVIOUSLY_RETIREVED_JOIN_KEY> \
--set distribution.jfrogUrl=<YOUR_PREVIOUSLY_RETIREVED_BASE_URL> jfrog/distribution --namespace distribution --create-namespace
Apply Sizing configurations to the Chart
To apply the chart with recommended sizing configurations : For small configurations :
helm upgrade --install distribution jfrog/distribution -f sizing/distribution-small.yaml --namespace distribution --create-namespace
Upgrading to Distribution 2.37.0 or Later
From Distribution 2.37.0, Redis has been removed from the chart. For more details, please refer to the Distribution 2.37.0 release notes.
When upgrading from a version prior to 2.37.0, a pre-upgrade webhook (distribution-upgrade-hook) is automatically executed. This webhook handles the migration by deleting the existing StatefulSet with --cascade=orphan (preserving running pods) to allow the updated spec — which no longer includes Redis — to be applied cleanly.
In most cases, no manual intervention is required. However, if the hook job fails (for example, due to RBAC permissions or image pull issues), you may need to manually delete the StatefulSet before retrying the upgrade:
kubectl delete statefulset <release-name>-distribution --cascade=orphan -n <namespace>
Uninstalling Distribution
IMPORTANT: Uninstalling distribution using the commands below will also delete your data volumes and you will lose all of your data. You must back up all this information before deletion.
To uninstall Distribution use the following command.
helm uninstall distribution --namespace distribution && sleep 90 && kubectl delete pvc -l app=distribution
Deploy distribution with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has distribution 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 chartdistribution is pinned at v102.52.16 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