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