kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch09/todo-list/web/todo-web-service.yaml

13 lines
181 B
YAML

apiVersion: v1
kind: Service
metadata:
name: todo-web
labels:
kiamol: ch09
spec:
ports:
- port: 80
targetPort: 80
selector:
app: todo-web
type: ClusterIP