fix kube client side error
This commit is contained in:
37
apps/argocd-config/argocd-ha-patch-rbac.yaml
Normal file
37
apps/argocd-config/argocd-ha-patch-rbac.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
# RBAC für ArgoCD HA Patch Job
|
||||
# WICHTIG: Job braucht Rechte zum Patchen von Deployments
|
||||
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: argocd-ha-patch
|
||||
namespace: argocd
|
||||
rules:
|
||||
- apiGroups: ["apps"]
|
||||
resources: ["deployments"]
|
||||
verbs: ["get", "patch", "update"]
|
||||
- apiGroups: ["apps"]
|
||||
resources: ["deployments/status"]
|
||||
verbs: ["get"]
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: argocd-ha-patch
|
||||
namespace: argocd
|
||||
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: argocd-ha-patch
|
||||
namespace: argocd
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
name: argocd-ha-patch
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: argocd-ha-patch
|
||||
namespace: argocd
|
||||
Reference in New Issue
Block a user