The YAML for a ClusterIP service looks like this:
# cat clusterIP.yaml
apiVersion: v1
kind: Service
metadata:
name: my-internal-service
spec:
selector:
app: my-app
type: ClusterIP
ports:
- name: http
port: 80
targetPort: 8080
protocol: TCP
You can create the Service by using kubectl apply -f clusterIP.yaml. After you create the Service, you can use kubectl get service to see the stable IP address