KubernetesClassAkademik/Clase 5/Ejercicio/04-db-svc.yaml

13 lines
225 B
YAML

kind: Service
apiVersion: v1
metadata:
name: mongodb-node-app-svc
namespace: node-app
spec:
selector:
app: mongodb-node-app
ports:
- protocol: TCP
name: mongodb-node-app
port: 27017
targetPort: 27017