mirror of https://github.com/k3s-io/k3s
podex/nodejs-hello: add hostPort
parent
68ce589d5f
commit
1b2604f642
|
@ -9,6 +9,7 @@
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"name": "nodejs-hello-tcp-8080",
|
"name": "nodejs-hello-tcp-8080",
|
||||||
|
"hostPort": 80,
|
||||||
"containerPort": 8080,
|
"containerPort": 8080,
|
||||||
"protocol": "TCP"
|
"protocol": "TCP"
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,5 +6,6 @@ containers:
|
||||||
image: google/nodejs-hello
|
image: google/nodejs-hello
|
||||||
ports:
|
ports:
|
||||||
- name: nodejs-hello-tcp-8080
|
- name: nodejs-hello-tcp-8080
|
||||||
|
hostPort: 80
|
||||||
containerPort: 8080
|
containerPort: 8080
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|
Loading…
Reference in New Issue