osp4
osp4 copied to clipboard
Can't forward to port 442
Info
Hypeorvisor : Virtualbox
Problem
The routes are well exposed but we can't forward to port 443
oc get routes --all-namespaces
NAMESPACE NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
openshift-console console console-openshift-console.apps.test1.tt.testing console https reencrypt/Redirect None
openshift-image-registry image-registry-default-route image-registry-default-route-openshift-image-registry.apps.test1.tt.testing image-registry <all> reencrypt None
openshift-monitoring alertmanager-main alertmanager-main-openshift-monitoring.apps.test1.tt.testing alertmanager-main web reencrypt/Redirect None
openshift-monitoring grafana grafana-openshift-monitoring.apps.test1.tt.testing grafana https reencrypt/Redirect None
openshift-monitoring prometheus-k8s prometheus-k8s-openshift-monitoring.apps.test1.tt.testing prometheus-k8s web reencrypt/Redirect None
openshift-osin openshift-osin openshift-osin-openshift-osin.apps.test1.tt.testing openshift-osin 443 reencrypt/Redirect None
oc get svc/router-default -n openshift-ingress
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
router-default LoadBalancer 172.30.65.72 <pending> 80:31717/TCP,443:31607/TCP 17d
Error
oc -n openshift-ingress port-forward svc/router-default 443
error: error upgrading connection: error dialing backend: dial tcp: lookup test1-worker-0-vqgct on 192.168.56.1:53: no such host
you need to use sudo for your port-forwarding. normal user is not alowed to open a port < 1024... see readme... and it's port 443!