mirror of
https://github.com/bitnami/containers.git
synced 2026-03-06 15:09:19 +08:00
Set kompose.service.type label so kubernetes service is NodePort
This commit is contained in:
@@ -3,6 +3,8 @@ version: '2'
|
||||
services:
|
||||
nginx:
|
||||
image: 'bitnami/nginx:1'
|
||||
labels:
|
||||
kompose.service.type: nodeport
|
||||
ports:
|
||||
- '80:80'
|
||||
- '443:443'
|
||||
|
||||
@@ -3,6 +3,8 @@ version: '2'
|
||||
services:
|
||||
nginx:
|
||||
image: 'bitnami/nginx:latest'
|
||||
labels:
|
||||
kompose.service.type: nodeport
|
||||
ports:
|
||||
- '80:80'
|
||||
- '443:443'
|
||||
|
||||
@@ -3,6 +3,8 @@ items:
|
||||
- apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.service.type: nodeport
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: nginx
|
||||
@@ -17,11 +19,14 @@ items:
|
||||
targetPort: 443
|
||||
selector:
|
||||
io.kompose.service: nginx
|
||||
type: NodePort
|
||||
status:
|
||||
loadBalancer: {}
|
||||
- apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.service.type: nodeport
|
||||
creationTimestamp: null
|
||||
name: nginx
|
||||
spec:
|
||||
|
||||
Reference in New Issue
Block a user