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

This commit is contained in:
Tomas Pizarro 2017-05-17 15:37:52 +00:00
parent 2e66d4cd97
commit f1eacc96c9
3 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,8 @@ version: '2'
services:
postgresql:
image: 'bitnami/postgresql:9.6'
labels:
kompose.service.type: nodeport
ports:
- '5432:5432'
volumes:

View File

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

View File

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