Back to Browse

kubernetes tutorial | Service Networking | DEMO ClusterIP Service

387 views
Sep 18, 2023
10:28

*CERTIFIED KUBERNETES ADMINISTRATOR* ------------------------------------------------------------------------- *Kubernetes Tutorial | DEMO ClusterIP Service* ------------------------------------------------------------------------------- In this video, you are going to see a DEMO on ClusterIP Service For suggestions/feedback/doubts contact email: [email protected] Happy Learning !!! =========================================================================================== *USEFUL LINKS* ---------------------------- *Service Networking* _https://kubernetes.io/docs/concepts/services-networking/service/_ * Service Types* _https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types_ * Kubectl Command Reference* _https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands_ ========================================================================================== #cka #kubernetes #k8s #containers *DEMO STEPS* *Step 1: Access & Inspect the Kubernetes Cluster* $ kubectl cluster-info $ kubectl get pods -n kube-system $ kubectl get nodes *Step 2: Create a Kubernetes Deployment using YAML Manifest* $ kubectl create deployment webserver --image=httpd --replicas=2 --dry-run=client -o yaml Use the above command and create deployment.yaml _Reference_ _https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-deployment-em-_ *Step 3: Create a ClusterIP service using YAML Manifest* $ kubectl create service clusterip my-cs --tcp=8080:80 --dry-run=client -o yaml Use the above command and create clusterip-service.yaml _Reference_ _https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-service-clusterip-em-_ *Step 4: Access ClusterIP service from/within the Cluster* Access the ClusterIP service using its Static IP address from/within the cluster *Step 5: Access ClusterIP service from outside of the Cluster* Access the ClusterIP service using its Static IP address outside of the cluster _THE END_

Download

0 formats

No download links available.

kubernetes tutorial | Service Networking | DEMO ClusterIP Service | NatokHD