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

14 lines
210 B
YAML
Raw Permalink Normal View History

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