Difficulty: intermediate
Estimated Time: 10 minutes

How to deploy k8s service with nginx as example.

Create k8s service

Step 1 of 5

Step 1

Before start, we validate the k8s is started.


Join the worker node to master. But before that we need to locate the master IP.

ifconfig ens3

kubeadm join xxx.xxx.xxx.xxx:6443 --token=96771a.f608976060d16396 --discovery-token-unsafe-skip-ca-verification

Make sure all k8s node is ready.

kubectl get node

Terminal Host 2