How I install Helm chart and prepared my first "Hello World" chart - Part 2

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys welcome to the second session and in this session we are going to see how we can install our helm chart in the previous session we have seen what are the basic principles behind the helm chart and how we can use the helm chart in our kubernetes environment so let's begin and let's install our hand chart on our development machine to begin with the first question comes in my mind how can i install the helm chart there are many package manager available for installing the helm chart like home brew chocolaty scoop go fish and snap but we are going to choose an option of a script because helm chart community provides a script which you can use if you are starting from the scratch so that you don't have to use any package manager and since we are starting with the scratch so i would like to go with the option of a script okay so how to download this script so you can download this script using this curl command and on the left hand side you can see this is my kubernetes cluster which is up and running and if you don't have a kubernetes cluster then you need to set up your kubernetes cluster and if you like to know how can i set up the kubernetes cluster then this is the guide cube spray and this is the video uh slap session which i have prepared so you can follow on my channel also okay so i am assuming that you have set up your kubernetes cluster and don't worry i'm going to share both the guide for helm as well as for cube spray in the description section of the video so that you can follow and you don't need to remember any command all the commands i have mentioned in the guide so you can come back and follow this guide for any commands ok so i will copy this first command to download the shell script and here you can see we have downloaded the shell script get helm dot sh the next thing which you need to do is we need to change the mode so that we can make it executable i'll clear it i'll paste it here and now we have changed the mode so that it is executable okay now what you need to do is you need to execute this shell script using this and what it's going to do it's going to download this tart or gz file which is a helm package and after that it's going to install and as you can see it has installed on this location user local bin and after that helm installed into user local bin help okay so to verify you can run the command hell and as you can see this is the by default help documentation which is available and how to how you can use the helm chart okay i'll clear the screen and i'll paste the command helm version and as you can see we have installed the version 3.4.0 after the installation step let's move ahead and do a demo on a hello world helm chart okay to start with the step number one is you need to create your first helm chart and the command for that is helm create hello world so you can copy this command and paste it over here so as you can see we have now created the hello world helm chart and this is my hello world helm chart it will create a directory and which you can verify using this command also if you are not sure whether where it has been created then you can just paste this command and as you can see this is the hello world helm chart which we have created moving further in the guide you can see this is the same output which i have pasted for your reference so you can see this is the time and date where we have created the hello world help chart okay there is one more another way where you can use the tree command to verify the structure of your hello world helm chart so i'll clear the screen on the left hand side and i'll type the command tree and then hello world so as you can see once you run the command hello create hello world it is going to create all the directory along with all the minimal uh yml file which is needed for creating your help chart so this is our helm chart structure and this is my hello world directory before moving further i would like to highlight in the helm chart world we don't run the application we install the helm chart so for this current session we are going to prepare a hello world helm chart and then we are going to install that help chart okay but before that uh we need to go into that our directory that is hello world which is our helm chart and inside that directory you should see values.yml so we need to update some values inside the values.yml and here in the 2.2 step you can see we need to update from cluster ip to the node port and why we need to change is because whenever we are going to run any application that application needs to be exposed as a service and to expose that service we need to assign it should be a note port not a cluster ip why because we are running a virtual environment and to access that application we need to expose that as a node port otherwise we will not be able to access it so that's why we need to update this values.yml and we need to change from service type from cluster ip to note port okay so now we have changed the directory now we are going to open the values dot yml in vi mode so here vi values dot yml and here we need to look for the [Music] port not port but the type that is cluster ip so i am going to change it to node port okay after that exit save and quit and since it's our hello world helm chart so we don't need to do anything extra so this change is sufficient enough to test our help chart so all this instruction you can find in this guide so this is the section you need to look uh that is service dot type and you previously it should be cluster ip then you need to change it to the note port okay and rest of the things you can keep at as it is all right so moving to the step number 2.3 what you need to do is you need to install your helm chart using the command helm install as i told you uh we need to install every helm chart which we are going to prepare so for that the command is helm install you can see over here helm and install then your first argument that is the release name because whatever helm chart you are going to install we need to assign some release name to it and then the actual chart name so that is going to be your second argument so here this is my final command so that is help install after that followed by my hello world that is my release name and after that hello world so that is my actual help chart okay so i'll copy this command and i'll paste it over here and just remember we need to get outside of this directory so we are sitting outside of the hello world directory which is our helm chart okay so i'll paste this command and as you can see if you see this message that means your helm chart has installed successfully now we need to verify whether our helms chart installation has gone properly or not so in this guide you will find a command helm list a so you can run this command over here helm list a and here you can see this is our my hello world that is our release name which we have installed or our hand chart has been installed with the release name i'll increase the size of this screen so that you can see better i will clear it and i will rerun the command and here you can see my hello world so that means our helm chart installation is successful and our release name is my hello world and since this is our first installation of our helm chart so the revision number is fun okay then how to access our application since it is a very basic hello world application but it is not going to output a hello world text or something it is not because we have installed nginx server provided by a helm chart package so what you need to do is you need to first of all clear this screen and after that you need to run the command coupe ctl get service so that will tell you like which service you are going to expose so as i told you we need to change the service type from cluster ip to note port so this is the service type which is now not port and the application not application but the helm chart application release name which we have provided that is my hello world that is running on a note port service type and the port is 31239 okay so that is the information which is needed and now if you remember like we have changed this no service type from cluster ip to node port so that's why we are getting this additional i port number otherwise we would have gotten a port that is only 80 and if we have gotten that port 80 then we will not be able to access this service outside of the kubernetes cluster so in the next step we are going to access this nginx home page on this port ok let us go back to our browser and here i will open the new tab and i will type the ip address of my virtual machine where my kubernetes cluster is running and followed by the port and hit enter and here you can see this is my nginx default page so that means our first helm chart has been installed successfully okay moving back to guide you can find all these commands in the into this guide and that includes scoop ctel get service command also and always remember you will get a different port number here like when i run this application so i got the port 31239 but in your case you might get a different port number so that you should need to check after running this cube ctl get service command because it always uh assign a port within the range of thirty thousand and thirty two thousand seven six seven so that is your uh note port range and that you will get okay and this is the default login page so i have uh pasted a screenshot of the same so that you can refer to this guide i hope you liked the today's session on how to install your first hand chart application and how to access your nginx server page if you have any question then please put down into the comment section and i will try to get back to you in the next section we are going to see how to add upstream repositories into our help chart
Info
Channel: Rahul Wagh
Views: 4,883
Rating: undefined out of 5
Keywords: helm chart, helm chart installation, installation, helm chart hello world, hello world
Id: jP_PF0mqUHk
Channel Id: undefined
Length: 10min 38sec (638 seconds)
Published: Tue Nov 17 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.