tower 0.9.1 — read cluster Secret directly for capacity (RBAC scoped to argocd ns)
This commit is contained in:
@@ -29,6 +29,38 @@ rules:
|
|||||||
- apiGroups: ['metrics.k8s.io']
|
- apiGroups: ['metrics.k8s.io']
|
||||||
resources: ['nodes']
|
resources: ['nodes']
|
||||||
verbs: ['get', 'list']
|
verbs: ['get', 'list']
|
||||||
|
# Read ArgoCD's cluster Secrets (the registered customer-cluster
|
||||||
|
# creds) so Tower can build cross-cluster API clients for capacity
|
||||||
|
# queries. Scoped to a single Role+RoleBinding in the argocd ns —
|
||||||
|
# cluster-scoped Secret access would be over-broad.
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: Role
|
||||||
|
metadata:
|
||||||
|
name: {{ .Release.Name }}-tower-cluster-secrets
|
||||||
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
{{- include "tower.labels" . | nindent 4 }}
|
||||||
|
rules:
|
||||||
|
- apiGroups: ['']
|
||||||
|
resources: ['secrets']
|
||||||
|
verbs: ['get', 'list']
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: RoleBinding
|
||||||
|
metadata:
|
||||||
|
name: {{ .Release.Name }}-tower-cluster-secrets
|
||||||
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
{{- include "tower.labels" . | nindent 4 }}
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: tower
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
roleRef:
|
||||||
|
kind: Role
|
||||||
|
name: {{ .Release.Name }}-tower-cluster-secrets
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ backend:
|
|||||||
enabled: true
|
enabled: true
|
||||||
image:
|
image:
|
||||||
repository: docker.io/odoosky/tower
|
repository: docker.io/odoosky/tower
|
||||||
tag: "0.9.0"
|
tag: "0.9.1"
|
||||||
pullPolicy: IfNotPresent # IfNotPresent because the image is in
|
pullPolicy: IfNotPresent # IfNotPresent because the image is in
|
||||||
# containerd's k8s.io namespace already
|
# containerd's k8s.io namespace already
|
||||||
# (lab1 single-server). Replace with
|
# (lab1 single-server). Replace with
|
||||||
|
|||||||
Reference in New Issue
Block a user