jenkins 构建失败 Error: rendered manifests contain a resource that already exists

1 问题

  • jenkins 构建失败
    Error: rendered manifests contain a resource that already exists. Unable to continue with install: Ingress “xxx” in namespace “training” exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key “app.kubernetes.io/managed-by”: must be set to “Helm”; annotation validation error: missing key “meta.helm.sh/release-name”: must be set to “ui-training-app”; annotation validation error: missing key “meta.helm.sh/release-namespace”: must be set to “training”

2 解决方式

  • kubectl --kubeconfig kube-xx.yaml get ing -n training
  • kubectl --kubeconfig kube-xx.yaml delete ing xxx -n training

3 原因

  • 重点关注提示
    • Unable to continue with install: Ingress “xxx” in namespace “training” exists
  • 名为"xxx" 的 Ingress 已经存在,删除就好

猜你喜欢

转载自blog.csdn.net/lanxing_huangyao/article/details/129352053