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

14 lines
209 B
YAML

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