How to import user plugins to JFrog Artifactory on Kubernetes platform
Let’s say you’ve decided to import User Plugins into Artifactory on Kubernates. How do you go about it?
Hi, my name is Harsh Mota and I’m Enterprise Solution Lead here at JFrog. Today we learn, how to input User Plugins into Artifactory. I’ll show you those imports in, the Kubernetes platform. Let’s get started.
What are those User Plugins? Artifactory allows you to easily extend Artifactory’s behavior with your own or already available plugins written in Groovy. User plugins are used for running user coding in Artifactory. Plugins allow you to perform multiple tasks, like add schedule tasks, manipulate downloaded content, extend Artifactory with your own security realm. 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.
Let’s say you if you decided to use available plugins, and you know where this plugins available? It’s available at GitHub. I’m going to add this into the comments.
What are the steps? The first step is to create a secret with Artifactory User Plugin by following this Command. Secrets, lets you store and manage sensitive information such as password [inaudible 00:01:20] et cetera. Once we have created the secret, we’ll have to add the secret name into the plugins.yaml file. Once we have added that into the plugins or gambled file, the next step is to run the Helm Command, to install the Artifactory, which is going to help deploy this plugin. Time for demo.
First, I’m going to create a secret. I’m using a Dummy Plugin code and here is my code. This is the code for the Dummy Plugin Groovy written in, and it is going to respond back with status, ‘Okay’. 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.yaml file and then we’ll run the command to install 30 factory.
This has installed the Artifactory as well as the plugin. The way to check is to execute the plugins called Command. Let me show you, where is this available? You could find all the User Plugins here and we use the Dummy Plugin and you could use the Groovy code from here and you could run the code Command to test it.
That was my video on how to import User Plugins into Artifactory on Kubernete, feel free to leave comments, feedback, questions in the comment section. I hope you enjoyed the video. Thank you for watching.