@@ -87,14 +87,14 @@ When you set the `https_proxy` variable, tools such as `curl` route HTTPS traffi
87
87
you configured. For this to work, the tool must support SOCKS5 proxying.
88
88
89
89
{{< 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 ` .
92
92
The ` curl ` tool sends the hostname from the HTTPS URL over SOCKS, and the remote server
93
93
resolves that locally (to an address that belongs to its loopback interface).
94
94
{{</ note >}}
95
95
96
96
``` shell
97
- curl -k -v https://localhost/api
97
+ curl -k -v https://localhost:6443 /api
98
98
```
99
99
100
100
To use the official Kubernetes client ` kubectl ` with a proxy, set the ` proxy-url ` element
@@ -105,7 +105,7 @@ apiVersion: v1
105
105
clusters :
106
106
- cluster :
107
107
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
109
109
proxy-url : socks5://localhost:1080 # the "SSH SOCKS5 proxy" in the diagram above (DNS resolution over socks is built-in)
110
110
name : default
111
111
contexts :
@@ -142,4 +142,4 @@ Type `unset https_proxy` in a terminal to stop forwarding http traffic through t
142
142
143
143
# # Further reading
144
144
145
- * [OpenSSH remote login client](https://man.openbsd.org/ssh)
145
+ * [OpenSSH remote login client](https://man.openbsd.org/ssh)
0 commit comments