appendix-a

appendix A  Installation and setup

 

Kubernetes (aka K8s) is the platform on which we’ve deployed multiple MLOps tools and projects, so the first step is to set it up. K8s is usually associated with a cluster of nodes and deployments spread across multiple node pools (collection of nodes), and we’ll be presenting two ways of installing it: local versus cloud. Both work well and have their pros and cons; depending on your use case, you can go with either. We suggest that if you’re new to K8s, a good way to start is to try out a local installation and then proceed to use K8s on cloud to run and deploy your projects.

A.1 Local installation of command-line tools (Mac and Linux)

We need to install some command-line tools before we proceed to install K8s and Kubeflow.

A.1.1 The yq YAML processor

The yq YAML processor allows you to edit a YAML file from the command line, which is quite useful while writing continuous integration (CI) pipelines and installations. Run the script in the following listing to install it.

On a Mac, use the following: