Start–KubeProxy - anongitmous/k8sShell GitHub Wiki

Use an HTTP proxy to access the Kubernetes API.

Syntax

Start-KubeProxy

[-Port] <Int32>
[<CommonParameters>]

Description

(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.

Examples

ℹ️ See A Note about the Examples

1. Start a kube proxy using the currently active cluster configuration value for the port

Start-KubeProxy

  • Using aliasing, the above can be shortened to
    ksskp

2. Start a kube proxy specifying a value explicitly for the port

Start-KubeProxy -Port 8080

  • 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

Notes

K8sShell includes the following alias for Start-KubeProxy:

  • ksskp
⚠️ **GitHub.com Fallback** ⚠️