Hi, Let us understand about adding a chart to the repository using helm push plugin.
Before that, I need to give a quick introduction about a plugin. Helm supports plugin architecture
where I can develop my own custom plugin and make use of it or plugin developed by third party and
make use of it. The similar way there are n number of plugins available
One such plugin is helm push plugin and that is available over here.
I can install the helm push plugin with a simple command helm plugin install and the GitHub location
or the location where I do have the installation files. I can install using Helm plugins.
Since I already installed I'm not going to run this again.
I can use the command helm plugin list.
That's going to list the plugins installed as a part of this specific helm installation. I do
have a push plugin which is going to push the chart package into the Chart Museum and I can search for helm
plugins and there are n number of plugins available.
And depending on the need, we can make use of the plugins based on the license as well as the stability of the code.
Now let me go ahead and create a new chart and push the chart using the helm push plugin,
helm create helm pushdemo now we do have this chart.
Let me get him to the chart.
And update the chart.yaml file
Now, let me go ahead and package this Chart, helm package helm pushdemo.
So that's going to provide me the packaged charts. I can use this package chart
or I can directly use the directory as well, so I can use the command helm. I'll use the helm push
command and name of the directory where I created the new chart and the repository name
So that's going to create the zipped content automatically and push it into the repository.
Now I can do an update and check the list of charts available within the repository.
So the advantage of using the push is directly I can mention the chart folder and do a push.
I don't need to do the packaging or
I can do the package and move the files, or I can use the curl and pass the packaged chart files
using the data binary option into the chart museum using restapi.
So there are multiple ways and these are all different options where
I can push the charts into the repository that is the chart museum repository. In future lectures
We will discuss about few of the options of how to host the repository
within GitHub or within AWS S3 bucket as well
Once the repository is set up, then we can make use of those repositories
Pull the charts and create our own resources within kubernetes.