Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (19 loc) · 757 Bytes

File metadata and controls

25 lines (19 loc) · 757 Bytes

Running kubernetes metrics-server

Add the following labels to kube-system namespace

      pod-security.kubernetes.io/audit: privileged
      pod-security.kubernetes.io/enforce: privileged
      pod-security.kubernetes.io/warn: privileged

Then apply the kube-metrics manifests. It is slighty modified from upstream for MicroShift. The upstream manifests can be viewed in kubernetes-sigs/metrics-server repository

oc apply -f manifests/metrics-server/scc.yaml
oc apply -f manifests/metrics-server/metrics-server-components.yaml

You should now be able to run kubectl top command to show CPU & memory usage for all pods and node.

kubectl top pod -A
kubectl top node