Unable to use checkmk for kubernetes

CMK version: OMD - Open Monitoring Distribution Version 2.1.0p22.cfe

OS version: “Ubuntu 22.04.1 LTS”

Error message:

I am following the official monitoring_kubernetes web page.

ubuntu@chkcmk-dev:~/checkmk$ helm upgrade --install --create-namespace -n checkmk-monitoring myrelease tribe29/checkmk -f values.yaml
Release “myrelease” does not exist. Installing it now.
Error: unable to build kubernetes objects from release manifest: [resource mapping not found for name: “myrelease-checkmk-cluster-collector” namespace: “” from “”: no matches for kind “PodSecurityPolicy” in version “policy/v1beta1”
ensure CRDs are installed first, resource mapping not found for name: “myrelease-checkmk-node-collector-container-metrics” namespace: “” from “”: no matches for kind “PodSecurityPolicy” in version “policy/v1beta1”
ensure CRDs are installed first, resource mapping not found for name: “myrelease-checkmk-node-collector-machine-sections” namespace: “” from “”: no matches for kind “PodSecurityPolicy” in version “policy/v1beta1”
ensure CRDs are installed first]
ubuntu@chkcmk-dev:~/checkmk$ helm version
version.BuildInfo{Version:“v3.11.1”, GitCommit:“293b50c65d4d56187cd4e2f390f0ada46b4c4737”, GitTreeState:“clean”, GoVersion:“go1.18.10”}
ubuntu@chkcmk-dev:~/checkmk$ kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:“1”, Minor:“26”, GitVersion:“v1.26.1”, GitCommit:“8f94681cd294aa8cfd3407b8191f6c70214973a4”, GitTreeState:“clean”, BuildDate:“2023-01-18T15:58:16Z”, GoVersion:“go1.19.5”, Compiler:“gc”, Platform:“linux/amd64”}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:“1”, Minor:“25”, GitVersion:“v1.25.4”, GitCommit:“872a965c6c6526caa949f0c6ac028ef7aff3fb78”, GitTreeState:“clean”, BuildDate:“2022-11-09T13:29:58Z”, GoVersion:“go1.19.3”, Compiler:“gc”, Platform:“linux/amd64”}
ubuntu@chkcmk-dev:~/checkmk$

Related info:

Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)

solved editing values.yaml and changing true to false:

rbac:
pspEnabled: false

1 Like

Guess we gotta set set on default pspEnabled: false asap…
Dev is aware of this.
I felt free to mark your solution @iker because it is so straight forward :smiley:

1 Like
2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.