An ssh-bastion pod to make access to openshift clusters easy
- Make sure that
oc
is configured to talk to the cluster - (Optionally configure namespace where the bastion will run:
export SSH_BASTION_NAMESPACE=openshift-ssh-bastion
.openshift-ssh-bastion
is used by default.) - Run:
curl https://raw.githubusercontent.com/eparis/ssh-bastion/master/deploy/deploy.sh | bash
- ssh as core to/through the bastion.
- The bastion address can be found by running
oc get service -n openshift-ssh-bastion ssh-bastion -o jsonpath='{.status.loadBalancer.ingress[0].hostname}'
https://raw.githubusercontent.com/eparis/ssh-bastion/master/ssh.sh provides a simple script to automate sshing through to bastion to nodes in the cluster.