JFrog Platform Helm Chart Installation Steps

JFrog Installation & Setup Documentation

Content Type
Installation & Setup
ft:sourceType
Paligo

Installing the JFrog Platform using the jfrog-platform Helm Chart will install the products in the following setup by default:

  • JFrog Artifactory

  • JFrog Xray

  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. Install the chart with the release name jfrog-platform.

    helm upgrade --install jfrog-platform --namespace jfrog-platform --create-namespace jfrog/jfrog-platform 
  4. Optional: Customize the Helm Chart installation to install one or more of the JFrog products.

    The JFrog Platform Helm Chart provides the flexibility of enabling one or more of the JFrog products during the installation, which means that you can choose to install all of the products (Xray and Distribution), or only some of them.

    For example:

    1. To deploy Xray, you can create a new custom-values.yaml file with the following content and then pass it during installation with the Helm upgrade command.

      xray:
        enabled: true
      
    2. Run the upgrade command.

      helm upgrade --install jfrog-platform --namespace jfrog-platform --create-namespace jfrog/jfrog-platform  -f custom-values.yaml
    3. You can configure each JFrog product separately with the following steps:

      1. View the main values.yaml file and copy the configurations that you wish to update into a custom-values.yaml file.

      2. Update the product configuration with custom values in the custom-values.yaml file.

        For the values not specified in the custom-value.yaml file, the default values from the main values.yaml of the chart will be used.

      3. Run the upgrade command.

        helm upgrade --install jfrog-platform --namespace jfrog-platform --create-namespace jfrog/jfrog-platform  -f custom-values.yaml
  5. Once the installation completes, you will be able to see the products that have been installed.

    NOTES:
    Congratulations. You have just deployed JFrog Platform Chart with the following products:
    - artifactory
    - xray
    
  6. Optionally, you can apply advanced configurations through the values.yaml file. Ensure that you provide the Artifactory values within the artifactory.artifactory section of the values.yaml and not the artifactory section of the values.yaml file.

    artifactory:
      .
      .
      .
      database:
        .
        .
      mc:
        .
        .
      artifactory:
      	.
      	.

    For more information on these advanced configurations, see Helm Charts for Advanced Users.

  7. Connect to Artifactory.

    It may take a few minutes for Artifactory's public IP to become available. Follow the instructions that are output by the install command above to get the Artifactory IP to access it. Below you will find a sample instruction of what to look for to pick the URL to reach Artifactory (in the following example, jfrog-platform is the release name and jfrog-platform is the namespace).

    Congratulations. You have just deployed JFrog Artifactory.
    1. Get the Artifactory URL by running these commands:
       NOTE: It may take a few minutes for the LoadBalancer IP to be available.
             You can watch the status of the service by running 'kubectl get svc --namespace jfrog-platform -w jfrog-platform-artifactory-nginx'
       export SERVICE_IP=$(kubectl get svc --namespace jfrog-platform jfrog-platform-artifactory-nginx -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
       echo http://$SERVICE_IP/
    2. Open Artifactory in your browser
       Default credential for Artifactory:
       user: admin
       password: password
  8. Install the JFrog Platform license using one of three methods: REST API, Artifactory UI, or a Kubernetes Secret. For more information, click the Add Licenses link below.

  9. To access the logs, find the name of the pod using the following command.

    kubectl --namespace <your namespace> get pods
  10. To get the specific container logs, run the following command.

    kubectl --namespace <your namespace> logs -f <name of the pod> -c <name of the container>
  11. Customize the product configuration (optional) including database, Java Opts, and filestore.

    Note

    If you install Xray with the JFrog Platform Charts, the RabbitMQ vhost is named "xray". If you install Xray with the standalone Xray Helm Chart, "/" is set as the RabbitMQ vhost.