forked from LaconicNetwork/kompose
fix: expose container to host only with labels (#1880)
Signed-off-by: ahmed.g <ahmed.g@adjoe.io> Signed-off-by: TessaIO <ahmedgrati1999@gmail.com>
This commit is contained in:
@@ -67,7 +67,6 @@ spec:
|
||||
name: db
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
hostPort: 3306
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/mysql
|
||||
@@ -118,7 +117,6 @@ spec:
|
||||
name: wordpress
|
||||
ports:
|
||||
- containerPort: 80
|
||||
hostPort: 8000
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- mountPath: /var/www/html
|
||||
|
||||
@@ -63,7 +63,6 @@ spec:
|
||||
name: db
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
hostPort: 3306
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/mysql
|
||||
@@ -114,7 +113,6 @@ spec:
|
||||
name: db
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
hostPort: 3306
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/mysql
|
||||
@@ -185,7 +183,6 @@ spec:
|
||||
name: wordpress
|
||||
ports:
|
||||
- containerPort: 80
|
||||
hostPort: 8000
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- mountPath: /var/www/html
|
||||
@@ -236,7 +233,6 @@ spec:
|
||||
name: wordpress
|
||||
ports:
|
||||
- containerPort: 80
|
||||
hostPort: 8000
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- mountPath: /var/www/html
|
||||
|
||||
Reference in New Issue
Block a user