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
相关推荐
名字还没想好☜5 小时前
用 systemd 托管后台服务:Restart 策略、日志接管、资源限制与开机自启全踩一遍
运维·docker·kubernetes
动力 continue6 小时前
docker容器大舞台,创建镜像,构造类,基础速通
docker·容器
野熊佩骑10 小时前
Kubernetes实战系列文章(三) 之 K8S运维常用命令
linux·运维·docker·微服务·云原生·容器·kubernetes
一个向上的运维者12 小时前
Kubernetes 网络三部曲:CNI、kube-proxy 与 CoreDNS 是如何协作的?
网络·容器·kubernetes
DolitD13 小时前
实时云渲染多应用并发:CELL容器技术突破3D隔离瓶颈
云原生·容器·实时互动·图形渲染·数据可视化
鹤落晴春13 小时前
【K8s】Kustomize管理
云原生·容器·kubernetes
石小千14 小时前
Docker 笔记(九)--离线安装
docker·容器
dazhong201215 小时前
Docker 进阶篇(二) Docker Compose 部署 Nginx 实践
nginx·docker·容器
码--到成功15 小时前
Docker、Kubernetes安装系列 一
docker·容器·kubernetes
是乐乐啊呀16 小时前
常用破解软件
容器