kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch07/numbers/api-service.yaml

12 lines
166 B
YAML

apiVersion: v1
kind: Service
metadata:
name: numbers-api
labels:
kiamol: ch07
spec:
ports:
- port: 80
selector:
app: numbers-api
type: ClusterIP