【问题标题】:Rollout: no matches for kind "Rollout" in version "argoproj.io/v1alpha1"推出:版本“argoproj.io/v1alpha1”中的种类“推出”没有匹配项
【发布时间】:2021-06-27 18:31:53
【问题描述】:

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

error: unable to recognize "rollout.yaml": no matches for kind "Rollout" in version "argoproj.io/v1alpha1"

我的 rollout.yaml 文件的内容:

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}

当我执行kubectl apply -f rollout.yaml 或使用“ArgoCD UI”部署它时,我收到此错误。

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

K8 版本:1.20

码头工人:20.10.5

集群设置:Kubeadm

【问题讨论】:

    标签: kubernetes devops istio canary-deployment argocd


    【解决方案1】:

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

    【讨论】:

    • 非常感谢。我在集群中安装了 Argo Rollout,它工作正常。
    猜你喜欢
    • 2019-12-17
    • 2021-12-21
    • 1970-01-01
    • 2019-08-11
    • 2020-03-04
    • 2021-11-14
    • 2022-07-07
    • 1970-01-01
    • 2021-11-21
    相关资源
    最近更新 更多