Snippets - bcgov/healthgateway GitHub Wiki
OpenShift Snippets
Certificates
Check the expiry of the EMPI cert:
-
Redis
Flush the Redis cluster from any node in the cluster:
- Get a list of pods.
oc get pods
- Look up port for redis pod.
oc describe pod <redis-pod-name>
- Go to a Redis pod.
oc rsh <redis-pod-name>
- 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