Navigation Menu

Skip to content

mtougeron/kuberhealthy-get-pods-check

Kuberhealthy Get Pods Check

Go Gosec ContainerScan GitHub tag

The Kuberhealthy Get Pods Check checks if the API servers returns a list of pods under a specified time-limit.

Thanks Comcast!

A big shout-out and thank you goes to Comcast for writing Kuberhealthy

Kuberhealthy AWS IAM Role Check Kube Spec Example

apiVersion: comcast.github.io/v1
kind: KuberhealthyCheck
metadata:
  name: get-pods
spec:
  runInterval: 5m
  timeout: 1m
  podSpec:
    containers:
    - name: main
      image: ghcr.io/mtougeron/khcheck-get-pods:latest
      imagePullPolicy: IfNotPresent
      env:
        - name: NAMESPACE
          value: "kuberhealthy"
        - name: MAX_DURATION_MILLISECONDS
          value: "250"
        - name: DEBUG
          value: "1"

where NAMESPACE is the Kubernetes namespace to get the pods from.

Installation

Make sure you are using the latest release of Kuberhealthy 2.x

Run kubectl apply against example spec file

kubectl apply -f khcheck-get-pods.yaml -n kuberhealthy

Container Image

Image is available Github Container Registry and DockerHub

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.

About

A Kuberhealthy check that checks if the API servers returns a list of pods under a specified time-limit.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks