From the course: Ansible: From Basics to Guru by Pearson

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Managing Kubernetes resources

Managing Kubernetes resources

In this video, you will learn how to use Ansible to run Kubernetes resources in an already existing Kubernetes cluster. I do expect that you have worked your way through lesson 19.3 and lesson 19.4 to set up a Kubernetes cluster before going into the procedure described here. So what is involved? Well, after setting up the cluster, you first need to create Kubernetes infrastructure components and next start running the deployments and or pods. And we are ready to do so at this moment. And you can use Ansible collections to do so. And in order to make it easy to understand what is going on, I created two playbooks. And you know what? Let's just go check out these playbooks, run them and see how successful they are. Now that we have our Kubernetes cluster up and running, let's create some resources. So there we go, and what do we see? A very simple playbook that runs on localhost, that is running K8s. K8s is the Kubernetes module, the default Kubernetes module, and in this default…

Contents