From the course: Automating Kubernetes with GitOps
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Kubernetes resources - Kubernetes Tutorial
From the course: Automating Kubernetes with GitOps
Kubernetes resources
- Okay, before we are going to run actual Kubernetes applications, we briefly need to talk about the resources that are involved in running Kubernetes applications. You might already know about it, but hey, better be sure that you know about that, so let's talk about it. So, Kubernetes uses these different resources to specify the desired state of the cluster. Starts with the pod. The pod is one or more containers that run the application. Pods are used in the deployment, and the deployment is used to run a scalable application. Now we have the volume, which represents storage, either as a part of the pod definition or as its own resource in a persistent volume and a PersistentVolumeClaim. Next, there is a service, which is a policy that provides access to the application pods. And also very useful is the Job. A Job is a task that runs as a pod in the Kubernetes cluster. And the CronJob is what you can use to run Jobs on a specific schedule, just like cron is doing in a Linux…