mirror of
https://github.com/bitnami/containers.git
synced 2026-02-16 10:27:16 +08:00
Set kompose.service.type label so kubernetes service is NodePort
This commit is contained in:
@@ -10,6 +10,8 @@ services:
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
wordpress:
|
||||
image: 'bitnami/wordpress:4'
|
||||
labels:
|
||||
kompose.service.type: nodeport
|
||||
ports:
|
||||
- '80:80'
|
||||
- '443:443'
|
||||
|
||||
@@ -10,6 +10,8 @@ services:
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
wordpress:
|
||||
image: 'bitnami/wordpress:latest'
|
||||
labels:
|
||||
kompose.service.type: nodeport
|
||||
ports:
|
||||
- '80:80'
|
||||
- '443:443'
|
||||
|
||||
@@ -20,6 +20,8 @@ items:
|
||||
- apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.service.type: nodeport
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: wordpress
|
||||
@@ -34,6 +36,7 @@ items:
|
||||
targetPort: 443
|
||||
selector:
|
||||
io.kompose.service: wordpress
|
||||
type: NodePort
|
||||
status:
|
||||
loadBalancer: {}
|
||||
- apiVersion: extensions/v1beta1
|
||||
@@ -88,6 +91,8 @@ items:
|
||||
- apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.service.type: nodeport
|
||||
creationTimestamp: null
|
||||
name: wordpress
|
||||
spec:
|
||||
|
||||
Reference in New Issue
Block a user