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

This commit is contained in:
Tomas Pizarro
2017-05-17 15:59:35 +00:00
parent cc4e53ea4b
commit 8dcafc2874
5 changed files with 17 additions and 4 deletions

View File

@@ -3,7 +3,9 @@ version: '2'
services:
php:
tty: true # Enables debugging capabilities when attached to this container.
image: bitnami/php-fpm:5.6
image: 'bitnami/php-fpm:5.6'
labels:
kompose.service.type: nodeport
ports:
- 9000:9000
volumes:

View File

@@ -3,7 +3,9 @@ version: '2'
services:
php:
tty: true # Enables debugging capabilities when attached to this container.
image: bitnami/php-fpm:7.0
image: 'bitnami/php-fpm:7.0'
labels:
kompose.service.type: nodeport
ports:
- 9000:9000
volumes:

View File

@@ -3,7 +3,9 @@ version: '2'
services:
php:
tty: true # Enables debugging capabilities when attached to this container.
image: bitnami/php-fpm:7.1
image: 'bitnami/php-fpm:7.1'
labels:
kompose.service.type: nodeport
ports:
- 9000:9000
volumes:

View File

@@ -3,7 +3,9 @@ version: '2'
services:
php:
tty: true # Enables debugging capabilities when attached to this container.
image: bitnami/php-fpm:latest
image: 'bitnami/php-fpm:latest'
labels:
kompose.service.type: nodeport
ports:
- 9000:9000
volumes:

View File

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