/ssh-bastion

An ssh-bastion pod to make access to openshift clusters easy

Primary LanguageShellApache License 2.0Apache-2.0

ssh-bastion

An ssh-bastion pod to make access to openshift clusters easy

  1. Make sure that oc is configured to talk to the cluster
  2. (Optionally configure namespace where the bastion will run: export SSH_BASTION_NAMESPACE=openshift-ssh-bastion. openshift-ssh-bastion is used by default.)
  3. Run: curl https://raw.githubusercontent.com/eparis/ssh-bastion/master/deploy/deploy.sh | bash
  4. ssh as core to/through the bastion.
  5. 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.