Set kompose.service.type label so kubernetes service is NodePort
This commit is contained in:
parent
fc9347d98f
commit
54c0c6433e
|
|
@ -8,6 +8,8 @@ services:
|
|||
- 'mariadb_data:/bitnami/mariadb'
|
||||
ghost:
|
||||
image: 'bitnami/ghost:0'
|
||||
labels:
|
||||
kompose.service.type: nodeport
|
||||
ports:
|
||||
- '80:2368'
|
||||
volumes:
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ services:
|
|||
- 'mariadb_data:/bitnami/mariadb'
|
||||
ghost:
|
||||
image: 'bitnami/ghost:latest'
|
||||
labels:
|
||||
kompose.service.type: nodeport
|
||||
ports:
|
||||
- '80:2368'
|
||||
volumes:
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ items:
|
|||
- apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.service.type: nodeport
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: ghost
|
||||
|
|
@ -14,6 +16,7 @@ items:
|
|||
targetPort: 2368
|
||||
selector:
|
||||
io.kompose.service: ghost
|
||||
type: NodePort
|
||||
status:
|
||||
loadBalancer: {}
|
||||
- apiVersion: v1
|
||||
|
|
@ -36,6 +39,8 @@ items:
|
|||
- apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.service.type: nodeport
|
||||
creationTimestamp: null
|
||||
name: ghost
|
||||
spec:
|
||||
|
|
|
|||
Loading…
Reference in New Issue