Skip to content

Commit

Permalink
Merge pull request #22725 from Cweiping/fix_svc_type_error
Browse files Browse the repository at this point in the history
fix svc type error
  • Loading branch information
k8s-ci-robot committed Jul 25, 2020
2 parents fdcff32 + 75b8566 commit 4e81aa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/en/docs/tutorials/services/source-ip.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ service/nodeport exposed

```shell
NODEPORT=$(kubectl get -o jsonpath="{.spec.ports[0].nodePort}" services nodeport)
NODES=$(kubectl get nodes -o jsonpath='{ $.items[*].status.addresses[?(@.type=="ExternalIP")].address }')
NODES=$(kubectl get nodes -o jsonpath='{ $.items[*].status.addresses[?(@.type=="InternalIP")].address }')
```

If you're running on a cloud provider, you may need to open up a firewall-rule
Expand Down
2 changes: 1 addition & 1 deletion content/zh/docs/tutorials/services/source-ip.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ service/nodeport exposed

```console
NODEPORT=$(kubectl get -o jsonpath="{.spec.ports[0].nodePort}" services nodeport)
NODES=$(kubectl get nodes -o jsonpath='{ $.items[*].status.addresses[?(@.type=="ExternalIP")].address }')
NODES=$(kubectl get nodes -o jsonpath='{ $.items[*].status.addresses[?(@.type=="InternalIP")].address }')
```

如果你的集群运行在一个云服务上,你可能需要为上面报告的 `nodes:nodeport` 开启一条防火墙规则。
Expand Down

0 comments on commit 4e81aa8

Please sign in to comment.