13 lines
200 B
YAML
13 lines
200 B
YAML
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: mongo-service
|
||
|
namespace: z2
|
||
|
spec:
|
||
|
selector:
|
||
|
app: mongodb
|
||
|
type: ClusterIP
|
||
|
ports:
|
||
|
- protocol: TCP
|
||
|
port: 27017
|
||
|
targetPort: 27017
|