首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Istio操作符安装错误: unmarshalerDecoder:未知字段“策略”

Istio操作符安装错误: unmarshalerDecoder:未知字段“策略”
EN

Stack Overflow用户
提问于 2021-02-03 14:18:08
回答 1查看 839关注 0票数 1

在kubernetes集群中,我试图卸载istio控制平面及其操作符,并确保它们不存在,

1.)我部署了istio CNI

代码语言:javascript
复制
cat <<EOF > istio-cni.yaml
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  components:
    cni:
      enabled: true
  values:
    cni:
      excludeNamespaces:
       - istio-system
       - kube-system
      logLevel: info
EOF
istioctl install -f istio-cni.yaml

2.)并安装操作符istioctl operator init

在检查操作符结荚日志时,我可以看到:

代码语言:javascript
复制
021-02-03T10:36:39.848828Z  info    ControlZ available at 127.0.0.1:9876
2021-02-03T10:36:39.849554Z info    leader election cm: istio-operator-lock
2021-02-03T10:36:40.365443Z info    Creating operator metrics exporter
2021-02-03T10:36:40.365553Z info    Registering Components.
2021-02-03T10:36:40.365661Z info    installer   Adding controller for IstioOperator.
2021-02-03T10:36:40.365789Z info    installer   Controller added
2021-02-03T10:36:40.365808Z info    Starting the Cmd.
2021-02-03T10:36:40.366236Z info    klog    attempting to acquire leader lease  istio-operator/istio-operator-lock...[]
2021-02-03T10:36:40.376654Z info    klog    successfully acquired lease istio-operator/istio-operator-lock[]
2021-02-03T10:36:40.451791Z error   klog    k8s.io/client-go@v0.19.3/tools/cache/reflector.go:156: Failed to watch *v1alpha1.IstioOperator: failed to list *v1alpha1.IstioOperator: v1alpha1.IstioOperatorList.Items: []v1alpha1.IstioOperator: v1alpha1.IstioOperator.Status: Spec: unmarshalerDecoder: unknown field "policy" in v1alpha1.IstioComponentSetSpec, error found in #10 byte of ...|sion":""}},"status":|..., bigger context ...|"memory":"900Mi"}},"tag":"2.20.0"}},"version":""}},"status":{"componentStatus":{"Base":{"status":"HE|...[]
2021-02-03T10:36:41.790408Z error   klog    k8s.io/client-go@v0.19.3/tools/cache/reflector.go:156: Failed to watch *v1alpha1.IstioOperator: failed to list *v1alpha1.IstioOperator: v1alpha1.IstioOperatorList.Items: []v1alpha1.IstioOperator: v1alpha1.IstioOperator.Status: Spec: unmarshalerDecoder: unknown field "telemetry" in v1alpha1.IstioComponentSetSpec, error found in #10 byte of ...|sion":""}},"status":|..., bigger context ...|"memory":"900Mi"}},"tag":"2.20.0"}},"version":""}},"status":{"componentStatus":{"Base":{"status":"HE|...[]
2021-02-03T10:36:44.098100Z error   klog    k8s.io/client-go@v0.19.3/tools/cache/reflector.go:156: Failed to watch *v1alpha1.IstioOperator: failed to list *v1alpha1.IstioOperator: v1alpha1.IstioOperatorList.Items: []v1alpha1.IstioOperator: v1alpha1.IstioOperator.Status: Spec: unmarshalerDecoder: unknown field "policy" in v1alpha1.IstioComponentSetSpec, error found in #10 byte of ...|sion":""}},"status":|..., bigger context ...|"memory":"900Mi"}},"tag":"2.20.0"}},"version":""}},"status":{"componentStatus":{"Base":{"status":"HE|...[]
2021-02-03T10:36:48.665472Z error   klog    k8s.io/client-go@v0.19.3/tools/cache/reflector.go:156: Failed to watch *v1alpha1.IstioOperator: failed to list *v1alpha1.IstioOperator: v1alpha1.IstioOperatorList.Items: []v1alpha1.IstioOperator: v1alpha1.IstioOperator.Status: Spec: unmarshalerDecoder: unknown field "policy" in v1alpha1.IstioComponentSetSpec, error found in #10 byte of ...|sion":""}},"status":|..., bigger context ...|"memory":"900Mi"}},"tag":"2.20.0"}},"version":""}},"status":{"componentStatus":{"Base":{"status":"HE|...[]
2021-02-03T10:36:59.467476Z error   klog    k8s.io/client-go@v0.19.3/tools/cache/reflector.go:156: Failed to watch *v1alpha1.IstioOperator: failed to list *v1alpha1.IstioOperator: v1alpha1.IstioOperatorList.Items: []v1alpha1.IstioOperator: v1alpha1.IstioOperator.Status: Spec: unmarshalerDecoder: unknown field "policy" in v1alpha1.IstioComponentSetSpec, error found in #10 byte of ...|sion":""}},"status":|..., bigger context ...|"memory":"900Mi"}},"tag":"2.20.0"}},"version":""}},"status":{"componentStatus":{"Base":{"status":"HE|...[]
2021-02-03T10:37:13.119152Z error   klog    k8s.io/client-go@v0.19.3/tools/cache/reflector.go:156: Failed to watch *v1alpha1.IstioOperator: failed to list *v1alpha1.IstioOperator: v1alpha1.IstioOperatorList.Items: []v1alpha1.IstioOperator: v1alpha1.IstioOperator.Status: Spec: unmarshalerDecoder: unknown field "policy" in v1alpha1.IstioComponentSetSpec, error found in #10 byte of ...|sion":""}},"status":|..., bigger context ...|"memory":"900Mi"}},"tag":"2.20.0"}},"version":""}},"status":{"componentStatus":{"Base":{"status":"HE|...[]
2021-02-03T10:37:42.735808Z error   klog    k8s.io/client-go@v0.19.3/tools/cache/reflector.go:156: Failed to watch *v1alpha1.IstioOperator: failed to list *v1alpha1.IstioOperator: v1alpha1.IstioOperatorList.Items: []v1alpha1.IstioOperator: v1alpha1.IstioOperator.Status: Spec: unmarshalerDecoder: unknown field "policy" in v1alpha1.IstioComponentSetSpec, error found in #10 byte of ...|sion":""}},"status":|..., bigger context ...|"memory":"900Mi"}},"tag":"2.20.0"}},"version":""}},"status":{"componentStatus":{"Base":{"status":"HE|...[]

istioctl版本--远程客户端版本: 1.8.2控制平面版本: 1.8.2数据平面版本: 1.8.2 (1个代理)

kubectl版本--短客户端版本: v1.18.10服务器版本: v1.18.1

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-02-04 03:53:54

我的一个iop (来自kubectl get iop -A)有“策略”或“遥测”字段,即不再支持。所以我要删除它们。

  1. kubectl delete iop [iopname] -n istio-system

不过,这是因为我的控制器已经不见了。所以我必须做

  1. kubectl edit iop [iopname] -n istio-system
  2. istiooperators.install.istio.io中删除finalizer
  3. 应用

在此之后,当我再次安装istio时,我可以看到没有错误日志,然后是istioctl operator init

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

https://stackoverflow.com/questions/66029341

复制
相关文章

相似问题

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