Skip to content

Snippets

Brian Jang edited this page Oct 29, 2024 · 15 revisions

OpenShift Snippets

Certificates

Check the expiry of the EMPI cert:

-

Redis

Flush the Redis cluster from any node in the cluster:

  1. Get a list of pods.
 oc get pods
  1. Look up port for redis pod.
 oc describe pod <redis-pod-name>
  1. Go to a Redis pod.
 oc rsh <redis-pod-name>
  1. Enter command to flush cache.
 redis-cli -h $(redis-cli -p <sentinal-port-number> --raw sentinel get-master-addr-by-name healthgateway | sed -n '1p') -p $(redis-cli - p <sentinal-port-number> --raw sentinel get-master-addr-by-name healthgateway | sed -n '2p') FLUSHALL
Clone this wiki locally