oc-deploy/kube/oc-mongo/mongo/mongo-service.yml

13 lines
177 B
YAML

# mongo-service.yml
apiVersion: v1
kind: Service
metadata:
name: mongo
spec:
selector:
app: mongo
ports:
- protocol: TCP
port: 27017
targetPort: 27017