curso-basico-kubernetes/Clase 5/Ejercicio/node-show-text-app/service-load-balancer.yaml

16 lines
277 B
YAML

apiVersion: v1
kind: Service
metadata:
name: node-app-svc-lb
namespace: node-app
spec:
ports:
- name: 80-tcp
port: 80
protocol: TCP
targetPort: 3000
selector:
com.docker.project: node-app
type: LoadBalancer
status:
loadBalancer: {}