Posts

Showing posts with the label LoadBalancer

Kubernetes Services

Image
 Hello everyone !! In this post, we will discuss the Kubernetes Services, What, and How we can deploy the service on a Kubernetes cluster. What is Kubernetes Service? We have Kubernetes services for not to remember the pod IP address, it is more comfortable inter-connecting the pods using service names. Why we need Kubernetes Services? We will get to know once we deploy the following different kinds of Kubernetes services on your Kubernetes cluster. Types of Kubernetes Services NodePort ClusterIP Headless  Loadbalancer Kubernetes Service types NodePort The node port will be a port enabled on a Node per microservice application.  Let's have pod defination in myapp.yaml apiVersion: v1 kind: Pod metadata: name: myapp-pod labels: app: myapp spec: containers: - name: nginx-containers image: nginx Create the myapp pod using the above defination. Example nodeport.yaml file apiVersion: v1 kind: Service metadata: name: appservi...