Proxy to Openshift API
Follow this RedHat guide on setting up your environment for Openshift.
SSH Configuration
Host example-network
HostName 192.168.0.1
User someusername
PasswordAuthentication no
PubkeyAuthentication yes
IdentityFile ~/.ssh/example_network_id_ed25519
IdentitiesOnly yes
Port 22
ServerAliveInterval 10
ServerAliveCountMax 2
Compression yes
TCPKeepAlive yes
GatewayPorts yes
RemoteForward 5020
RemoteForward 8443 api.openshift.example.com:8443
Access to Openshift
Here's a short list of commands I use to verify access to Openshift.
The API token to Openshift are available upon logging in > click on your Username > Copy login command.
oc login --token=sha256... --server=localhost:8443
oc get pods
oc get svc
oc get routes
oc apply -f <folder with deploy folders>