Grid Helm Chart Installation
Install JFrog Grid on Kubernetes using the JFrog Grid Helm chart and connect it to your JFrog Platform Deployment.
Platform Federation is the JFrog solution for managing once and applying everywhere: it automates global administration across all your JPDs and keeps configuration free of drift.
It runs on two services: Grid, which orchestrates the federation, and the PFED Service, which carries out the sync between JPDs.
Install JFrog Grid Service on a self-managed environment using the JFrog Grid Helm chart.
Important: Moving to Secured Releases
JFrog Artifactory has moved to a secure and private release process for self-managed installations that requires user authentication. For information on logging in to obtain the latest releases or for assistance, please contact Support.
Consume JFrog Grid only from the private release repositories.
Prerequisites
Before you begin, verify the following:
| Prerequisite | Details |
|---|---|
| JPDs | At least two JPDs: one main site and one or more member sites. Each JPD must run Artifactory version 7.173.21 or later. |
| Grid and PFED Services | Install the Grid and PFED Services on every JPD in the federation, including the main site and all member sites. |
| Grid Version | Use Grid Helm chart version 101.963.10 or later, consumed only from the private release repositories. |
| PFED Service Version | Use PFED Service version 1.1851.41 or later. It is included in the Grid Helm chart. |
| JFBus Service | The JFBus service is running on every JPD in the federation. |
| Mission Control on the Main Site | The Mission Control service is enabled on the main site. The main site acts as the management site for the federation. |
| License | Every JPD has an Enterprise Plus license, with entitlements fetched by the JFConnect service. The required entitlement is `grid`. Edge nodes are not supported. |
| Circle Of Trust | A Circle of Trust is set up between all JPDs. |
| Base URL | Each JPD has a Base URL configured that the other JPDs can reach. |
| Database | Required for the PFED Service bundled with Grid. Grid itself doesn't need a database. Create the database before you install. The PFED Service can share Artifactory's database server where it uses its own schema. |
Steps to Install the Grid Chart
-
Install or Redeploy Artifactory deployment after adding the following values:
For the JFrog Artifactory/Artifactory-HA Helm chart, update your custom values.yaml with the following and run helm upgrade:
artifactory: extraSystemYaml: access: federation: enabled: trueFor the JFrog Platform Helm chart, update your custom values.yaml with the following and run helm upgrade:
artifactory: artifactory: extraSystemYaml: access: federation: enabled: true -
Add the JFrog Helm Charts repository to your Helm client, authenticating with the credentials you use for the private release repositories.
helm repo add jfrog --force-update https://charts.jfrog.io --username <USERNAME> --password <TOKEN> -
Update the repository.
helm repo update -
Create database on the same database server that your JFrog Artifactory deployment already uses.
PFED Service Requires Its Database to Already Exist
PFED Service creates its own schema through migrations, but it does not create the database itself. Create an empty database before installing the chart, or PFED Service fails to start. For example, on PostgreSQL:
CREATE DATABASE jfpfed OWNER <db_user>; -
Create a Kubernetes Secret to hold the join key and master key, so they never appear in your values file, shell history, or process listings. This step creates the
gridnamespace ahead of the install in step 9, sincekubectl create secretrequires the namespace to already exist.kubectl create namespace grid kubectl create secret generic grid-keys \ --namespace grid \ --from-literal=join-key=<JOIN_KEY> \ --from-literal=master-key=<MASTER_KEY> -
Create a registry Secret so Kubernetes can pull the Grid images from the authenticated JFrog release registry.
kubectl create secret docker-registry grid-registry \ --docker-server="releases-authenticated-docker.jfrog.io" \ --docker-username=<USERNAME> \ --docker-password=<TOKEN> \ --namespace grid -
Add the values for
jfrogUrl, the Secrets from the previous steps, the image registry, and the database connection in thegrid-values.yamlfile.## This is the grid-values.yaml file global: jfrogUrl: <JFROG_URL> imageRegistry: releases-authenticated-docker.jfrog.io imagePullSecrets: - grid-registry joinKeySecretName: grid-keys masterKeySecretName: grid-keys database: url: <YOUR_POSTGRESQL_JDBC_URL> username: <YOUR_POSTGRESQL_USERNAME> password: <YOUR_POSTGRESQL_PASSWORD>Set these values in the
grid-values.yamlfile:jfrogUrl: The URL of the machine where JFrog Artifactory is deployed, or the URL of the load balancer that directs traffic to it.imageRegistry: The authenticated JFrog release registry that the images are pulled from. Keep it set toreleases-authenticated-docker.jfrog.io.imagePullSecrets: The name of the registry Secret created in step 6.joinKeySecretNameandmasterKeySecretName: The name of the Kubernetes Secret created in step 5.database: The database connection details, in JDBC URL form (for example,jdbc:postgresql://<HOST>:5432/jfpfed). Point this at the database you created in step 4, on the same database server already used by your JFrog Artifactory deployment. PostgreSQL is the default. For MySQL, MariaDB, MS SQL Server, or Oracle, also setdatabase.typeanddatabase.driver.
Use the PFED (Platform Federation) Service Bundled with Grid Service
When you run Grid Service, the PFED Service must run from the Grid Helm chart, not from Artifactory. If PFED Service is already enabled on your existing Artifactory Helm chart, disable it there before you install Grid.
Do not run the PFED Service from both Grid and Artifactory Helm chart at the same time. -
Optionally, apply a sizing profile on top of
grid-values.yaml. The chart ships withsmall,medium,large, andxlargeprofiles undersizing/, each setting replica counts and resource requests and limits for Grid, the router, and observability.helm pull jfrog/grid --untar -
Install the chart with the release name
grid.helm upgrade --install grid --namespace grid --create-namespace jfrog/grid -f grid-values.yamlThis installs Grid and the PFED Service too. To apply a sizing profile from the previous step, add it as an additional
-fflag, for example-f grid/sizing/grid-medium.yaml. -
Check the deployment status of your Grid Helm chart.
helm status grid --namespace grid -
Find the name of the running pod.
kubectl --namespace grid get pods -
Get the container logs.
kubectl --namespace grid logs -f <name of the pod>
Updated about 14 hours ago
