Kubernetes NodePort service tutorial explained in hindi / urdu
#kubernetes #kubernetesforbeginners #kubernetesfullcourse #kubernetestutorialforbeginners #kubernetesfulltutorial #kubernetesvideos #kloudfission
In this video we talk about nodeport service and how create create nodeport service using imperative commands. Nginx and apache(httpd) service is created to demonstrate the usecase.
How to expose a deployment using node port service
Topics:
00:00: What we will be doing today
01:07: Create a deployment
02:18: Save output to file and modify lable/selectors
03:04: Apply settings using kubectl -f command
04:40: Create apache httpd service and deployment
04:57: Verify traffic forwarding by using curl command
05:30: Check labels and selectors by describe command
Commands:
How to set alias in linux:
alias k=kubectl
k get svc
k get deploy
k create deploy deploy dep-ngx --image=nginx --port=80
curl localhost:80 (will not work of course because it is not exposed yet)
k create svc nodeport np-ngx --tcp=80 --dry-run=client -o yaml (greater than sign) npsvc.txt
Observe labels and selectors
We've to manually modify the selector so that it matches with our deployment
curl localhost:31023 (31023 is the port assigned by nodeport service)
Create another service. Note that we are using same name for deployment and service
k create svc nodeport httpd --tcp=80 --dry-run=client -o yaml; k create deploy httpd --image=httpd --port=80
curl localhost:32481
We do not need to modify any selectors for above.
Видео Kubernetes NodePort service tutorial explained in hindi / urdu автора Оптимизация JavaScript
Видео Kubernetes NodePort service tutorial explained in hindi / urdu автора Оптимизация JavaScript
Информация
3 декабря 2023 г. 15:40:36
00:07:02
Похожие видео