Transcript for:
Installing Istio Service Mesh using Istioctl

[Music] hello weavers welcome to this video right in this video we will see how to install the Easter service mesh in your Cuba notice cluster using East your CTL so I've done I think five or six videos around his TOC DL and when I was doing those videos the way that I use to install East EO service mesh is using helm but since we moved to helm three I don't think is tio is supporting the helm three method of installation so there is this sto CTL method of installation which is actually recommended so if I go to install hto CTL there are a few options still set up install and here you can use installation with is tio CTL method or using the helm method so in all my videos around East your CTL I used this method customizable install with helm and if you go to that link it says the helm installation approach will be deprecated in the future we recommend installing with East your CTL so that caught my attention and I just wanted to give it a try how it's going to be using a steel CTL to install the East Air Service mesh so I've played with that I think I'm quite confident with how to install this tio CTL + is tio itself using his TOC tail it's quite simple it's actually simpler than using helm okay so for that we are going to download let's go to installing with this TOC tl first we need to grab the history of CTL binary and prerequisite is download the steel release so I'm going to copy this command copy and paste it okay so docks getting downloaded and we don't need these anymore I'm going to close the browser okay so where is it which is T Oct okay so city to sto and then city to bin directory in here you find sto binary I'm going to move this binary to user local bin sudo move sto CTL to user local bin okay so which is do CTL we've got sto CTL if I look at is do CTL version I'm running version 1.4 r2 I think when I was doing all those previously steel related videos the version was 1.3 dot - I think okay so now it's 1.4.2 and now we are going to use a steel CTL to install a steel or caddy so I've got my kubernetes cluster ready cube say DL get notes so I'm on version 1.17 dot 0 1 must in order to worker nodes cube city I'll get namespace forget ignore this operations namespace that's from my previous video and it's I don't know why it's stuck in terminating ok so how to install is TOC DL so before installing it's good to verify whether your kubernetes cluster is suitable for a steo installation so you can do sto CTL verify install ok so it has done some checks whether the kubernetes api is accessible what version of cumulus we are running is that compatible with the east eeeh that we are going to install is there a still exists already or kubernetes setup can it deploy all these resources into your kubernetes cluster and all those it says all the pre checks have been passed and our kubernetes cluster is ready for the sto installation ok so that's cool and how do you install this to you now if your CDL profile list so there are these default profiles available for you during the installation so there is default profile demo profile minimal remote STS so basically when you install steal service mesh using a steel CTL you're gonna pick up one of these profiles profiles are basically like what features you want in able in history so there are like lots of confidence right so depending on which profile you choose it installs certain features of sto so according to the documentation go with the demo but if you're in production go with the default and then choose your features whatever you want but if you want to just verify all the features of easier just for learning purpose then go with the demo profile because that demo profile comes with all the features enabled so sto CDL and to apply the profile you have to do STR CTO manifest apply - - set profile equals demo that's it so that is going to install this deal with the selected profile let's see what it's going to do okay cube City I'll get namespace we don't have any namespace other than the default once ignore the operations namespace okay the command to install is is do CTL manifest apply - - set and you are setting the profile to demo that will install the steer with all the features okay a cold so I can say preparing manifest for these components from ETS Citadel base graph fauna Prometheus operator core DNS CNI injector and all those things and now if I do a cube CTL get namespace you can see the sto system namespace watch - X cube CTL - n sto system get pots alright so containers are getting created for all these individual components so we've got key ollie we've got Prometheus graph on on everything and I will also show you how to access the key early dashboard or Prometheus of graph ona using simple east your CTL commands alright so let's wait for it I'm gonna pause the video and come back when all these components have been deployed alright so all the components have been installed successfully fine okay so how do you verify whether the sto has been installed successfully in your kubernetes cluster so for that what we can do is you can't generate a manifest file using the install command so what we did was steal CTL manifest apply so we did this command to install but if you were to generate a manifest set of manifest without installing history or what he can do is hist your CTL manifest generate so if you just do that instead of applying the actual manifest your kubernetes cluster it will just generate the set of manifest if I do that you can see these are the manifests that it will deploy to your kubernetes cluster so what you can do now is just redirect that to temp whatever your file is STR llamo for example and now you can pass this file to verify install option is to your CTL verify install - F and this file and that will tell you whether it steals a steal a steal CTL components have been installed in your cluster okay so it's doing all these checks to see so it is doing some checks for C R D's it's very fine that 23 customer source definitions - tier deployments are all installed and they are healthy okay so sto is installed successfully that's cool all right so is tio CTO if you want to access the Kyani dashboard history of CTL dash board if you just do is to your CTL dashboard it will show you the help commands help output the available commands are on my graph on a-- g Goerke Ali Prometheus Zipkin depending on what components we have installed so we've got Prometheus key ally graph on R let's take a look at them one by one okay so sto CTO dashboard key ally okay so that's opening up the key ally dashboard for our school the username is admin and the password is admin login go so that's our Keeley dashboard that's looking good and close this and now we can do is steal CTL dashboard graph owner okay so that's graph owner logging in and that is already there our dashboards already configured for us sto if I look at history of performance dashboard for example no data okay so there are some data yeah there are data here let's look at some other example sto performance dashboard is T Oh what else is ta mesh dashboard no data okay let's check some other charts a steel galley dashboard yeah there are a few metrics coming through okay so close that what else we've got a steel CTL dashboard Zipkin zigger Prometheus let's check out Prometheus sto CDL dashboard from ETS code so that's from ETS status targets okay so those are the targets registered citadel on my stats galley is the of mesh policy telemetry kubernetes API servers and ok so that's what is it Prometheus what else have we got Ziggler I don't know what Ziggler the king arm but let's try and see if we can access them it's still CDL dashboard Ziggler ok cool so that's zigger I don't know what it is and I haven't played around with it let's see Zipkin zip kin okay no zipping pants from okay maybe that feature not enabled all right cool so that's a steal CDL into installing the steal service mesh using is to your CTL the recommended way and what if you want to uninstall his toc do watch - X cube CTL - n sto system get pods and what you can do is the same manifest that we generated we can use that to delete all the resources related to instill that we deployed so temp is still dark llamo so that's the fund that be generated using this command is still CTL manifest generate so that's the command that contains all the manifests for the Easter installation so now we can use the same manifest file to delete all the components that we've deployed cube CDL delete - f temp sto dot M oh cool as you can see here it is deleting all the resources plus the role binding role deployments config Maps a whole lot of things that it is deleting ok cube CDL get namespace sto system namespace is getting terminated cool alright so that's all I wanted to show you in this video is just another approach another way of installing is do service mesh in your kubernetes cluster but this is the recommended proper way to install this to your CDL and try this out if you've got any questions let me know I will be happy to help you until then I will see you all in my next video bye bye [Music]