How to import user plugins to JFrog Artifactory on Kubernetes platform
Video Transcript:
So, let's say you've decided to import a user plugin into Artifactory on Kubernetes. How do you go about it?
Hi, my name is Harish MAA, and I'm Enterprise Solution Lead here at JFrog. Today, we will learn how to import user plugins into Artifactory, and I'll show you the imports on the Kubernetes platform. So, let's get started.
What are those user plugins? Artifactory allows you to easily extend Artifactory behavior with your own or already available plugins within Groovy. User plugins are used for running user code in Artifactory. Plugins allow you to perform multiple tasks like adding scheduled tasks, manipulating downloaded content, extending Artifactory with your own security realm, and more.
Let's say you plan to develop your own plugin. During the development phase, you can change the plugin source files and have your plugins redeployed on the fly. You can even debug the plugins.
Now, if you decide to use already available plugins and you want to know where these plugins are available — they are available on GitHub. I'm going to add this into the comments.
So, what are the steps?
The first step is to create a secret with the Artifactory user plugin by following this command. Kubernetes Secrets let you store and manage sensitive information such as passwords, tokens, SSH keys, etc.
Once we have created the secret, we'll have to add the secret name into the plugins.yaml file. After adding that into the plugins.yaml file, the next step is to run the Helm command to install Artifactory, which will help deploy this plugin.
Time for the demo.
First, I'm going to create the secret. I'm using a dummy plugin code, and here is my code. This is the code for the dummy plugin, written in Groovy, and it is going to respond back with status "OK".
So, we have created the file, and now we're going to add this into the plugins.yaml file. I've already added this into the plugins file, and then we'll run the command to install Artifactory.
Great! So, this has installed Artifactory as well as the plugin. The way to check is to execute the plugin curl command.
Let me show you where this is available. You can find all the user plugins [here]. We use the dummy plugin, and you can use the Groovy code from there. You can run the curl command to test it.
That was my video on how to import user plugins into Artifactory on Kubernetes. Feel free to leave comments, feedback, or questions in the comment section.
Hope you enjoyed the video. Thank you for watching!