zkt22/sk1/mongo-express-service.yaml

14 lines
250 B
YAML
Raw Permalink Normal View History

2022-05-14 11:55:46 +00:00
apiVersion: v1
kind: Service
metadata:
name: mongo-express-service
namespace: z2
spec:
selector:
app: mongo-express
type: LoadBalancer
ports:
- protocol: TCP
port: 8081
targetPort: 8081
nodePort: 30001