我是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}当我使用'ArgoCD UI‘执行kubectl apply -f rollout.yaml或部署它时,我得到这个错误。

Istio和ArgoCD pod在我的集群设置中运行。
K8版本: 1.20
Docker: 20.10.5
集群设置: Kubeadm
发布于 2021-04-01 02:14:20
Argo Rollout是一个自己的项目,不是Argo CD的一部分。请参阅https://argoproj.github.io/argo-rollouts/FAQ/
https://stackoverflow.com/questions/66893001
复制相似问题