Steps to Install Worker Chart

JFrog Installation & Setup Documentation

Content Type
Installation & Setup
ft:sourceType
Paligo

Learn how to install the Worker Helm Charts on self-hosted environments.

  1. Add the JFrog Helm Charts repository to your Helm client.

    helm repo add jfrog https://charts.jfrog.io
  2. Update the repository.

    helm repo update
  3. Before you install Worker Helm Chart, you must add the values of joinKey, masterKey, and jfrogUrl keys in the worker-values.yaml file. This JFrog URL must point to the Artifactory instance that has Worker enabled.

    ## This is the worker-values.yaml file
    
    global:
      jfrogUrl: <YOUR_PREVIOUSLY_RETRIEVED_BASE_URL>
      joinKey: <YOUR_PREVIOUSLY_RETRIEVED_JOIN_KEY>
      masterKey: <YOUR_MASTER_KEY>

    Set these values in the worker-values.yaml file:

    • jfrogUrl: The URL of the machine where JFrog Artifactory is deployed, or the URL of the load balancer that directs traffic to it.

    • joinKey: This is the secret key required by Artifactory to register and authenticate the Worker service. You can retrieve this key from your Artifactory instance.

    • masterKey: This is the unique master key that the Worker service requires.

  4. Install the Worker Chart with the release name worker.

    helm upgrade --install worker --namespace worker --create-namespace jfrog/worker -f worker-values.yaml
    • worker: Name of the Helm release.

    • worker: Namespace of the Worker in Kubernetes.

    • jfrog/worker: Path of the deployed Worker Chart.

    • worker: Name of the Worker Chart.

    • -f: This flag is used when you include any new changes over the default values.

    • worker-values.yaml: This file contains the custom configurations that will be used during the installation.

    As a result of running this command, the Worker Chart is now deployed and Worker can be accessed using the Artifactory instance.

  5. Access Worker from your browser using the jfrogUrl defined in the parameters during the installation.

    https://<jfrogUrl>/ui/

    You can now access the Workers tab in the Administration module.

  6. Check the deployment status of your Worker Helm Chart.

    helm status jfrog-worker --namespace worker
  7. To access the logs, find the name of the pod using the following command.

    kubectl --namespace worker get pods
  8. To get the container logs, run the following command.

    kubectl --namespace worker logs -f <name of the pod>