Set kompose.service.type label so kubernetes service is NodePort

This commit is contained in:
Tomas Pizarro
2017-05-17 15:35:55 +00:00
parent 79330b7e94
commit c02c7192ae
3 changed files with 9 additions and 0 deletions

View File

@@ -3,6 +3,8 @@ version: '2'
services:
mongodb:
image: 'bitnami/mongodb:3'
labels:
kompose.service.type: nodeport
ports:
- "27017:27017"
volumes:

View File

@@ -3,6 +3,8 @@ version: '2'
services:
mongodb:
image: 'bitnami/mongodb:latest'
labels:
kompose.service.type: nodeport
ports:
- "27017:27017"
volumes:

View File

@@ -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: