How to install Artifactory and Xray with Helm installation? [Video]

Vignesh Surendrababu
2022-03-24 08:41

Hello everyone. This is Vignesh from JFrog Support. In this video, I'm going to show a quick demo on how to install Artifactory and Xray using the helm charts. Let's go ahead and get started. 

I would like to quickly go through the agenda on what are the steps we will be performing on this short demo. First, I'll be showing you on how to add the chart center helm repository to the helm charts. Followed by I'll be showing the instructions on how to install the Artifactory, and how to retrieve the JFrog URL and join key from the UI. Using the join key and JFrog URL, I'll be installing the Xray using the helm charts, and then I'll be proceeding with the final verification, and will show you how the Xray and Artifactory will look in the platform.

Now, let's see how to add the chart center helm repository to the helm charts. Let me quickly open the terminal at my end. Now, to add the chart center repository to the helm charts, I'm going to execute this command, 'helm repo add center' followed by the chart center .io URL. Once the center repository is added, you will be getting the successful message. 

Now, let's go and do a helm repo list. So, this will show that the software repositories currently available in your local. Now we are at the chart center repository, and we can formulate from the terminal as well. Let's go ahead and use the instructions available here in the presentation on how to install the Artifactory.

If you would like to verify the list of available versions for Artifactory, I would prefer them in the inserts hyperlink command, along with the center repository, so that it will show on the list of available charts and versions like this. Meanwhile, in output with all the possible versions, of Artifactory, Artifactory hits and charts and a container registry. As you can see, the chart version downloaded with the version being the latest. I'm going to install those specific version in my local and I'll be showing how the Artifactory looks like.

I'm using this command to install Artifactory and the Artifactory new space. Hyphen sect, artifactory.image version denotes the corresponding app version of Artifactory and hyphenated version Lavender 402 denotes that corresponding chat version of Artifactory. Let's wait for a couple of minutes so that it will try to deploy the Artifactory and the corresponding pvc get deployed. 

After executing the command, I could see that Artifactory has been initialized. To conform that I use parts hyphen Artifactory. I could see the Artifactory was getting initialized on the other end. We could take a few more minutes. 

Now, I could see all the parts of the running state. I'm able to access the Artifactory using the static IP as I'm using theengine mix as a load balancer for that which has come to the Artifactory head shots. in order to get the cluster ip of the nginx or the dns name which is configured. The end user particularly svc hyphen and Artifactory hyphen Artifactory, is nothing but the namespace. Let me go ahead and execute it. 

As you could see, that is corresponding to a balance of external IP for Artifactory imaging service. Artifactory should be access using this 35 or 36 Ip. Let me try accessing that example IP using the browser. I should be able to see the Artifactory right now. I can confirm that Artifactory is up and running from the UI. Let me go ahead and type in user name and the password. When setting the password we would need to use the valid license key and the Jfrog platform base URL and then configure for proxy any that are available. Then, click finish. So that you would be able to use Artifactory.

Now, I'll quickly go through the security section settings to join on the Jfrog URL. I'll be putting in the command password, under the connection details. Once after providing the password here you can see the join key in the Jfrog URL available here. Let's take those values and use it in next step to install using the helm chart.

Let us go to the next slide. In this sample command, I just configured a basic syntax on how to use the join key on the Jfrog URL in the helm update install command to install XRAY. Let's go ahead and try replacing the Join key in the Jfrog URL and install XRAY. See how I tried to use instant hyphenate XRAY command to install the XRAY. It will take a few minutes to get it installed. Let's wait for a couple of minutes and then we will see how it has been reflected on the platform. 

To verify the current status of the XRAY parts and execute the significant parts of XRAY command to get the current status. I could see the XRAY part is completely up and running. We should be able to see the corresponding XRAY part in the platform UI. Let's go and verify that. As I mentioned before, I could see the scurity and comliance has been enabled now with watches policy configurations. You can try and go ahead to create some corresponding policies rules for the scurity valnerabilities and configure that policy and look for the watch configuration.

Then, we can try to see the indexes versus … based on the UI option over here. Currently, as it is the new installation i am not seeing any configuration under it so this could confirm we have access when we installed XRAY and we integrate it with Artifactory. I hope you all enjoyed this video. Let's catch up on another video. Until then, goodbye.