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

13 lines
193 B
YAML

apiVersion: v1
kind: Service
metadata:
name: numbers-api
labels:
kiamol: ch12
spec:
ports:
- port: 8013
targetPort: api
selector:
app: numbers-api
type: LoadBalancer