Enables CPU/memory visibility in k9s and kubectl top by deploying the Kubernetes metrics-server via the metrics.k8s.io API. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
32 lines
690 B
YAML
32 lines
690 B
YAML
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
annotations:
|
|
a8r.io/repository: ssh://git@git.tr1ceracop.de:222/gitea_admin/k8s-and-chill.git
|
|
labels:
|
|
app.kubernetes.io/instance: metrics-server
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/name: metrics-server
|
|
app.kubernetes.io/version: 0.7.2
|
|
helm.sh/chart: metrics-server-3.12.2
|
|
name: system:metrics-server
|
|
namespace: kube-system
|
|
rules:
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- nodes/metrics
|
|
verbs:
|
|
- get
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- pods
|
|
- nodes
|
|
- namespaces
|
|
- configmaps
|
|
verbs:
|
|
- get
|
|
- list
|
|
- watch
|