1

我是 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

4

1 回答 1

3

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

于 2021-03-31T18:14:19.823 回答