Add new repository configuration for Headlamp in Argo CD application manifest to enhance deployment management and streamline application synchronization.

This commit is contained in:
Nikholas Pcenicni
2026-05-13 17:47:21 -04:00
parent 8694773593
commit e448e6264e
3 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
# Grant Headlamp's ServiceAccount read access to the Kubernetes Metrics API.
# The chart binds headlamp SA to 'edit' (safe default) but 'edit' does not include
# metrics.k8s.io — without this, Headlamp shows no CPU/memory/node data on the dashboard.
# This binding is additive: it does not escalate headlamp beyond 'edit' elsewhere.
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: headlamp-metrics-reader
labels:
app.kubernetes.io/name: headlamp
app.kubernetes.io/managed-by: Helm
rules:
- apiGroups: ["metrics.k8s.io"]
resources: ["nodes", "pods"]
verbs: ["get", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: headlamp-metrics-reader
labels:
app.kubernetes.io/name: headlamp
app.kubernetes.io/managed-by: Helm
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: headlamp-metrics-reader
subjects:
- kind: ServiceAccount
name: headlamp
namespace: headlamp