Skip to content

Instantly share code, notes, and snippets.

@ramr
Last active March 24, 2016 01:22
Show Gist options
  • Save ramr/3b5a6db1c89c5646d7c5 to your computer and use it in GitHub Desktop.
Save ramr/3b5a6db1c89c5646d7c5 to your computer and use it in GitHub Desktop.
router flake debug
[ramr@localhost origin (cached:reload-fixes:c-0:s-0+0:o-114)]$ echo $(oc get endpoints router --output-version=v1beta3 --template='{{ if .subsets }}{{ len .subsets }}{{ else }}0{{ end }}')
1
[ramr@localhost origin (cached:reload-fixes:c-0:s-0+0:o-114)]$ oc get endpoints router
NAME ENDPOINTS AGE
router 33s
... wait for the router pod to come up ...
[ramr@localhost origin (cached:reload-fixes:c-0:s-0+0:o-114)]$ oc get endpoints router
NAME ENDPOINTS AGE
router 10.0.2.15:80,10.0.2.15:443,10.0.2.15:1936 1m
[ramr@localhost origin (cached:reload-fixes:c-0:s-0+0:o-114)]$ echo $(oc get endpoints router --output-version=v1beta3 --template='{{ if .subsets }}{{ len .subsets }}{{ else }}0{{ end }}')
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment