You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Match podskind: ClusterPortForwardapiVersion: kwok.x-k8s.io/v1alpha1metadata:
name: cluster-port-forward-rulesspec:
selector:
matchNamespaces:
- podNamespacematchNames:
- podNameforwards: []
---
# Just for a Podkind: PortForwardapiVersion: kwok.x-k8s.io/v1alpha1metadata:
name: podNamenamespace: podNamespacespec:
# This is the list of ports that will be forwardedforwards:
# match the port 8001 forwards to the targetAddress:targetPort
- ports:
- 8001target:
port: 80address: localhost# match the port 8002 forwards with the stdin/stdout of nc
- ports:
- 8002command:
- nc
- localhost
- '80'# match the port 8003 forwards with the stdin/stdout of kubectl
- ports:
- 8003command:
- kubectl
- exec
- -i
- -n
- podNamespace
- podName
- -c
- podContainer
- --
- nc
- localhost
- '80'# match the port 8004 forwards with the stdin/stdout of docker
- ports:
- 8004command:
- docker
- exec
- -i
- container
- nc
- localhost
- '80'# the ports is not set and will be the default
- targetport: 80address: localhost
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: