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

This commit is contained in:
Tomas Pizarro
2017-05-17 15:30:00 +00:00
parent 9bad239ee9
commit ca9f7a1ad7
3 changed files with 9 additions and 0 deletions
+2
View File
@@ -3,6 +3,8 @@ version: '2'
services:
apache:
image: 'bitnami/apache:2.4'
labels:
kompose.service.type: nodeport
ports:
- '80:80'
- '443:443'
+2
View File
@@ -3,6 +3,8 @@ version: '2'
services:
apache:
image: 'bitnami/apache:latest'
labels:
kompose.service.type: nodeport
ports:
- '80:80'
- '443:443'
+5
View File
@@ -3,6 +3,8 @@ items:
- apiVersion: v1
kind: Service
metadata:
annotations:
kompose.service.type: nodeport
creationTimestamp: null
labels:
io.kompose.service: apache
@@ -17,11 +19,14 @@ items:
targetPort: 443
selector:
io.kompose.service: apache
type: NodePort
status:
loadBalancer: {}
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
kompose.service.type: nodeport
creationTimestamp: null
name: apache
spec: