kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch03/numbers-services/api-service-headless.yaml

19 lines
252 B
YAML

apiVersion: v1
kind: Service
metadata:
name: numbers-api
spec:
type: ClusterIP
ports:
- port: 80
---
kind: Endpoints
apiVersion: v1
metadata:
name: numbers-api
subsets:
- addresses:
- ip: 192.168.123.234
ports:
- port: 80