1
00:00:00,000 --> 00:00:11,440
In this video, you'll learn how to run a container in Kubernetes.

2
00:00:11,440 --> 00:00:17,480
Easy access to Kubernetes is provided by different cloud providers, or by using Minikube.

3
00:00:17,480 --> 00:00:22,240
To get to know Kubernetes, you can deploy a Getting Started Kubernetes cluster in Google

4
00:00:22,240 --> 00:00:24,000
Cloud as well.

5
00:00:24,000 --> 00:00:29,879
And after deploying the Kubernetes cluster, you'll use the kubectl command to manage Kubernetes

6
00:00:30,879 --> 00:00:35,599
No matter how you run Kubernetes, kubectl is always the way.

7
00:00:35,599 --> 00:00:40,439
Now, it's not the purpose of Linux Plus to make you a Kubernetes guru.

8
00:00:40,439 --> 00:00:44,400
Kubernetes is complex and really requires additional training.

9
00:00:44,400 --> 00:00:51,080
But I do want to show you how to run an orchestrated container in Minikube, which is a nice Kubernetes

10
00:00:51,080 --> 00:00:54,520
platform which you can use for testing purposes.

11
00:00:54,520 --> 00:00:58,000
So on this virtual machine, I have Minikube available.

12
00:00:58,000 --> 00:01:02,320
The only thing I need to do is Minikube start.

13
00:01:02,320 --> 00:01:05,800
And my first test is kubectl get all.

14
00:01:05,800 --> 00:01:10,120
kubectl is normally used to make connection to a Kubernetes cluster.

15
00:01:10,120 --> 00:01:14,919
And oh my goodness, here we can see that many resources have been created in this Kubernetes

16
00:01:14,919 --> 00:01:15,919
cluster.

17
00:01:15,919 --> 00:01:19,120
Yes, I've used this cluster before for other demos.

18
00:01:19,120 --> 00:01:25,519
Now I'm going to use kubectl run myapp, which is going to run a container image with the

19
00:01:25,519 --> 00:01:26,519
name myapp.

20
00:01:27,040 --> 00:01:29,120
But I need to specify which image.

21
00:01:29,120 --> 00:01:30,599
Well, that's easy.

22
00:01:30,599 --> 00:01:32,959
Minus minus image is nginx.

23
00:01:32,959 --> 00:01:35,480
And that is creating the pod myapp.

24
00:01:35,480 --> 00:01:39,080
Now I can use kubectl get pod myapp.

25
00:01:39,080 --> 00:01:40,120
And what do we see?

26
00:01:40,120 --> 00:01:42,480
We see that the pod myapp is running.

27
00:01:42,480 --> 00:01:48,720
Ready one slash one means that there is one container running in this pod and the application

28
00:01:48,720 --> 00:01:49,720
is available.

29
00:01:49,720 --> 00:01:55,199
Now, that's enough for the minimal introduction to Kubernetes that I wanted to provide here.

