k8s crd inferenceservices.serving.kserve.io

背景

ArgoCD无法连接到k8s集群
日志如下:

yaml 复制代码
Failed to load live state: failed to get cluster info for "https://kubernetes.default.svc": error synchronizing cache state : failed to sync cluster https://10.233.0.1:443: failed to load initial state of resource InferenceService.serving.kserve.io: Internal error occurred: error resolving resource

解决过程

crd详细信息

yaml 复制代码
Status:
  Accepted Names:
    Kind:       InferenceService
    List Kind:  InferenceServiceList
    Plural:     inferenceservices
    Short Names:
      isvc
    Singular:  inferenceservice
  Conditions:
    Last Transition Time:  2024-04-28T13:39:36Z
    Message:               no conflicts found
    Reason:                NoConflicts
    Status:                True
    Type:                  NamesAccepted
    Last Transition Time:  2024-04-28T13:39:36Z
    Message:               the initial names have been accepted
    Reason:                InitialNamesAccepted
    Status:                True
    Type:                  Established
    Last Transition Time:  2024-04-28T13:47:01Z
    Message:               could not list instances: unable to find a custom resource client for inferenceservices.serving.kserve.io: unable to load root certificates: unable to parse bytes as PEM block
    Reason:                InstanceDeletionFailed
    Status:                True
    Type:                  Terminating
  Stored Versions:
    v1beta1
Events:  <none>

删除此crd资源

bash 复制代码
kubectl delete customresourcedefinitions.apiextensions.k8s.io inferenceservices.serving.kserve.io --force
warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely.
customresourcedefinition.apiextensions.k8s.io "inferenceservices.serving.kserve.io" force deleted

^C
发现无法正常删除,可通过patch进行清理

kubectl patch crd inferenceservices.serving.kserve.io -p '{"metadata":{"finalizers":[]}}' --type=merge
customresourcedefinition.apiextensions.k8s.io/inferenceservices.serving.kserve.io patched
相关推荐
千寻girling3 分钟前
记录第一次学习 Docker
学习·docker·容器
迷糊小面包2 小时前
Docker Hadopp集群版部署搭建及常规问题解疑
运维·docker·容器
烁3473 小时前
Docker
运维·docker·容器
阿里云云原生3 小时前
拒绝月底“账单惊魂”:AI 网关如何通过“消费者配额”实现大模型调用成本治理?
云原生
网络中的夜鹰3 小时前
轩辕镜像一键安装Docker和Docker Compose脚本
运维·docker·容器
lihongbao804 小时前
kuboard v3创建用户分配命名空间
kubernetes·kuboard
江湖有缘6 小时前
Docker部署HamsterBase Tasks任务管理工具
运维·docker·容器
很楠爱上7 小时前
Docker 从入门到实战:核心概念、微服务编排与环境移植完全指南
docker·微服务·容器
Qres8217 小时前
docker & WSL & Ubuntu安装记录
ubuntu·docker·容器·wsl
java_cj8 小时前
从kubectl源码学pprof:生产环境性能分析的实战指南
运维·云原生·容器·kubernetes