Skip to content

Cri-timeout is not propagate to health-checker #1248

@lenglet-k

Description

@lenglet-k

Hello,

We use this following custom plugin config:

      health-checker-containerd.json: |
        {
          "plugin": "custom",
          "pluginConfig": {
            "invoke_interval": "10s",
            "timeout": "3m",
            "max_output_length": 80,
            "concurrency": 1
          },
          "source": "health-checker",
          "metricsReporting": true,
          "conditions": [
            {
              "type": "ContainerRuntimeUnhealthy",
              "reason": "ContainerRuntimeIsHealthy",
              "message": "Container runtime on the node is functioning properly"
            }
          ],
          "rules": [
            {
              "type": "permanent",
              "condition": "ContainerRuntimeUnhealthy",
              "reason": "ContainerdUnhealthy",
              "path": "/home/kubernetes/bin/health-checker",
              "args": [
                "--component=cri",
                "--enable-repair=true",
                "--cooldown-time=2m",
                "--cri-timeout=10s",
                "--health-check-timeout=60s"
              ],
              "timeout": "3m"
            }
          ]
        }

and the --cri-timeout is not propagate to health_checker.go:194:

I0313 15:49:00.940744 3782720 health_checker.go:194] command /usr/bin/crictl --timeout=2s --runtime-endpoint=unix:///var/run/containerd/containerd.sock pods --latest

how to pass this configuration properly ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions