【问题标题】:Error: horizontalpodautoscalers.autoscaling "nginx-1-hpa" already exists错误:horizo​​ntalpodautoscalers.autoscaling“nginx-1-hpa”已经存在
【发布时间】:2018-11-28 14:46:14
【问题描述】:

我是 gcp 和 kubernetes 的新手,在集群中部署工作负载时,我遇到了这个错误“错误:horizo​​ntalpodautoscalers.autoscaling “nginx-1-hpa”已经存在”。有人可以帮忙吗?

【问题讨论】:

    标签: nginx deployment kubernetes google-cloud-platform google-kubernetes-engine


    【解决方案1】:

    从您分享的错误消息来看,您似乎正在尝试创建一个已经存在的Horizontal Pod Autoscaler

    To fix this,您将不得不删除名为“nginx-1-hpa”的 Horizo​​ntal Pod Autoscaler。

    删除HPA“nginx-1-hpa”的命令是:

    $ kubectl delete hpa  nginx-1-hpa
    

    删除 HPA 后,您将能够部署工作负载。

    【讨论】:

      猜你喜欢
      • 2021-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-24
      • 2020-08-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多