首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Rollout:在版本"argoproj.io/v1alpha1“中没有匹配的种类"Rollout”

Rollout:在版本"argoproj.io/v1alpha1“中没有匹配的种类"Rollout”
EN

Stack Overflow用户
提问于 2021-04-01 02:03:37
回答 1查看 440关注 0票数 1

我是ArgoCD新手,遇到以下错误:

代码语言:javascript
复制
error: unable to recognize "rollout.yaml": no matches for kind "Rollout" in version "argoproj.io/v1alpha1"

我的rollout.yaml文件的内容:

代码语言:javascript
复制
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
  name: istio-rollout
  namespace: imo
spec:
  revisionHistoryLimit: 2
  selector:
    matchLabels:
      app: details
  template:
    metadata:
      annotations:
        sidecar.istio.io/inject: "true"
      labels:
        app: details
    spec:
      containers:
      - name: istio-rollout
        image: imo/employee:23
        ports:
        - name: http
          containerPort: 80
          protocol: TCP
  strategy:
    canary:
      canaryService: istio-rollout-canary
      stableService: istio-rollout-stable
      trafficRouting:
        istio:
          virtualService:
            name: customerinfo
            routes:
            - primary
      steps:
      - setWeight: 10
      - pause: {}
      - setWeight: 20
      - pause: {duration: 20s}
      - setWeight: 30
      - pause: {duration: 20s}
      - setWeight: 40
      - pause: {duration: 20s}
      - setWeight: 50
      - pause: {duration: 20s}
      - setWeight: 60
      - pause: {duration: 20s}
      - setWeight: 70
      - pause: {duration: 20s}
      - setWeight: 80
      - pause: {duration: 20s}
      - setWeight: 90
      - pause: {duration: 20s}

当我使用'ArgoCD UI‘执行kubectl apply -f rollout.yaml或部署它时,我得到这个错误。

Istio和ArgoCD pod在我的集群设置中运行。

K8版本: 1.20

Docker: 20.10.5

集群设置: Kubeadm

EN

回答 1

Stack Overflow用户

发布于 2021-04-01 02:14:20

Argo Rollout是一个自己的项目,不是Argo CD的一部分。请参阅https://argoproj.github.io/argo-rollouts/FAQ/

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66893001

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档