NGINX basic deployment in Kubernetes
1. Create a deployment using nginx image with latest tag and name it as nginx-deployment. App labels should be app: nginx-app and type: front-end. The container should be named as nginx-container; also make sure replica counts are 1.
2. Also create a service named nginx-service and type NodePort. The targetPort should be 80 and nodePort should be 30010.
3. Make sure pods are running state.
* This is a learning task and you can try to do it in your own learning environment. I have done a sample solution for this task on Ubuntu OS with a single node cluster.
Solution:
check below the sample solution video for the above task.
Self-Learning Task.
LIKE || SUBSCRIBE || COMMENTS on MY YOUTUBE CHANNEL AND BLOG
STAY TUNED FOR MORE VIDEOS.......
No comments:
Post a Comment