• 微服务
  • 升级 kubesphere 3.4.1 istio-1.14.6 到 1.20.2 后,bokinfo 流量监控、灰度发布报错

创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。

操作系统信息
[root@k8s-master-node1 istio-1.14.6]# cat /etc/redhat-release

CentOS Linux release 7.9.2009 (Core)

[root@k8s-master-node1 istio-1.14.6]# uname -a

Linux k8s-master-node1 3.10.0-1160.59.1.el7.x86_64 #1 SMP Wed Feb 23 16:47:03 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Kubernetes版本信息
[root@k8s-master-node1 istio-1.14.6]# kubectl version -o yaml

clientVersion:

buildDate: "2022-10-12T10:57:26Z"

compiler: gc

gitCommit: 434bfd82814af038ad94d62ebe59b133fcb50506

gitTreeState: clean

gitVersion: v1.25.3

goVersion: go1.19.2

major: "1"

minor: "25"

platform: linux/amd64

kustomizeVersion: v4.5.7

serverVersion:

buildDate: "2022-10-12T10:49:09Z"

compiler: gc

gitCommit: 434bfd82814af038ad94d62ebe59b133fcb50506

gitTreeState: clean

gitVersion: v1.25.3

goVersion: go1.19.2

major: "1"

minor: "25"

platform: linux/amd64

容器运行时

[root@k8s-master-node1 istio-1.14.6]# containerd -v

containerd containerd.io 1.6.26 3dd1e886e55dd695541fdcd67420c2888645a495

[root@k8s-master-node1 istio-1.14.6]# crictl version

Version: 0.1.0

RuntimeName: containerd

RuntimeVersion: 1.6.26

RuntimeApiVersion: v1

问题是什么

