mirror of
https://github.com/bitnami/containers.git
synced 2026-02-15 09:27:22 +08:00
Set kompose.service.type label so kubernetes service is NodePort
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user