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

This commit is contained in:
Tomas Pizarro 2017-05-17 15:33:36 +00:00
parent fc9347d98f
commit 54c0c6433e
3 changed files with 9 additions and 0 deletions

View File

@ -8,6 +8,8 @@ services:
- 'mariadb_data:/bitnami/mariadb'
ghost:
image: 'bitnami/ghost:0'
labels:
kompose.service.type: nodeport
ports:
- '80:2368'
volumes:

View File

@ -8,6 +8,8 @@ services:
- 'mariadb_data:/bitnami/mariadb'
ghost:
image: 'bitnami/ghost:latest'
labels:
kompose.service.type: nodeport
ports:
- '80:2368'
volumes:

View File

@ -3,6 +3,8 @@ items:
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.service.type: nodeport
creationTimestamp: null
labels:
io.kompose.service: ghost
@ -14,6 +16,7 @@ items:
targetPort: 2368
selector:
io.kompose.service: ghost
type: NodePort
status:
loadBalancer: {}
- apiVersion: v1
@ -36,6 +39,8 @@ items:
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
kompose.service.type: nodeport
creationTimestamp: null
name: ghost
spec: