Junqi Zhao created JBIDE-26324:
----------------------------------
Summary: Port forwarding failed for JBoss Tools 4.6.0.Final
Key: JBIDE-26324
URL:
https://issues.jboss.org/browse/JBIDE-26324
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.6.0.Final
Environment: JBoss Tools 4.6.0.Final
$ oc version
oc v3.11.0-0.24.0
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO
Reporter: Junqi Zhao
Attachments: port_forward.png
Port forwarding failed for JBoss Tools 4.6.0.Final
error is in the followings, flag "-p" is deprecated
An internal error occurred during: "Starting port forwarding...".
OpenShiftBinaryCapability process exited: Error: unknown shorthand flag: 'p' in
-p
Usage:
oc port-forward TYPE/NAME [LOCAL_PORT:]REMOTE_PORT [...[LOCAL_PORT_N:]REMOTE_PORT_N]
[flags]
Examples:
# Listens on ports 5000 and 6000 locally, forwarding data to/from ports 5000 and 6000 in
the pod
oc port-forward mypod 5000 6000
# Listens on port 8888 locally, forwarding to 5000 in the pod
oc port-forward mypod 8888:5000
# Listens on a random port locally, forwarding to 5000 in the pod
oc port-forward mypod :5000
# Listens on a random port locally, forwarding to 5000 in the pod
oc port-forward mypod 0:5000
Options:
--pod-running-timeout=1m0s: The length of time (like 5s, 2m, or 3h, higher than
zero) to wait until at least one pod is running
Use "oc options" for a list of global command-line options (applies to all
commands).
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)