id: kubelet-healthz

info:
  name: Kubelet Healthz
  author: sharath
  severity: info
  description: Scans for kubelet healthz
  metadata:
    max-request: 1
  tags: tech,k8s,kubernetes,devops,kubelet

http:
  - method: GET
    path:
      - "{{BaseURL}}/healthz"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: regex
        part: header
        regex:
          - "text/plain"

      - type: word
        part: body
        words:
          - "ok"

      - type: word
        part: header
        words:
          - "Kubernetes"
# digest: 4a0a0047304502205404db415a028a9601b0b71b445ce31c27346f0626fab78ddb11038289b59755022100af9cacbc8170f7d7610cf6e127dd321ec299c76a16e6641f5ad184decffc0188:922c64590222798bb761d5b6d8e72950