在kubernetes集群中,我试图卸载istio控制平面及其操作符,并确保它们不存在,
1.)我部署了istio CNI
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.yaml2.)并安装操作符istioctl operator init
在检查操作符结荚日志时,我可以看到:
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
发布于 2021-02-04 03:53:54
我的一个iop (来自kubectl get iop -A)有“策略”或“遥测”字段,即不再支持。所以我要删除它们。
kubectl delete iop [iopname] -n istio-system不过,这是因为我的控制器已经不见了。所以我必须做
kubectl edit iop [iopname] -n istio-systemistiooperators.install.istio.io中删除finalizer在此之后,当我再次安装istio时,我可以看到没有错误日志,然后是istioctl operator init。
https://stackoverflow.com/questions/66029341
复制相似问题