We are almost done with this remote cluster setup.
We just have to go through a handful of additional steps.
I listed the steps out right here just so it's really clear exactly what we have to do as a quick reminder.
We're going to use Google Cloud built to build all of our images from now on.
So we spoke about that when we were taking a look at this diagram right here.
So Google cloud build is going to be in charge of building all of our images using our source code in
their company Docker file.
And again the reason we are doing this is because good cloud build can generally build these images
more quickly than we can on our local machine particularly as we get on to some stuff later on where
we're going to be downloading some rather large dependencies you'll see why when we get to that point
after that we're going to update update our scaffold gamble file to tell it to use good cloud build.
Let's give you a very very easy update.
Don't worry that's not challenging at all.
After that we're gonna make sure that we set up ingress engine X on our Google Cloud cluster.
So we set up the ingress engine X on our local cluster but none that configuration carries over to the
cluster that we just created.
We have to go through those same initialization commands that we ran a while ago on our local machine
after that.
We're going to update our host file again yet again because we need to make sure that whenever we go
to ticketing dot Dev we no longer go to our local machine.
Instead we want to go to the IP address that's been assigned to our remote cluster.
And then finally we will go ahead and restart scaffold and we'll start to build all these images and
all that kind of stuff.
So let's go to this step by step.
We're going to first enable Google Cloud built.
So back at my group cloud console I'm gonna go to the menu once again on the top left then scroll down
a pretty good bit until I find tools right here a click on cloud built and then we'll click on enable
and that should be it.
Now this might take a couple of seconds so I'll just go ahead and let it do its thing.
While that is running let's go back over to our code Ed where we are going to update our scaffold GMO
file and again we're going to tell it that we wanted to use Google Cloud built it's going to open up
my editor I've already got my scaffold file open right here we're gonna make just two small changes
inside of here.
So first off I'm going find where we specify the build section and then right after where it says local
push false I'm gonna add in a new section that says Google Cloud builds I'll then specify a project
I.D. notice that the D an I.D. is case and we're going to enter our project I.D. right there.
Now remember our actual project I.D. is not exactly what it says at the top left hand side.
It is not ticketing def.
Instead we probably got assigned to you probably as well got assigned an I.D. randomly and that's what
you see over here on the right hand column.
So I'm going to take that I.D. copy it and then paste it over at Project I.D.
then after that we're also going to update the image right there.
So we kind of randomly decided on that name.
The first part of the image name makes a lot of sense it's our doctor I.D. but the second part is again
more or less random when we pass this building process off to Google cloud build so the thing that we
were just out this thing right here it looks like the API is now been enabled Google cloud build is
going to essentially more or less assign a somewhat random name was not really random it is a structured
name to the images that it builds.
So when you just specify the Image Name that Google cloud is going to assign to our image when it gets
built the formats that Google Cloud uses to decide what to call your image is always the exact same
format.
It is always going to be us not GC R dot Io flash then the name of your project.
So you're gonna put the urgency of the project I.D. you're gonna put your project I.D. the same thing
we just paste it in a moment ago right after that slash and then after that we'll put in the name of
our project directory.
So in this case it's off.
It's all put in off over there.
And that's it.
OK.
So I'm gonna save this file and that's all we should have to change inside of our scaffold GMO file
and then going to go back over to my diagram really quickly.
So we just achieved step one and step two right there.
Let's take another brief pause and we'll make sure that we do that initial setup of ingress and X on
our Google Cloud cluster again in the next video.