liveBook · Manning

Clusterip service type

As explained in Machine Learning Platform Engineering

A ClusterIP service is a Kubernetes service that provides an internal cluster-scoped IP address for accessing selected pods.

A ClusterIP service provides a stable, cluster-internal address for reaching selected pods. It decouples clients from pod IPs that change when pods restart, scale, or are redeployed. section 3.3.4

Internal backend access

Create the YAML with kubectl create -f cluster-ip-service.yaml, then test it from a temporary curl pod using curl http://joker-cluster-ip-service:80. External clients require another service type.

How Machine Learning Platform Engineering covers it

How deep it goes
Explains the manifest, port mapping, selector, creation command, assigned address, and in-cluster testing, but not implementation internals.
Examples
Uses a fast-api backend, port 80-to-8083 mapping, a generated ClusterIP, kubectl, and curl from a temporary pod.
What it assumes
Assumes familiarity with Kubernetes pods and YAML objects while demonstrating service creation and internal connectivity from practical examples.
What you can do after
Operate/configure an internal Kubernetes endpoint and verify it by IP address or service name from inside the cluster.
How it connects
Connects Kubernetes Service to Pods, service discovery, NodePort, and LoadBalancer access patterns.

Also explained in

Compare how 6 books explain clusterip service type →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning Platform Engineering. The section links point to the parts of the book it draws on.