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