Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.29 KB

File metadata and controls

26 lines (18 loc) · 1.29 KB

Kubernetes Redis Healthcheck

A set of tasks which performs a health check and read/write verification on a Redis workload running in a Kubernetes cluster.

Tasks

Ping Redis Workload Verify Redis Read Write Operation

Configuration

The TaskSet requires initialization to import necessary secrets, services, and user variables. The following variables should be set:

  • kubeconfig: The kubeconfig secret containing access info for the cluster.
  • kubectl: The location service used to interpret shell commands. Default value is kubectl-service.shared.
  • KUBERNETES_DISTRIBUTION_BINARY: Which binary to use for Kubernetes CLI commands. Default value is kubectl.
  • CONTEXT: The Kubernetes context to operate within.
  • NAMESPACE: The name of the namespace to search. Leave it blank to search in all namespaces.
  • DEPLOYMENT_NAME: The name of the deployment running Redis

Notes

Please note that the script requires permissions to execute commands within the Kubernetes cluster, and it may require additional permissions depending on the tasks it performs (for example, fetching storage utilization for PVC mounts requires kubectl exec permissions). Make sure to review the tasks and the required permissions before running the script.

TODO

  • Add documentation
  • Refine raised issues