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