mirror of
https://github.com/bitnami/containers.git
synced 2026-02-19 05:27:22 +08:00
Set kompose.service.type label so kubernetes service is NodePort
This commit is contained in:
@@ -3,6 +3,8 @@ version: '2'
|
||||
services:
|
||||
mongodb:
|
||||
image: 'bitnami/mongodb:3'
|
||||
labels:
|
||||
kompose.service.type: nodeport
|
||||
ports:
|
||||
- "27017:27017"
|
||||
volumes:
|
||||
|
||||
@@ -3,6 +3,8 @@ version: '2'
|
||||
services:
|
||||
mongodb:
|
||||
image: 'bitnami/mongodb:latest'
|
||||
labels:
|
||||
kompose.service.type: nodeport
|
||||
ports:
|
||||
- "27017:27017"
|
||||
volumes:
|
||||
|
||||
@@ -3,6 +3,8 @@ items:
|
||||
- apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.service.type: nodeport
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: mongodb
|
||||
@@ -14,11 +16,14 @@ items:
|
||||
targetPort: 27017
|
||||
selector:
|
||||
io.kompose.service: mongodb
|
||||
type: NodePort
|
||||
status:
|
||||
loadBalancer: {}
|
||||
- apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.service.type: nodeport
|
||||
creationTimestamp: null
|
||||
name: mongodb
|
||||
spec:
|
||||
|
||||
Reference in New Issue
Block a user