[deads@deads-02 cluster-etcd-operator]$ oc rsh -f ~/Downloads/debug-pod.yaml Error: unknown shorthand flag: 'f' in -f this prevents creating a pod manifest and rsh into it immediately. the kubectl standard is to take a -f and harvest the namespace and name from it.
The upstream part is in https://github.com/kubernetes/kubernetes/pull/88460 we'll get it in the next release.
*** Bug 1707833 has been marked as a duplicate of this bug. ***
PRs in the queue.
[zhouying@dhcp-140-138 ~]$ oc version Client Version: 4.5.0-202005270117-384535d Kubernetes Version: v1.18.2+9835af5 [zhouying@dhcp-140-138 ~]$ oc rsh -f /tmp/hellopod.yaml cat /etc/resolv.conf search zhouyrsh.svc.cluster.local svc.cluster.local cluster.local c.openshift-qe.internal google.internal nameserver 172.30.0.10 options ndots:5
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2409