Search⌘ K
AI Features

Create a Cluster

Explore how to create Kubernetes clusters using predefined scripts and configurations suitable for various platforms such as GKE, EKS, AKS, Minikube, and Docker Desktop. Learn to set up a cluster environment that supports autoscaling deployments and stateful sets, and understand best practices for managing cluster resources and using Helm and YAML for application deployment.

We'll cover the following...

Creating a cluster

Before we create a cluster (or start using one you already have available), we’ll clone the vfarcic/k8s-specs repository which contains most of the definitions we’ll use in this course.

A note to Windows users

Please execute all the commands from this course from Git Bash. That way, you'll be able to run them as they are instead of modifying their syntax to adapt them to Windows terminal or PowerShell.

All the commands from this chapter are available in the 01-hpa.sh Gist.

git clone https://github.com/vfarcic/k8s-specs.git

cd k8s-specs

If you cloned the repository before, please make sure that you have the latest version by executing git pull.

Gists and specifications

The gists and the specifications that follow are used to test the commands in this chapter. Choose the flavor you want and run the commands from its .sh file to create the cluster and the required specifications needed in this chapter.

NOTE: In the end, you will see a command to DELETE the cluster too. Don’t execute that command. Use the DELETE command only when you need to delete the cluster, preferably at the end of the chapter.