DEBUG.WIKI
PanstarCloud:部署应用,接入 AI,云服务器与 AI 网关
晚安云;香港 CN2 ¥15/月
V.PS:让项目靠近用户,亚太、欧洲、北美 KVM VPS

解决 ArgoCD 报错 Failed to sync resource: prune propagation policy

分析 ArgoCD 清理废弃资源时触发级联删除阻断报 prune propagation policy 根因,提供 foreground/background 策略调优步骤。

问题现象

ArgoCD 同步时报错:

Failed to sync resource: prune propagation policy error:
admission webhook denied the request

触发根因

在同步选项中配置了特殊的剪裁级联删除策略(Prune Propagation Policy),与集群中准入控制校验冲突。

解决步骤与操作命令

步骤一:将剪裁传播策略调整为 Background

在 Application 同步选项中指定标准策略:

spec:
  syncPolicy:
    syncOptions:
      - PrunePropagationPolicy=background

同步顺畅通过。