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

14 lines
210 B
YAML

apiVersion: v1
kind: Service
metadata:
name: todo-web
labels:
kiamol: ch20
spec:
ports:
- port: 8020
targetPort: 80
selector:
app: todo-list
component: web
type: LoadBalancer