`Error from server (Forbidden): deployments.apps "app" is forbidden: User "system:serviceaccount:ci:deployer" cannot patch resource`.
AdvancedTroubleshootingDeployment, Kubernetes and GitOps Failures
Answer
Likely causes → RBAC Role lacks verbs for the resource, or bound in the wrong namespace.
Diagnose → kubectl auth can-i patch deployments -n prod --as=system:serviceaccount:ci:deployer.
Fix → Add the needed verbs to the Role and RoleBinding in the target namespace.
Prevent → Define CI RBAC in Git and test with can-i.
More on Deployment, Kubernetes and GitOps Failures
`kubectl rollout status` hangs: `Waiting for deployment "app" rollout to finish: 1 old replicas are pending termination...`AdvancedPods in `CrashLoopBackOff` right after deploy.Beginner`ImagePullBackOff` with `manifest for registry/app:1.4.2 not found`.BeginnerHelm: `Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress`.AdvancedHelm: `Error: rendered manifests contain a resource that already exists. Unable to continue with install`.IntermediateArgo CD app stuck `Progressing` forever.Intermediate