In this demo, we're going to install a basic Cabernets cluster using the mini cube utility as part
of this beginner's course to keep things simple and easy.
We will stick to Minie Cube as our lab solution.
We explore additional options of provisioning equipment and this cluster using the cube admin tool in
DC a course.
As for this course, we just want to stick to the very basics and all the basic operations can be performed
on emeny cube cluster.
So we will start at the Cuban ATSDR IO page within this Web site.
Click on the documentation section and navigate two tasks and install tools section.
Now, before installing Mini Cube, we must install the Cube Cuttle utility.
It will be called a Cube Control Cube Cuddle or cube CDL, whatever you prefer.
Now you might hear me mix it up at times, so bear at me on that.
So the cube coro command line tool is what we will use to manage our coordinate its resources and our
cluster after it is set up using mini cube.
Installing the Cube Cuttle utility before installing mini cube will allow Mini Cube to configure the
local utility to work with the cluster when it provisions it.
So the cube coral utility can work with multiple clusters, local or remote clusters.
At the same time, there's a small configuration for it and Mini Q will automatically take care of that
when it starts.
We need provisions, a comprehensive cluster, but that is if you already have the Cape Coral utility
installed.
So that's important.
Now our goal is to set up a cluster on our local machine.
AM on Linux Open two system.
But the same procedure will also work on Windows or Mac operating systems as well.
Now, all the demos and tools that we have throughout this course will work on all operating systems
Linux, Windows or Mac K.
You just need to follow the respective installation procedure for your OS and to start with.
I'm going to install the CUCHILLO utility on my Linux system and we're going to go ahead with the latest
version.
So just copy and paste the command and provided here for downloading the Cube Cuttle Binary.
The binary has now been downloaded.
The next step is to make this command executables.
So I'm going to use the command S.H. Mod plus X to make it executable.
And finally, we're going to move this to a location within the path using a local bin.
OK.
So this way, I'll be able to run this cute cuddle command from anywhere within my system.
So let's run the cardioversion command and you can see that it has installed the one Dort 18 version.
Now, what we just saw was a one way of installing KUB Cuttle utility.
There are other ways to do it.
You can install it using a package managers depending upon the type of distribution or waste distribution
that you are on.
And the documentation associated with these are available here.
So if you scroll down, you will see that there are instructions for installation on Mac OS and there
should be one for Windows as well.
So make sure that you use the appropriate link and setup up cuddle based on the documentation provided.
Now that we have completed the installation of Cube Gödel utility, we can proceed with the installation
of Mini Cube.
Now the first thing that we have to check.
And this goes for all operating systems, Linux, Windows or Mac is to make sure that virtualization
is enabled for your laptop or desktop wherever you're setting up this lab.
So one of the easy ways to make sure that virtualization is enabled on Linux is to grep for the Remax
or the S u.
M keyword under the proc c.p.u info file.
So that's what I'm going to do now.
So as long as this command shows an output such as the switches listed here.
Now, virtualization has been enabled.
And you don't have to enable it specifically from the BIOS if it's not enabled.
Then you have to check your laptop's BIOS settings.
So you have to restart your laptop, go into the BIOS.
And there should be an option to enable virtualization.
And you have to do that.
You might have to check your laptops, a manual in order to know how that's done.
Or just check online with your laptops model and search how to enable virtualization on your laptop.
And again, make sure that you check the documentation here for the respective operating system that
you are on for each of these are specific commands that can be used to run a test to see whether virtualization
has been enabled.
Okay.
So next, we are going to install mini KUB.
And again, we will go ahead with the option for Linux.
And the first prerequisite is to install Kupe cattle, which we have already done.
The next one is to install a hypervisor.
So for Linux, we can either use Cavey M or Witchel Box.
We will go with virtual box has that is our preferred virtualization solution.
You can also run many KUB without a hypervisor and directly on your host using Docker.
So if you already have Docker installed, you could leverage that and have many KUB.
No provision Echobrain in this cluster.
Using a docker container.
However, note that as you can see here in the documentation page, there is a warning that says it
can result in security or data loss issues.
So we will just stick with a virtual machine based approach for now.
I just prefer virtual box because it can in case you mess up something on your system and you need to
restart.
It's easy to get rid of the VM and restart again, right.
It won't really mess up your laptop and you can take snapshots before you make a major change and then
you can restore that snapshot in case that changed.
You know, it doesn't really well work well for you.
Now, your box is supported on all variety of operating systems, including Linux, Windows and OSX,
so I'm going to open this in a new window and it takes me to the download section.
And here I am going to select Linux distribution and the one that is most appropriate for my system.
You may choose one that is appropriate for yours.
So wait for it to complete the download and then we will install virtual box.
It has downloaded the Debian package, so I'm just going to install it directly.
Wait for the installation to complete.
And while it installs, let's go back to the documentation section.
So now the installation has been completed and I'm just going to close this and I am going to launch
watchbox.
So as you can see here, this is what the virtual box interface looks like.
And you will have a similar interface for Windows or Mac with minor differences, but that should not
matter.
So right now, we don't have any virtual machines running.
So when we provision a cluster using mini cube, it will automatically create a virtual machine as required.
So apart from just installing washer box, you don't really have to do anything directly with it.
Now, let's proceed with the installation.
So the next step is to install the mini cube utility.
Again, there are different ways to do this.
Either use the package manager and install it as a package, or we can do it using a direct download
approach.
So we're going to download the latest version.
And just like we did with the Cube Carol utility, I'm going to call the package and then install it
on my machine.
So I'm just going to copy the whole thing, and this will download, make binaries and assign and execute
bid so that we can run it as a command.
And once that has been done, let us add many KUB to our path.
The user local bin directory has already been created, so we don't have to do that first step.
We were on this command.
Do install mini Kube at these locations like user slash, local slash bin.
Next, we will provision Aquaman and his cluster using the mini cube utility.
So we're going to run the Mini Cooper start command.
But we also have to specify the driver name to be used with this command.
Now, many cube can work with different virtualization tools.
And that's where you must specify what driver to use.
In our case, we use virtual box.
So let's open this link and make sure that you are using the correct driver name.
So the name of a virtual box driver is Virtual Box.
So we will make use of that name.
So I'm going to copy and paste this command until the driver name, and then I'm just going to copy
the driver name from this page and paste it here.
We will now execute the command when it starts.
You'll notice that it follows a process.
So it is, in fact, if downloading the ISO image for many KUB and then this is the image that will
be used to provision a VM on virtual box.
We now see that it's downloading coronets abortion one day or 18 or three and any other required binaries.
Let me switch to the virtual box UI and we will see that a virtual machine by the name Minnie Cube has
been created and it is in their running state.
And you can see that the VM uses to C.P.E. use and to gibi of ram.
So let's wait for this setup to complete.
OK, so now this has been installed and Cucuta's utility is now configured to use the components cluster
provisioned using mini KUB.
So let's head back to the documentation page.
And the next thing that we are going to do is run the mini Kupe status command to ensure that everything
has been set up correctly.
So I'm going to clear the screen here and then run the mini cube status command.
We can see that the mini Cuban control plane, cube led API server and cube config are all in and running
and configured state.
So that's good.
If you run into issues with the insulation in time, feel free to run this command and check the status.
So our cluster is now set up.
We will deploy some applications on the cluster and make sure it's working as expected.
Now, we will get in to talking about the different concepts on deploying an application in the upcoming
lectures.
Right now, we just want to make sure that the cluster we set up is working as expected.
So we will simply follow the tutorial given in this page.
Although it may not make total sense now, but I assure you that we will get to that in a bit.
So click on this link under what's next.
And here we have some examples that could be used to test our setup in the new page.
You can skip the first step of starting a mini cube cluster.
So we have already done that.
So the next thing that we need to check is if Google commands are working.
So I'm going to run the acquittal, get notes command and you can see that it is a single node cluster.
And the node name is Minnie Cube and it is in a ready state.
And it was spun up about eight seconds ago.
And it's running the latest release of Cuban errors, which is one dot 18.
As of this recording.
So next, let us try to create some deployments using this cluster.
So here we have an example on this page.
I'm going to run Cucuta's Create Deployment Command to create the deployment.
Once that is done, we will run the.
You've got to get DEPLOYMENT'S command and you can see that.
Hello, Mini cube deployment has been running for 22 seconds.
Next, we will expose this deployment as a service for that make use of this command here and Kubica
to expose deployment.
Hello, Mini Cooper Command.
Now, don't worry about the command for now.
We'll talk about these in much detail later in this course.
For now, we'll just copy and paste.
OK.
And then we will skip to step five, where we will get the you are all off the exposed service.
So by running this command.
Copy that you are.
And pasted into our browser on your laptop.
And it should list the details about the application like this.
OK, so that's not the most exciting application, but this is proof that your setup is working and
that's all we need for now.
Now follow the remaining instructions to clean up your system, delete the services and delete the deployment.
Now, the deployment will be in a terminating state for a few seconds.
And after it's done, the application will no longer be accessible on the Web page.
Well, that's it for now.
We'll see you in the next lecture.