You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd <Course-Repo>\kubernetes-fundamentals\10-Services-with-YAML\kube-manifests
kubectl get all
kubectl apply -f 01-backend-deployment.yml -f 02-backend-clusterip-service.yml
kubectl get all
Step-03: Create Frontend Deployment & NodePort Service
Write the Deployment template for frontend Nginx Application
Write the NodePort service template for frontend Nginx Application
cd <Course-Repo>\kubernetes-fundamentals\10-Services-with-YAML\kube-manifests
kubectl get all
kubectl apply -f 03-frontend-deployment.yml -f 04-frontend-nodeport-service.yml
kubectl get all
Access REST Application
# Get External IP of nodes using
kubectl get nodes -o wide
# Access REST Application (Port is static 31234 configured in frontend service template)
http://<node1-public-ip>:31234/hello
Step-04: Delete & Recreate Objects using kubectl apply
Delete Objects (file by file)
kubectl delete -f 01-backend-deployment.yml -f 02-backend-clusterip-service.yml -f 03-frontend-deployment.yml -f 04-frontend-nodeport-service.yml
kubectl get all
Recreate Objects using YAML files in a folder
cd <Course-Repo>\kubernetes-fundamentals\10-Services-with-YAML
kubectl apply -f kube-manifests/
kubectl get all
Delete Objects using YAML files in folder
cd <Course-Repo>\kubernetes-fundamentals\10-Services-with-YAML
kubectl delete -f kube-manifests/
kubectl get all
Additional References - Use Label Selectors for get and delete