zkt22/sk1/mongo-service.yaml

13 lines
212 B
YAML
Raw Permalink Normal View History

2022-05-14 11:55:46 +00:00
apiVersion: v1
kind: Service
metadata:
name: mongo-service
namespace: z2
spec:
selector:
app: mongodb
type: ClusterIP
ports:
- protocol: TCP
port: 27017
targetPort: 27017