Welcome to the SAP HANA Academy. My name
is Bob and in this series of videos
we'll be looking at SAP Vora 2.0. In
this series of videos we're going to be
looking at installation. In this third
video of the series we're going to be
looking at using the Kubernetes
dashboard, changing GCP firewall rules
and also look at Docker containers. To
give some background what we've done is
we've created an Ubuntu server
within the Google Cloud Platform. This is
a single node Ubuntu server. We then
downloaded SAP Vora from SAP service
marketplace. And then lastly we looked at
using scripts in order to carry out all
these tasks. And again you can get these
scripts from our GitHub repository. In
the last video we prepped in a server
and we installed various tools including
Docker, Minikube as well as Kube CTL and
what we've done here, as you can see, is
we've instantiated a Minikube virtual
machine on a single node Ubuntu server.
On that Minikube server it enables us,
the reason we use Minikube, is that it
enables us to run a Kubernetes cluster
on one single node within the Minikube
virtual machine. So now that we've
actually, we can see that it's running,
what we want to do of course is test and
connect to that Kubernetes cluster. And
we can connect to it through a URL
because it has a user interface. Because
we're connecting through a URL, what it
means is that we'll have to open up some
ports within our instance, within the
Google Cloud Platform. So that's what
we're going to look at now. So of course
what I need to do is go back to the
Google Cloud Platform. And in order to
open up the various ports what we'll
need to do is within our options, in
compute we'll need to drill down to
network and go to VPC networks and
choose firewall rules. We’re going to
essentially build a brand-new firewall
rule. So to do this I'll create myself
firewall rule and I'm gonna call this
one Vora - firewall - rule. Again
this is primarily used for opening
ports and whitelisting
machines. So to do this what we need to
do is go down and I'm gonna actually, you
can specify a specific service, but I'm
gonna actually be very lazy and allow it
for all instances in this network. Being
lazy, there's obviously much stronger
ways in which you secure you can secure
your firewall. So now we need to specify
the various protocols and ports. So we're
gonna open up ports 30,000 to 33,000.
both TCP, UDP and ICMP. So I'll select
create. Oops, one of the things you have
to do is specify a source IP range. Which
I can just say any machine and this can
be done with 0 0 0 / 0. Of course it
would be better for me to specify my IP
address but I'm going to be lazy. So I'll
select create and then the Vora
firewall rule will be created. Now if I
go back and go to my compute. Go to my
app, compute engine. Go to VM instances.
What it essentially means is that any
server here will be will be able to be
accessed using ports 30,000 to 33,000. So
why so many ports? Well basically in
order to access your Kubernetes user
interface that will be accessed by
default on port 30,000. Now the reason
you open up other ports is because
in this version of Vora, when we
eventually come to installing Vora, the
ports for accessing the Vora catalog or
the Vora tools they're randomly set
when we install Vora using Docker. So you
can obviously open up the ports after
you've installed Vora. You can open up
various ports and be sure of opening the
right ports. I'm going to be lazy because
I know that the port range will be
between 30,000 and 33,000. But again
we'll cover that after we've done the
Vora install. In order if you want to
make the system more secure. So to test.
What we need to do is copy that external
IP address. So I'll just copy that one
here. And then I'm going to launch a new
tab. And in that tab I'll paste it in and
we're going to add the port 30,000. And
then this will give us access to our
Kubernetes cluster via a user
interface. It’s also known as the Kubernetes
dashboard. I'm not really going to
go into how Kubernetes works here.
Suffice to say that it's very well
documented on YouTube. So now that we
know Kubernetes is successfully working,
we've connected to the dashboard, we can
continue with the installation. So one of
the tools that we're going to have to
use is a tool called helm. So what is
helm?
Well helm helps you manage your
Kubernetes applications and it will be
used when we're installing Vora.
So the next part of this script will
install helm. So what I'll do is I'll
paste the script in here. And just do a
recap of what I've actually just done. The
first command uses curl to install or
grab the helm installation files. Then of
course we're gonna gun zip the files.
We'll tar the files to extract them and
then we're moving the executable to a
user bin helm folder. And then when we're
removing the tar file. So now that we've
actually finished prepping our machine,
there's one thing we need to do on this
Ubuntu server. And that's create what's
called a local Docker registry as a
Docker container. So what is Docker? Well
Docker is a open platform for developers
and system administrators to build, ship
and run distributed applications
wherever they may be.
In our instance of course it's going to
be within a Minikube virtual machine.
What we need to use is utilize Docker
and create what's called a Docker
container. Or we're going to actually
create a local Docker registry. So a
Docker container can run on a single
machine and share that machine’s
operating system kernel. And essentially
what that means is that we're going to
use our
Docker container to install SAP Vora. Of
course we're going to be connecting to
Minikube, that Minikube virtual
machine, which is housing our Kubernetes
single node cluster. So to start that
local Docker registry what we need to do
is run the following command. So what
I'll do is I'll paste that command in. So
what's it going to do? It's going to use
Docker and it's going to run that
command and it's going to run it on port
5,000. So we access the Docker container
on port 5,000. And then we're just simply
giving this registry a name. That's all
we're doing here.
So I'll execute this command. It’s gonna
then start and create that Docker
locally on this machine. Which again
we'll access from port 5000. So now that
we've actually, we've created our local
Docker registry, as a Docker container
and we've ensured that we've got
Kubernetes working on a local Minikube
virtual machine. What we can do in the
next video is move onwards to perform an
install of Vora within that Docker
container. And again we'll cover that in
the next video.