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.

Understanding requirements for managing Kubernetes

Understanding requirements for managing Kubernetes - Ansible Tutorial

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

Understanding requirements for managing Kubernetes

So in this video, we are going to set up a Kubernetes cluster and run some Ansible resources in it. Before doing so, I would like to have a look at the requirements for managing Kubernetes. So what is involved? Well, you need to make sure that Python supporting modules are available. On the command line, you would run pip3 install kubernetes as well as pip3 install openshift. Then you need to install the collection from Galaxy. Kubernetes comes with the collection. And in order to work at the collection Ansible Galaxy, collection install kubernetes.core is what you need to make sure that all the modules are available. And you need to make sure a Kubernetes client is available on the Ansible control node. The Kubernetes client is normally copied from the installed Kubernetes cluster. And it is recommended to use Ubuntu as a Kubernetes cluster node. That is what I'm going to do. And that is because the entire stack is significantly different if you are running it on Red Hat 8 family…

Contents