Before we deploy our K8s configurations, we need a kubernetes cluster to connect to. Follow the instructions here to set up the kubernetes cluster using kubeadm at https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/. I recommend that you use a cloud account for this example even though it might cost a little bit.
Every cloud provider gives out free accounts. They are worth checking out at https://aws.amazon.com/free/, https://cloud.google.com/free, and https://azure.microsoft.com/en-us/free/.
If the installation was successful, we will have to copy the admin kubeconfig file. It is usually located at /etc/kubernetes/admin.conf.
For simplicity, we will not do any role-based access control (RBAC) for this cluster. We will just use the admin kubeconfig file to do all our deployments. This is not a recommended practice in production.
You could use...