Open izderadicka opened 2 years ago
Hey izderadicka, I'm seeing similar issues with argo on openshift any updates on this?
Easiest solution on Openshift is to use their version of Argo - called Openshift DevOps Operator, which works out of box.
I.
On Wed, Jun 8, 2022 at 9:26 PM Pat Jones @.***> wrote:
Hey izderadicka, I'm seeing similar issues with argo on openshift any updates on this?
— Reply to this email directly, view it on GitHub https://github.com/argoproj/argo-cd/issues/8731#issuecomment-1150310503, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQVUBJTAE4D2LUEWLHHUADVODXXXANCNFSM5QJFTVLQ . You are receiving this because you authored the thread.Message ID: @.***>
That's not really a fix though.
This is what's missing (of course names+namepaces will vary for each install)
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
labels:
app.kubernetes.io/component: redis
app.kubernetes.io/name: argocd-redis
app.kubernetes.io/part-of: argocd
name: argo-cd-redis
rules:
- apiGroups:
- security.openshift.io
resourceNames:
- nonroot
resources:
- securitycontextconstraints
verbs:
- use
...
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
labels:
app.kubernetes.io/component: redis
app.kubernetes.io/name: argocd-redis
app.kubernetes.io/part-of: argocd
name: argo-cd
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: argo-cd
subjects:
- kind: ServiceAccount
name: argo-cd
...
And here is the original PR commit that fixed argo-cd on openshift: https://github.com/argoproj/argo-cd/pull/4660
Describe the bug
After install of ArgoCD (as per getting started), argocd-redis pod was not started due to SCC error - see below.
I"ve found that problem was missing Role (Service Account was there, RoleMapping too, but Role itself was missing), after manually adding this role to argocd namespace, problem was fixed:
To Reproduce
Expected behavior
argocd-redis should run after install
Version
Logs