Installing the JFrog Platform using the jfrog-platform
Helm Chart will install the products in the following setup by default:
JFrog Artifactory
JFrog Xray
Add the JFrog Helm Charts repository to your Helm client.
helm repo add jfrog https://charts.jfrog.io
Update the repository.
helm repo update
Install the chart with the release name
jfrog-platform
.helm upgrade --install jfrog-platform --namespace jfrog-platform --create-namespace jfrog/jfrog-platform
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:
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
Run the upgrade command.
helm upgrade --install jfrog-platform --namespace jfrog-platform --create-namespace jfrog/jfrog-platform -f custom-values.yaml
You can configure each JFrog product separately with the following steps:
View the main
values.yaml
file and copy the configurations that you wish to update into acustom-values.yaml
file.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 mainvalues.yaml
of the chart will be used.Run the upgrade command.
helm upgrade --install jfrog-platform --namespace jfrog-platform --create-namespace jfrog/jfrog-platform -f custom-values.yaml
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
Optionally, you can apply advanced configurations through the
values.yaml
file. Ensure that you provide the Artifactory values within theartifactory.artifactory
section of thevalues.yaml
and not theartifactory
section of thevalues.yaml
file.artifactory: . . . database: . . mc: . . artifactory: . .
For more information on these advanced configurations, see Helm Charts for Advanced Users.
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
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.
To access the logs, find the name of the pod using the following command.
kubectl --namespace <your namespace> get pods
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>
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.