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

13 lines
181 B
YAML

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