[upl-image-preview url=

我删除掉了 istio-system 下相关资源,并删除掉了istio-system这个ns,然后升级到 1.20.2,然后bookinfo流量监控和灰度发布,jaeger都报错,试过 ks-installer的pod重启,以及ks-isntaller servicemesh true和false,后来退回1.14.6,还是一样的报错。bookinfo的访问,以及kiali和istio都是ok的,可以使用,唯独在灰度发版时候,页面各种报错,jaeger也是(报错是另外一种),cr我也创建过的。

[root@k8s-master-node1 ~]# kubectl get pods -n istio-system

NAME READY STATUS RESTARTS AGE

grafana-79c4bf89d4-9947s 1/1 Running 0 28m

istio-egressgateway-84b8fb5cb7-2x48d 1/1 Running 0 27m

istio-ingressgateway-7c48db9bc9-s7lr6 1/1 Running 0 27m

istiod-5c8cdb4d79-kbrrs 1/1 Running 0 27m

jaeger-649966d89-hr86k 1/1 Running 0 28m

kiali-6677fd8c58-q4fzf 1/1 Running 0 28m

prometheus-67669bc6c8-cvbw6 2/2 Running 0 28m

[root@k8s-master-node1 istio-1.14.6]# kubectl get mutatingwebhookconfigurations

NAME WEBHOOKS AGE

cert-manager-webhook 1 7d21h

istio-sidecar-injector 4 101m

ks-events-admission-mutate 1 27h

logsidecar-injector-admission-mutate 1 27h

mutating-webhook-configuration 1 27h

rulegroups.alerting.kubesphere.io 3 27h

[root@k8s-master-node1 istio-1.14.6]# kubectl get validatingwebhookconfigurations

NAME WEBHOOKS AGE

cert-manager-webhook 1 7d21h

cluster.kubesphere.io 1 27h

istio-validator-istio-system 1 101m

ks-events-admission-validate 1 27h

network.kubesphere.io 1 27h

notification-manager-validating-webhook 4 27h

resourcesquotas.quota.kubesphere.io 1 27h

rulegroups.alerting.kubesphere.io 3 27h

storageclass-accessor.storage.kubesphere.io 1 27h

users.iam.kubesphere.io 1 27h

validating-webhook-configuration 3 27h

[root@k8s-master-node1 istio-1.14.6]#

TASK [ks-core/ks-core : KubeSphere | Convert ks-core to helm mananged] *********

skipping: [localhost] => (item={'ns': 'kubesphere-controls-system', 'kind': 'serviceaccounts', 'resource': 'kubesphere-cluster-admin', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-controls-system', 'kind': 'serviceaccounts', 'resource': 'kubesphere-router-serviceaccount', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-controls-system', 'kind': 'role', 'resource': 'system:kubesphere-router-role', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-controls-system', 'kind': 'rolebinding', 'resource': 'nginx-ingress-role-nisa-binding', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-controls-system', 'kind': 'deployment', 'resource': 'default-http-backend', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-controls-system', 'kind': 'service', 'resource': 'default-http-backend', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'secrets', 'resource': 'ks-controller-manager-webhook-cert', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'serviceaccounts', 'resource': 'kubesphere', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'configmaps', 'resource': 'ks-console-config', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'configmaps', 'resource': 'ks-router-config', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'configmaps', 'resource': 'sample-bookinfo', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'clusterroles', 'resource': 'system:kubesphere-router-clusterrole', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'clusterrolebindings', 'resource': 'system:nginx-ingress-clusterrole-nisa-binding', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'clusterrolebindings', 'resource': 'system:kubesphere-cluster-admin', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'clusterrolebindings', 'resource': 'kubesphere', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'services', 'resource': 'ks-apiserver', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'services', 'resource': 'ks-console', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'services', 'resource': 'ks-controller-manager', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'deployments', 'resource': 'ks-apiserver', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'deployments', 'resource': 'ks-console', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'deployments', 'resource': 'ks-controller-manager', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'validatingwebhookconfigurations', 'resource': 'users.iam.kubesphere.io', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'validatingwebhookconfigurations', 'resource': 'resourcesquotas.quota.kubesphere.io', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'validatingwebhookconfigurations', 'resource': 'network.kubesphere.io', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'validatingwebhookconfigurations', 'resource': 'cluster.kubesphere.io', 'release': 'ks-core'})

skipping: [localhost] => (item={'ns': 'kubesphere-system', 'kind': 'users.iam.kubesphere.io', 'resource': 'admin', 'release': 'ks-core'})

TASK [ks-core/ks-core : KubeSphere | Patch admin user] *************************

changed: [localhost]

TASK [ks-core/ks-core : KubeSphere | Getting ks-core helm charts] **************

changed: [localhost] => (item=ks-core)

TASK [ks-core/ks-core : KubeSphere | Checking KubeSphere Admin User] ***********

changed: [localhost]

TASK [ks-core/ks-core : set_fact] **********************************************

skipping: [localhost]

TASK [ks-core/ks-core : shell] *************************************************

skipping: [localhost]

TASK [ks-core/ks-core : KubeSphere | Creating manifests] ***********************

changed: [localhost] => (item={'path': 'ks-core', 'file': 'custom-values-ks-core.yaml'})

TASK [ks-core/ks-core : KubeSphere | Upgrade CRDs] *****************************

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/alerting.kubesphere.io_clusterrulegroups.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/alerting.kubesphere.io_globalrulegroups.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/alerting.kubesphere.io_rulegroups.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/app_v1beta1_application.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmapplications.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmapplicationversions.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmcategories.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmreleases.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmrepos.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/cluster.kubesphere.io_clusters.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/gateway.kubesphere.io_gateways.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/gateway.kubesphere.io_nginxes.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_federatedrolebindings.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_federatedroles.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_federatedusers.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_globalrolebindings.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_globalroles.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_groupbindings.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_groups.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_loginrecords.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_rolebases.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_users.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_workspacerolebindings.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_workspaceroles.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/network.kubesphere.io_ipamblocks.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/network.kubesphere.io_ipamhandles.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/network.kubesphere.io_ippools.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/network.kubesphere.io_namespacenetworkpolicies.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/quota.kubesphere.io_resourcequotas.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/servicemesh.kubesphere.io_servicepolicies.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/servicemesh.kubesphere.io_strategies.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/storage.kubesphere.io_storageclasseraccessor.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/tenant.kubesphere.io_workspaces.yaml)

changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/tenant.kubesphere.io_workspacetemplates.yaml)

TASK [ks-core/ks-core : KubeSphere | Creating ks-core] *************************

changed: [localhost]

TASK [ks-core/ks-core : KubeSphere | Creating manifests] ***********************

changed: [localhost] => (item={'path': 'ks-core', 'file': 'ks-upgrade.yaml'})

TASK [ks-core/ks-core : Kubesphere | Checking Users Manger and Workspaces Manger] ***

changed: [localhost]

TASK [ks-core/ks-core : Kubesphere | Checking migration job] *******************

skipping: [localhost]

TASK [ks-core/ks-core : KubeSphere | Creating migration job] *******************

skipping: [localhost]

TASK [ks-core/ks-core : KubeSphere | Importing ks-core status] *****************

changed: [localhost]

TASK [ks-core/ks-core : KubeSphere | Checking RoleTemplate Alerting Management] ***

changed: [localhost]

TASK [ks-core/ks-core : KubeSphere | Deleteing RoleTemplate Alerting Management] ***

skipping: [localhost]

TASK [ks-core/prepare : KubeSphere | Checking core components (1)] *************

skipping: [localhost]

TASK [ks-core/prepare : KubeSphere | Checking core components (2)] *************

skipping: [localhost]

TASK [ks-core/prepare : KubeSphere | Checking core components (3)] *************

skipping: [localhost]

TASK [ks-core/prepare : KubeSphere | Checking core components (4)] *************

skipping: [localhost]

TASK [ks-core/prepare : KubeSphere | Updating ks-core status] ******************

skipping: [localhost]

TASK [ks-core/prepare : set_fact] **********************************************

skipping: [localhost]

TASK [ks-core/prepare : KubeSphere | Creating KubeSphere directory] ************

skipping: [localhost]

TASK [ks-core/prepare : KubeSphere | Getting installation init files] **********

skipping: [localhost] => (item=ks-init)

TASK [ks-core/prepare : KubeSphere | Initing KubeSphere] ***********************

skipping: [localhost] => (item=role-templates.yaml)

TASK [ks-core/prepare : KubeSphere | Generating kubeconfig-admin] **************

skipping: [localhost]

PLAY RECAP *********************************************************************

localhost : ok=25 changed=19 unreachable=0 failed=0 skipped=22 rescued=0 ignored=0

Start installing monitoring

Start installing multicluster

Start installing openpitrix

Start installing network

Start installing alerting

Start installing auditing

Start installing devops

Start installing events

Start installing logging

Start installing servicemesh

**************************************************

Waiting for all tasks to be completed ...

task network status is successful (1/10)

task alerting status is successful (2/10)

task openpitrix status is successful (3/10)

task events status is successful (4/10)

task auditing status is successful (5/10)

task multicluster status is successful (6/10)

task logging status is successful (7/10)

task devops status is successful (8/10)

task servicemesh status is successful (9/10)

task monitoring status is successful (10/10)

**************************************************

Collecting installation results ...

#####################################################

### Welcome to KubeSphere! ###

#####################################################

Console: http://10.0.87.124:30880

Account: admin

Password: P@88w0rd

NOTES:

1. After you log into the console, please check the

monitoring status of service components in

"Cluster Management". If any service is not

ready, please wait patiently until all components

are up and running.

2. Please change the default password after login.

#####################################################

https://kubesphere.io 2024-01-17 23:56:23

#####################################################

    6 个月 后