Skip to content

Snippets

Brian Jang edited this page Aug 27, 2024 · 13 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>

4. Enter command to flush cache.
```console
 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') flush
Clone this wiki locally