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

This commit is contained in:
Tomas Pizarro
2017-05-17 15:59:25 +00:00
parent 52a299cce9
commit f949fb3a7b
5 changed files with 17 additions and 4 deletions

View File

@@ -3,7 +3,9 @@ version: '2'
services:
node:
tty: true # Enables debugging capabilities when attached to this container.
image: bitnami/node:4
image: 'bitnami/node:4'
labels:
kompose.service.type: nodeport
# command: sh -c 'npm install && npm start'
ports:
- 3000:3000

View File

@@ -3,7 +3,9 @@ version: '2'
services:
node:
tty: true # Enables debugging capabilities when attached to this container.
image: bitnami/node:6
image: 'bitnami/node:6'
labels:
kompose.service.type: nodeport
# command: sh -c 'npm install && npm start'
ports:
- 3000:3000

View File

@@ -3,7 +3,9 @@ version: '2'
services:
node:
tty: true # Enables debugging capabilities when attached to this container.
image: bitnami/node:7
image: 'bitnami/node:7'
labels:
kompose.service.type: nodeport
# command: sh -c 'npm install && npm start'
ports:
- 3000:3000

View File

@@ -3,7 +3,9 @@ version: '2'
services:
node:
tty: true # Enables debugging capabilities when attached to this container.
image: bitnami/node:latest
image: 'bitnami/node:latest'
labels:
kompose.service.type: nodeport
# command: sh -c 'npm install && npm start'
ports:
- 3000:3000

View File

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