# mongos-service.yaml apiVersion: v1 kind: Service metadata: name: mongos spec: ports: - port: 27017 name: mongo selector: app: mongos