How to Install, Configure, and Deploy NGINX on a Kubernetes Cluster
How to Install, Configure, and Deploy NGINX on a Kubernetes Cluster [root@kubemaster k8s]# kubectl get nodes NAME STATUS ROLES AGE VERSION kubemaster.cloud.local Ready master 34d v1.16.3-k3s.2 kubeworker.cloud.local Ready <none> 34d v1.16.3-k3s.2 Create a Deployment ~/nginx.yaml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 apiVersion : apps/v1 kind : Deployment metadata : name : nginx-server labels : app : nginx spec : replicas : 1 selector : matchLabels : app : nginx template : metadata : labels : app : nginx spec : containers : - name : nginx image : nginx : 1.13 -alpine ports : - containerPort : 80 [root@kubemaster k8s]# kubectl create -f nginx.yaml --record deployment.apps/nginx-server created List your deployments: root@kubemaster k8s]# kubectl get deployments ...