zoukankan      html  css  js  c++  java
  • 【kserve】kserve安装记录

    安装

    官方教程: https://kserve.github.io/website/admin/kubernetes_deployment/

    首先安装istio、cert manager

    安装 istio

    wget [https://github.com/istio/istio/releases/download/1.11.4/istioctl-1.11.4-linux-amd64.tar.gz](https://github.com/istio/istio/releases/download/1.11.4/istioctl-1.11.4-linux-amd64.tar.gz)

    tar -xvzf istioctl-1.11.4-linux-amd64.tar.gz

    mv istioctl /usr/local/bin/

    istioctl install

    安装 knative

    `kubectl apply -f https://github.com/knative/operator/releases/download/knative-v1.0.0/operator.yaml`

    安装 knative-serving/knative-eventing参考 https://knative.dev/docs/admin/install/knative-with-operators/

    安装 cert-manager

    kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.5.3/cert-manager.yaml

    安装 kserve

    kubectl apply -f https://github.com/kserve/kserve/releases/download/v0.7.0/kserve.yaml

    grc.io问题

    kubectl edit 修改源镜像

    国内yaml安装方式

    项目地址:https://github.com/wenyangchou/KServeInstaller

    踩坑记录

    • clusterDomain造成的安装失败
    Creating service 'hello' in namespace 'default':
    
      0.028s The Route is still working to reflect the latest desired specification.
      0.067s Configuration "hello" is waiting for a Revision to become ready.
      2.736s ...
      2.736s Ingress has not yet been reconciled.
      2.788s Waiting for load balancer to be ready

    在knative-serving安装过程中,出现一直 wait fot load balancer。该原因由clusterDomain修改造成。详情参考: https://github.com/knative/serving/issues/12371

    • 域名修改

    kubectl edit cm config-domain -n knative-serving
    • Error from server (BadRequest): error when creating "service.yaml": admission webhook "validation.webhook.serving.knative.dev" denied the request: validation failed: must not set the field(s): spec.template.spec.nodeSelector, spec.template.spec.tolerations

    kserve依赖于knative,默认是不打开节点标签选取的。参考: https://github.com/knative/serving/issues/11388

    kubectl -n knative-serving edit cm config-features
    • failed to resolve image to digest: Get https:/xxx.xxx.com/v2/: ....

    运行isvc发现私有仓库默认转https了。

    解决: kubectl -n knative-serving edit configmap config-deployment

    修改:registries-skipping-tag-resolving: kind.local,ko.local,dev.local,harbor.wenyangchou.com

  • 相关阅读:
    java 标准异常
    java 重新抛出异常
    java 异常链
    java 轨迹栈
    mysql死锁-非主键索引更新引起的死锁
    数据库事务
    JMS学习笔记(一)
    log4j中将SocketAppender将日志内容发送到远程服务器
    Kubernetes之kubectl常用命令
    java代理与动态代理的学习
  • 原文地址:https://www.cnblogs.com/zhouwenyang/p/15533276.html
Copyright © 2011-2022 走看看