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
相关推荐
roman_日积跬步-终至千里3 小时前
【Docker】Docker Stop 后到底发生了什么?——从信号机制到优雅停机
运维·docker·容器
喵手3 小时前
云端智变:基于 DevUI 与 MateChat 打造下一代云原生智能运维中台实战教学!
运维·云原生·devui·matechat
z***6264 小时前
Docker:基于自制openjdk8镜像 or 官方openjdk8镜像,制作tomcat镜像
docker·容器·tomcat
Connie14515 小时前
记一次K8s故障告警排查(Grafna告警排查)
云原生·容器·kubernetes·grafana
❀͜͡傀儡师7 小时前
Docker部署视频下载器
docker·容器·音视频
热爱学习的小怪兽8 小时前
docker的一些常用指令
运维·docker·容器
w***76559 小时前
用docker启动mysql步骤
mysql·docker·容器
0***R51510 小时前
前端云原生
前端·云原生
杜子不疼.13 小时前
【探索实战】从0到1打造分布式云原生平台:Kurator全栈实践指南
分布式·云原生
qq_21539789713 小时前
docker 安装 opengauss 高斯数据库
运维·docker·容器