Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info

This article helps debug issues with the Kubernetes cluster collector.

...



Panel
borderColor

...

#CCCCCC

...

bgColor

...

#e3fcef

LAST TESTED ON CHECKMK 2.3.0P1



Panel
borderColorblack
bgColor#f8f8f8
titleTable of Contents

Table of Contents

Problem

When installing the new Kubernetes cluster collector (Checkmk 2.1), the following error appears (in the Kubernetes event logs)

Code Block
languagebash
themeRDark
Error: failed to start container "cadvisor": Error response from daemon: linux spec capabilities: Unknown capability to add: "CAP_CAP_SYS_PTRACE"


This happens when you are using older container runtime versions, which always add CAP_ to each capability drop.

Tip
This problem is fixed in Docker 19.03 and containerd 1.4.5

Solution

Change in the values.yaml under nodeCollector.cadvisor.securityContext:

Code Block
languagebash
themeRDark
capabilities:
        drop:
          - ALL
        add: ["SYS_PTRACE"]

(Remove the "CAP_")

Filter by label
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ( "kubernetes" , "k8s" , "troubleshooting" ) and type = "page" and space = "KB"
labelskubernetes


Page Properties
hiddentrue


Related issues