Hey, everyone.
And welcome back.
Now, in today's video, we are going to discuss about a target.
Now, before we discuss about Target, let's look into the traditional approach that used to be common
before target service was introduced.
Now, in traditional approach, let's say you are using a container orchestrator.
It can be X, it can be Kubernetes and so on.
Now, for this container orchestrator to deploy an application, there needs to be an underlying resource
that needs to be created.
For example.
EC two instances and only after the SC two instances were created, then the container orchestrator
would have been able to deploy the containers inside the EC.
Two instances in your environment now, although this is a pretty common approach nowadays as well,
however, it comes with its own set of disadvantages.
First one here is that you have to define and deploy the EC two instances in your environment.
So let's say there is a lot of traffic that is coming to your environment.
You might have to launch 20 or 32 instances or maybe more or maybe less and so on.
This is one part.
Second important part is you have to take care of the security of the AC two instance so it can happen
that the EC two instance gets breached.
So you have to take care of vulnerability assessments, security groups, the overall patch management
and so on.
And the third one is you have to manage the EC two instances in your environment and you also have to
pay for the EC, two instances that are running now, although this is fine for most of the environments,
the question that comes is, is there an easier way to do this?
And the answer is yes, through farm gate.
Now, generally in farm gate, what really happens is that all the EC two instances that you had to
manage earlier, you no longer have to do that.
Everything is taken care of by the farm gate.
So at a high level overview, at the farm gate is a serverless pay as you go compute engine that lets
you focus on building the applications without managing the servers.
So now container orchestrator can directly deploy the containers and farm gate will take care of everything.
So this is a much more better architecture here.
So let's go ahead and quickly look into it.
Now for today's demo.
I have a X cluster here and within here you see there is one task pending.
So basically a container is not being deployed.
So this ICS cluster is trying to deploy a container.
But the challenge is that there are no easy two instances that are available.
And this is one of the reasons why you see it stays zero out of one task over here.
So this is one part.
So let's go ahead and quickly delete this service.
And now what we will be doing, we'll try and deploy the container on a target service.
So let's also try it out.
Now, again, note that this is a demo video, so generally you have an option of XY to.
You also have option of target in case if you choose easy to.
As we know, you need to have a EC two instance where the container can be deployed in case if you use
target you do not really need to define anything here.
Within a year.
Let me just select the farm gate here.
I'll just give the name of taste and let's go ahead and deploy.
Let's refresh the page.
As of now, it is trying to deploy.
The status is in progress.
So let's quickly wait for a moment.
And if I refresh here, you see our container has been successfully deployed.
Now, if you look over here, let's quickly open this up.
You basically get a public IP.
Let's copy this.
Let me enter it over here.
And you see, our application is successfully running in a target environment.
So I hope with this at a high level overview, you understood the basics of Target.
One of the primary benefit here is that since it is a serverless compute, we no longer have to take
care and manage the EC.
Two instances for our environment and this leads to a much more simpler approach.
So with this will conclude today's video.