In this video, you'll learn how to run a container in Kubernetes.
Easy access to Kubernetes is provided by different cloud providers, or by using Minikube.
To get to know Kubernetes, you can deploy a Getting Started Kubernetes cluster in Google
Cloud as well.
And after deploying the Kubernetes cluster, you'll use the kubectl command to manage Kubernetes
No matter how you run Kubernetes, kubectl is always the way.
Now, it's not the purpose of Linux Plus to make you a Kubernetes guru.
Kubernetes is complex and really requires additional training.
But I do want to show you how to run an orchestrated container in Minikube, which is a nice Kubernetes
platform which you can use for testing purposes.
So on this virtual machine, I have Minikube available.
The only thing I need to do is Minikube start.
And my first test is kubectl get all.
kubectl is normally used to make connection to a Kubernetes cluster.
And oh my goodness, here we can see that many resources have been created in this Kubernetes
cluster.
Yes, I've used this cluster before for other demos.
Now I'm going to use kubectl run myapp, which is going to run a container image with the
name myapp.
But I need to specify which image.
Well, that's easy.
Minus minus image is nginx.
And that is creating the pod myapp.
Now I can use kubectl get pod myapp.
And what do we see?
We see that the pod myapp is running.
Ready one slash one means that there is one container running in this pod and the application
is available.
Now, that's enough for the minimal introduction to Kubernetes that I wanted to provide here.