updates
commit
f0ae348b02
|
|
@ -136,6 +136,9 @@ K9s uses aliases to navigate most K8s resources.
|
|||
|
||||
| Command | Result | Example |
|
||||
| --------------------------- | -------------------------------------------------- | -------------------------- |
|
||||
| `:dp`, `:deploy` | View deployments | |
|
||||
| `:no`, `:nodes` | View nodes | |
|
||||
| `:svc`, `:service` | View services | |
|
||||
| `:`alias`<ENTER>` | View a Kubernetes resource aliases | `:po<ENTER>` |
|
||||
| `?` | Show keyboard shortcuts and help | |
|
||||
| `Ctrl-a` | Show all available resource alias | select+`<ENTER>` to view |
|
||||
|
|
|
|||
|
|
@ -72,8 +72,8 @@ func (p *PortForwardExtender) fetchPodName(path string) (string, error) {
|
|||
// ----------------------------------------------------------------------------
|
||||
// Helpers...
|
||||
|
||||
func tryListenPort(port string) error {
|
||||
server, err := net.Listen("tcp", fmt.Sprintf(":%s", port))
|
||||
func tryListenPort(address, port string) error {
|
||||
server, err := net.Listen("tcp", fmt.Sprintf("%s:%s", address, port))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -101,7 +101,7 @@ func runForward(v ResourceViewer, pf watch.Forwarder, f *portforward.PortForward
|
|||
}
|
||||
|
||||
func startFwdCB(v ResourceViewer, path, co string, t client.PortTunnel) {
|
||||
err := tryListenPort(t.LocalPort)
|
||||
err := tryListenPort(t.Address, t.LocalPort)
|
||||
if err != nil {
|
||||
v.App().Flash().Err(err)
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue