File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
en/docs/tutorials/services
zh/docs/tutorials/services Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ service/nodeport exposed
177
177
178
178
``` shell
179
179
NODEPORT=$( kubectl get -o jsonpath=" {.spec.ports[0].nodePort}" services nodeport)
180
- NODES=$( kubectl get nodes -o jsonpath=' { $.items[*].status.addresses[?(@.type=="ExternalIP ")].address }' )
180
+ NODES=$( kubectl get nodes -o jsonpath=' { $.items[*].status.addresses[?(@.type=="InternalIP ")].address }' )
181
181
```
182
182
183
183
If you're running on a cloud provider, you may need to open up a firewall-rule
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ service/nodeport exposed
150
150
151
151
``` console
152
152
NODEPORT=$(kubectl get -o jsonpath="{.spec.ports[0].nodePort}" services nodeport)
153
- NODES=$(kubectl get nodes -o jsonpath='{ $.items[*].status.addresses[?(@.type=="ExternalIP ")].address }')
153
+ NODES=$(kubectl get nodes -o jsonpath='{ $.items[*].status.addresses[?(@.type=="InternalIP ")].address }')
154
154
```
155
155
156
156
如果你的集群运行在一个云服务上,你可能需要为上面报告的 ` nodes:nodeport ` 开启一条防火墙规则。
You can’t perform that action at this time.
0 commit comments