Deployment and Service yaml files for nginx
Clone this repository to the master node and run the following commands
cd nginx-deployment
kubectl apply -f nginx-deployment.yaml
kubectl apply -f nginx-service.yaml
To see the nodes in the cluster
kubectl get nodes
To see the pods
kubectl get pods -o wide
To see all the deployments
kubectl get deploy -o wide
To see all the services
kubectl get svc -o wide
To see the nginx welcome page
curl http://(slave-node-public-ip):30004