grid
by Helm
A Helm chart for JFrog Grid
About this chart
JFrog Grid Helm Chart
IMPORTANT! Our Helm Chart docs have moved to our main documentation site. Below you will find the basic instructions for installing Grid. For all other information, refer to the JFrog Installation & Setup documentation.
Prerequisites Details
- Kubernetes 1.23+
Chart Details
This chart deploys JFrog Grid, a self-hosted service that connects JFrog platform services.
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
- 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 Grid to your Artifactory installation, you will need a join key and a master 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.
Avoid passing joinKey/masterKey directly via --set, since that exposes them in shell history and process listings. Instead, create a Kubernetes Secret up front and reference it by name:
kubectl create secret generic grid-keys \
--namespace grid \
--from-literal=join-key=<JOIN_KEY> \
--from-literal=master-key=<MASTER_KEY>
Initiate Installation
Platform Federation ships as part of this chart and is enabled by default, so global.masterKeySecretName/global.joinKeySecretName (which the subchart inherits) and global.database.url are also required unless you explicitly disable it with --set platform-federation.enabled=false.
helm upgrade --install grid \
--set jfrogUrl=<JFROG_URL> \
--set masterKeySecretName=grid-keys \
--set joinKeySecretName=grid-keys \
--set global.masterKeySecretName=grid-keys \
--set global.joinKeySecretName=grid-keys \
--set global.database.url=<POSTGRES_JDBC_URL> \
jfrog/grid --namespace grid --create-namespace
If you do not need Platform Federation, disable it instead of supplying the extra global.* values:
helm upgrade --install grid \
--set jfrogUrl=<JFROG_URL> \
--set masterKeySecretName=grid-keys \
--set joinKeySecretName=grid-keys \
--set platform-federation.enabled=false \
jfrog/grid --namespace grid --create-namespace
Apply Sizing Configurations to the Chart
The sizing files are values overlays and must be combined with the required values above (join/master key secret names, jfrogUrl, and, if Platform Federation is enabled, the global.* values and global.database.url):
# For small deployments:
helm upgrade --install grid jfrog/grid \
-f sizing/grid-small.yaml \
--set jfrogUrl=<JFROG_URL> \
--set masterKeySecretName=grid-keys \
--set joinKeySecretName=grid-keys \
--set platform-federation.enabled=false \
--namespace grid --create-namespace
# For medium deployments:
helm upgrade --install grid jfrog/grid \
-f sizing/grid-medium.yaml \
--set jfrogUrl=<JFROG_URL> \
--set masterKeySecretName=grid-keys \
--set joinKeySecretName=grid-keys \
--set platform-federation.enabled=false \
--namespace grid --create-namespace
Configuration
The following table lists commonly used configuration parameters of the grid chart and their default values.
| Parameter | Description | Default |
|---|---|---|
replicaCount | Number of Grid replicas | 1 |
image.repository | Grid image repository | releases-docker.jfrog.io/jfrog/grid |
image.tag | Grid image tag | appVersion |
jfrogUrl | JFrog Platform URL | "" |
joinKey | JFrog Platform join key | "" |
router.externalPort | Router external port | 8082 |
persistence.size | Persistent volume size | 50Gi |
platform-federation.enabled | Enable platform-federation subchart | false |
Refer to values.yaml for the full list of configurable parameters.
Upgrading the Chart
To upgrade the chart to a newer version:
helm repo update
helm upgrade grid jfrog/grid --namespace grid
Uninstalling the Chart
To uninstall/delete the grid deployment:
helm delete grid --namespace grid
License
Copyright (c) JFrog Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0. See LICENSE for the full license text.
Deploy grid with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has grid 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 chartgrid is pinned at v101.582.7 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