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

13 lines
186 B
YAML

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