Skip to content

Commit 7a6a653

Browse files
authored
Merge pull request #33856 from fjammes/patch-1
Update socks5-proxy-access-api.md
2 parents af65de3 + 1f22d45 commit 7a6a653

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/en/docs/tasks/extend-kubernetes/socks5-proxy-access-api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ When you set the `https_proxy` variable, tools such as `curl` route HTTPS traffi
8787
you configured. For this to work, the tool must support SOCKS5 proxying.
8888

8989
{{< note >}}
90-
In the URL https://localhost/api, `localhost` does not refer to your local client computer.
91-
Instead, it refers to the endpoint on the remote server knows as `localhost`.
90+
In the URL https://localhost:6443/api, `localhost` does not refer to your local client computer.
91+
Instead, it refers to the endpoint on the remote server known as `localhost`.
9292
The `curl` tool sends the hostname from the HTTPS URL over SOCKS, and the remote server
9393
resolves that locally (to an address that belongs to its loopback interface).
9494
{{</ note >}}
9595

9696
```shell
97-
curl -k -v https://localhost/api
97+
curl -k -v https://localhost:6443/api
9898
```
9999

100100
To use the official Kubernetes client `kubectl` with a proxy, set the `proxy-url` element
@@ -105,7 +105,7 @@ apiVersion: v1
105105
clusters:
106106
- cluster:
107107
certificate-authority-data: LRMEMMW2 # shortened for readability
108-
server: https://localhost # the "Kubernetes API" in the diagram above
108+
server: https://<API_SERVER_IP_ADRESS>:6443 # the "Kubernetes API" server, in other words the IP address of kubernetes-remote-server.example
109109
proxy-url: socks5://localhost:1080 # the "SSH SOCKS5 proxy" in the diagram above (DNS resolution over socks is built-in)
110110
name: default
111111
contexts:
@@ -142,4 +142,4 @@ Type `unset https_proxy` in a terminal to stop forwarding http traffic through t
142142

143143
## Further reading
144144

145-
* [OpenSSH remote login client](https://man.openbsd.org/ssh)
145+
* [OpenSSH remote login client](https://man.openbsd.org/ssh)

0 commit comments

Comments
 (0)