KubernetesClassAkademik/Clase 7/Ejercicio/03-service.yaml

16 lines
272 B
YAML

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