Open r0bj opened 2 years ago
INFO[0005] ServiceAccount "argocd-manager" created in namespace "kube-system"
Do these accounts need to be created in the kube-system namespace? I'm currently trying to configure a namespaced installation where I don't have permissions to add to the kube-system namespace?
Checklist:
argocd version
.Describe the bug ArgoCD is installed as a namespace install (https://github.com/argoproj/argo-cd/tree/release-2.4/manifests). After adding local cluster with inputted credentials, deploy to the same cluster is broken. It seems that argocd doesn't have sufficient credentials to do it. Error message is generated (and similar for any resource):
To Reproduce
$ kubectl apply -f guestbook.yaml
$ argocd app get guestbook Name: guestbook Project: default Server: kind-kind Namespace: dev URL: https://127.0.0.1:60324/applications/guestbook Repo: https://github.com/argoproj/argocd-example-apps.git Target: HEAD Path: guestbook SyncWindow: Sync Allowed Sync Policy:
Sync Status: Unknown
Health Status: Healthy
CONDITION MESSAGE LAST TRANSITION ComparisonError failed to sync cluster https://10.96.0.1:443: failed to load initial state of resource NetworkPolicy.networking.k8s.io: networkpolicies.networking.k8s.io is forbidden: User "system:serviceaccount:argocd-infra:argocd-application-controller" cannot list resource "networkpolicies" in API group "networking.k8s.io" in the namespace "dev" 2022-09-14 15:26:19 -0700 PDT ComparisonError failed to sync cluster https://10.96.0.1:443: failed to load initial state of resource NetworkPolicy.networking.k8s.io: networkpolicies.networking.k8s.io is forbidden: User "system:serviceaccount:argocd-infra:argocd-application-controller" cannot list resource "networkpolicies" in API group "networking.k8s.io" in the namespace "dev" 2022-09-14 15:26:19 -0700 PDT UnknownError failed to sync cluster https://10.96.0.1:443: failed to load initial state of resource NetworkPolicy.networking.k8s.io: networkpolicies.networking.k8s.io is forbidden: User "system:serviceaccount:argocd-infra:argocd-application-controller" cannot list resource "networkpolicies" in API group "networking.k8s.io" in the namespace "dev" 2022-09-14 15:26:19 -0700 PDT