A Kubernetes Service gives a stable virtual IP and DNS name to a set of pods chosen by labels, so clients keep working when pods are replaced. Service types such as ClusterIP, NodePort and LoadBalancer decide whether traffic stays inside the cluster or comes in from outside. Ingress and the Gateway API add HTTP routing on top of Services.

The posts start with basics and move on to full labs. There is an explainer on the Service resource and its YAML, plus guides to multi-port Services, kubectl port-forward and minikube tunnel for reaching LoadBalancer services locally. The Ingress labs cover path-based routing with ingress-nginx, name-based virtual hosts, default backends and TLS, and there is a guide to installing the AWS Load Balancer Controller on EKS. Other posts cover the Gateway API, compare CNI plugins such as Calico, Cilium and Flannel, and give commands and labs for debugging pod, Service and DNS connectivity.

These guides are for engineers who need to expose applications on Kubernetes reliably, for anyone tracking down traffic that never reaches a pod, and for learners working through hands-on Kubernetes assignments.

Start here

Latest Kubernetes Services articles

Kubernetes Assignment and Project

This page is a five-day Kubernetes assignment. It starts with architecture and Pods, then moves through ReplicaSets, DaemonSets, Deployments, Services, CoreDNS service discovery and StatefulSets, and ends…

Read More

Kubernetes Ingress Controller using Path-Based Routing: Complete Hands-On Lab with Calico VXLAN

Scope: Self-managed Kubernetes on two AWS EC2 Ubuntu nodes; install the community ingress-nginx v1.15.1 bare-metal/NodePort manifest, repair cross-node Calico networking, deploy two NGINX versions behind ClusterIP Services, configure path-based routing…

Read More

Kubernetes networking plugins/CNI plugins

1. Kubernetes CNI / Network Plugins Plugin Type AWS Azure GCP On-Prem Key Use Calico CNI + Network Policy ✅ ✅ ✅ ✅ Networking + security policies…

Read More

Kubernetes Service Explained: API Resource, YAML Example, and Use Cases

In Kubernetes, a Service is an abstraction that defines a logical set of pods and a policy by which to access them. It provides a stable network…

Read More

Kubernetes Service Example Programs

Here’s a complete YAML file that contains three Deployments and their corresponding Services: Each container runs on port 80. ✅ Full Kubernetes YAML (deployment-and-services.yaml) 🚀 Usage To…

Read More

AWS Load Balancer Controller for Kubernetes: A Comprehensive Guide

The AWS Load Balancer Controller is a Kubernetes controller that manages Elastic Load Balancers for Amazon EKS clusters. It provides a native way to expose Kubernetes services…

Read More

Kubernetes Tutorials: Kubernetes Gateway API Complete Guide

Yes, the Kubernetes Gateway API is intended to be an evolution and successor to the traditional Ingress API in Kubernetes. First lets understand the differnce between ingress…

Read More

List of Commands troubleshoot networking in Kubernetes

2024 Notes Troubleshooting networking in Kubernetes can sometimes be complex due to the distributed nature of containerized applications. Below is a list of commands with explanations to…

Read More

Node port forwarding Concept in Kubernetes

In Kubernetes, the concept of “node port forwarding” allows you to access a service running on a specific node in your cluster. It enables you to access…

Read More

Minikube Tutorials: minikube tunnel explained

How to access applications running within minikube There are two major categories of services in Kubernetes: NodePort access with Minikube A NodePort service is the most basic…

Read More

Optum Lab 2 – Services – LoadBalancer

TIME – 12 PM IST – 1:30 PM IST Step 1 – Watch this video Step 2 – Lets do a LAB Rajesh KumarI’m Rajesh Kumar, a…

Read More

Kubernetes Tutorials & Lab: Ingress with NodePort

Sample Code – https://github.com/devopsschool-demo-labs-projects/kubernetes-lab-demo/tree/main/Ingress Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best…

Read More

Kubernetes Lab: Services & Service Discovery

Sample Code – https://github.com/devopsschool-demo-labs-projects/kubernetes-lab-demo/tree/main/Services-ServiceDiscovery Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best…

Read More

Kubernetes Lab – Investigating Networking & DNS

Sample Code – https://github.com/devopsschool-demo-labs-projects/kubernetes-lab-demo/tree/main/networking-dns Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best…

Read More

Kubernetes ingress tutorials with examples and Lab – NodePort ReplicationController

Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…

Read More

Interview Questions & Answers Complete Guide for Kubernetes

Kubernetes What is Kubernetes? Why organizations are using it? What is a Kubernetes Cluster? Kubernetes Nodes What is a Node? What the master node is responsible for?…

Read More

kubernetes ingress complete reference

Kubernetes basic ingress tutorials with examples and Lab using nodeport Kubernetes ingress tutorials with examples and Lab using NodePort Kubernetes ingress tutorials with examples and Lab using…

Read More

Kubernetes basic ingress tutorials with examples and Lab using nodeport

Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…

Read More

Kubernetes ingress tutorials with examples and Lab using Loadbalancer

In this demo, there are following ways to setup ingress as below; Single service Multiple services Services using a default backend Services using name based virtual hosts…

Read More

Kubernetes ingress tutorials with examples and Lab using NodePort

In this demo, there are following ways to setup ingress as below; Single service Multiple services Services using a default backend Services using name based virtual hosts…

Read More

Minikube Exposing Kubernetes workload from EC2 Instance.

Part 1 – Step by step guide on MINIKUBE installation on EC2 instance can be found here, Folks in this tutorial we will try to learn how…

Read More

Kubernetes Interview Questions and Answer Part – 7

What is the main reason why the Ingress API has not been developed beyond its original specification? It was delivered to test ingress use cases, but annotations…

Read More

Kubernetes Interview Questions and Answer Part – 5

Which of the following describes the fundamentals of Kubernetes Pod networks? Each Pod gets a unique routable IP on the Pod network (Ans) All Pods share a…

Read More

How to expose multiple port in services in kubernetes or Multi-Port Services

You have two options: You could have multiple services, one for each port. As you pointed out, each service will end up with a different IP address…

Read More

How to setup Kubernetes Dashboard in EKS using NodePort?

How to setup Kubernetes Dashboard in EKS using NodePort? Step 1: Deploy the Dashboard# Deploy the Kubernetes dashboard to your cluster: [code]kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml[/code] # Deploy…

Read More

Kubernetes Services: frequently asked questions

What is the difference between ClusterIP, NodePort and LoadBalancer Services?

ClusterIP exposes a Service only inside the cluster on a virtual IP. NodePort also opens a port on every node, from the 30000–32767 range by default. LoadBalancer builds on NodePort and asks the cloud provider for an external load balancer.

What is the difference between a Service and an Ingress?

A Service load-balances TCP or UDP traffic across a set of pods. An Ingress defines HTTP and HTTPS routing rules by host and path to one or more Services, and it only works when an ingress controller such as ingress-nginx is running in the cluster.

Why does every port in a multi-port Service need a name?

When a Service defines more than one port, Kubernetes requires a name on each one so the ports are unambiguous in endpoints and DNS SRV records.

How do I debug a Service that is not reachable?

Use kubectl get endpoints or kubectl get endpointslices to check that the Service selector matches the pod labels, and confirm that targetPort matches the port the container listens on. Then test DNS and connectivity from inside a pod, and check NetworkPolicies and the CNI plugin.