Start–KubeProxy - anongitmous/k8sShell GitHub Wiki
Use an HTTP proxy to access the Kubernetes API.
[-Port] <Int32>
[<CommonParameters>]
(taken from proxy)
Creates a proxy server or application-level gateway between localhost and the Kubernetes API server. It also allows serving static content over specified HTTP path. All incoming data enters through one port and gets forwarded to the remote Kubernetes API server port, except for the path matching the static content path.
ℹ️ See A Note about the Examples
1. Start a kube proxy using the currently active cluster configuration value for the port
- Using aliasing, the above can be shortened to
ksskp
2. Start a kube proxy specifying a value explicitly for the port
- Using aliasing, the above can be shortened to
ksskp 8080
-Port
- The port to use for kubectl proxy.
| Type: | Int32 |
| Aliases: | |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
| Specific Cluster Config Key: | kube-proxy-port |
K8sShell includes the following alias for Start-KubeProxy:
- ksskp