Add new repository configuration for Headlamp in Argo CD application manifest to enhance deployment management and streamline application synchronization.
This commit is contained in:
@@ -16,6 +16,9 @@ spec:
|
|||||||
releaseName: headlamp
|
releaseName: headlamp
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/clusters/noble/bootstrap/headlamp/values.yaml
|
- $values/clusters/noble/bootstrap/headlamp/values.yaml
|
||||||
|
- repoURL: https://gitea.pcenicni.ca/gsdavidp/home-server.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: clusters/noble/bootstrap/headlamp
|
||||||
- repoURL: https://gitea.pcenicni.ca/gsdavidp/home-server.git
|
- repoURL: https://gitea.pcenicni.ca/gsdavidp/home-server.git
|
||||||
targetRevision: HEAD
|
targetRevision: HEAD
|
||||||
ref: values
|
ref: values
|
||||||
|
|||||||
5
clusters/noble/bootstrap/headlamp/kustomization.yaml
Normal file
5
clusters/noble/bootstrap/headlamp/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- metrics-clusterrolebinding.yaml
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user