Creating A ClusterIP Service For Internal Load Balancing
ClusterIP: default service type, accessible only within the cluster for internal communication between services like front-end & back-end components.
ClusterIP --> The default service type, accessible only within the cluster. It's used for internal communication between services.
For example, communication between the front-end and back-end components of your application.
Create a 3 file
nginx-pod.yml
nginx-deployment.yml
nginx-svc.yml
apiVersion: v1
kind: Pod
metadata:
name: nginx-pod
spec:
containers:
- image: nginx
name: nginx-ctr
Execute the pod
kubectl apply -f nginx-pod.yml
kubectl get pods
Get the pod full details
kubectl get pods -o wide
Cr...