kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch17/todo-list/04-service.yaml

12 lines
184 B
YAML
Raw Normal View History

apiVersion: v1
kind: Service
metadata:
name: todo-web
namespace: kiamol-ch17
spec:
type: LoadBalancer
ports:
- port: 8020
targetPort: 80
selector:
app: todo-web