Skip to content

Instantly share code, notes, and snippets.

@portante
Last active August 10, 2017 01:05
Show Gist options
  • Select an option

  • Save portante/b312d0090847109ec9c36460a81d46aa to your computer and use it in GitHub Desktop.

Select an option

Save portante/b312d0090847109ec9c36460a81d46aa to your computer and use it in GitHub Desktop.
How to tell which host is the active controller in OpenShift
#!/bin/bash
# The actively running controller returns 200 for /controllers on port 8444.
oc get --raw /controllers --server https://localhost:8444
# You'll get 201 accepted if the controller is waiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment