You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kubectl get sts prometheus-prometheus-kube-prometheus-prometheus
149
149
```
150
150
151
+
Note: `podMonitorSelectorNilUsesHelmValues` is disabled (set to false) so Prometheus operator will be able to handle PCM podMonitor deployed without extra `podMonitorLabels` or otherwise pcm need to be deployed like this:
152
+
`helm install pcm . --set podMonitor=true --set podMonitorLabels.release=prometheus` (assuming Prometheus operator was deployed as "prometheus")
#### Direct method as non-privileged container (not recommended)
219
222
220
-
**TODO**: TO BE MOVED TO EXTERNAL FILE/SECTION
221
-
222
-
**Note** PCM requires access to /dev/cpu device in read writer mode (MSR access) but it is no possible currently to mount devices in Kubernetes pods/containers in vanila Kubernetes. Please read this isses for more information https://github.com/kubernetes/kubernetes/issues/5607.
223
-
224
-
##### a) Device injection using 3rd party device-plugin
225
-
226
-
227
-
TO run PCM with as non privileged pod, we can third party devices plugins e.g.:
# Check that cpu and mem devices are available - should return "1"
246
-
kubectl get node kind-control-plane -o json | jq .status.capacity
223
+
**Note** PCM requires access to /dev/cpu device in read-write mode (MSR access) but it is no possible currently to mount devices in Kubernetes pods/containers in vanilla Kubernetes for unprivileged containers. Please find more about this limitation https://github.com/kubernetes/kubernetes/issues/5607.
247
224
248
-
# Install pcm helm chart in unprivileged mode with extraResources for cpu and memory devices.
To expose necessary devices to pcm-sensor-server, one can use:
251
226
252
-
##### b) Device injection using NRI plugin device-injection
227
+
a) Kubernetes device plugin (using Kubernetes [CDI](https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/) interface),
228
+
b) containerd plugin (using [NRI](https://github.com/containerd/nri/) interface),
253
229
254
-
**TODO**: **Warning** This is work in progress, because it is needed to manually specific all /dev/cpu/XX/msr devices, which is unpractical in production (TO BE MOVED TO EXTERNAL FILE).
##### b) Device injection using NRI plugin device-injection
35
+
36
+
**TODO**: **Warning** This is work in progress, because it is needed to manually specific all /dev/cpu/XX/msr devices, which is unpractical in production (TO BE MOVED TO EXTERNAL FILE).
0 commit comments