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

ks 3.2.0

k8s 1.21.4 containerd

安装完servicemesh以后,pod中只有kiali-operator,没有kiali:

ks-intaller安装日志正常,没有报错。

CRD kiali 已存在:

已经用命令kubectl edit cc -n kubesphere-system ks-installer删除了status中的servicemesh部分,重装了很多次,还是装不上。

istio-system中没有deployment kiali

请帮忙看下是什么原因。

    morriszs

    首先确认kiali CR 是否创建成功: kubectl -n istio-system get kialis.kiali.io kiali

    再看一下kiali-operator的日志: kubectl -n istio-system logs kiali-operator-<tab>

      解决了,安装上了。到kiali官网看了一下Kiali Operator的安装过程,然后进入ks-installer,删除了kiali crd,helm卸载了kiali-operator,然后按照kiali-install.yaml中的步骤,重新安装kiali-operator和kiali crd。查看kiali-operator日志,没有错误。再检查pod,发现已经安装好了。

        我这边怎么样kiali都弄不出来。在ks-installer的crd中关闭和开启servicemesh多次,均不行,而且我之前把kiali-operator删掉之后,重新启用servicemesh,连kiali-operator都没有了。但是istio服务是正常

        ks-installer日志也没用报错。

        kubesphere版本 3.2.0

        RolandMa1986 没见什么错,主要是现在kiali装不上了,我把istio-system命名空间删除,重新启用servicemesh,ks-installer报错:

        
        Task 'servicemesh' failed:
        ******************************************************************************************************************************************************
        {
          "counter": 91,
          "created": "2021-11-22T04:01:59.638819",
          "end_line": 120,
          "event": "runner_on_failed",
          "event_data": {
            "duration": 11.772982,
            "end": "2021-11-22T04:01:59.637941",
            "event_loop": null,
            "host": "localhost",
            "ignore_errors": null,
            "play": "localhost",
            "play_pattern": "localhost",
            "play_uuid": "eab61834-9184-2477-3dfb-000000000005",
            "playbook": "/kubesphere/playbooks/servicemesh.yaml",
            "playbook_uuid": "42a59009-319b-46b2-8cde-8ce4949c32a5",
            "remote_addr": "127.0.0.1",
            "res": {
              "_ansible_no_log": false,
              "changed": true,
              "cmd": "/usr/local/bin/helm upgrade --install kiali-operator /kubesphere/kubesphere/servicemesh/kiali/kiali-operator-1.38.1.tgz -f /kubesphere/kubesphere/servicemesh/kiali/custom-values-kiali.yaml --namespace istio-system\n",
              "delta": "0:00:09.937754",
              "end": "2021-11-22 12:01:59.557610",
              "invocation": {
                "module_args": {
                  "_raw_params": "/usr/local/bin/helm upgrade --install kiali-operator /kubesphere/kubesphere/servicemesh/kiali/kiali-operator-1.38.1.tgz -f /kubesphere/kubesphere/servicemesh/kiali/custom-values-kiali.yaml --namespace istio-system\n",
                  "_uses_shell": true,
                  "argv": null,
                  "chdir": null,
                  "creates": null,
                  "executable": null,
                  "removes": null,
                  "stdin": null,
                  "stdin_add_newline": true,
                  "strip_empty_ends": true,
                  "warn": true
                }
              },
              "msg": "non-zero return code",
              "rc": 1,
              "start": "2021-11-22 12:01:49.619856",
              "stderr": "Error: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRoleBinding \"kiali-operator\" in namespace \"\" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key \"meta.helm.sh/release-namespace\" must equal \"istio-system\": current value is \"kiali-operator\"",
              "stderr_lines": [
                "Error: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRoleBinding \"kiali-operator\" in namespace \"\" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key \"meta.helm.sh/release-namespace\" must equal \"istio-system\": current value is \"kiali-operator\""
              ],
              "stdout": "Release \"kiali-operator\" does not exist. Installing it now.",
              "stdout_lines": [
                "Release \"kiali-operator\" does not exist. Installing it now."
              ]
            },
            "role": "ks-istio",
            "start": "2021-11-22T04:01:47.864959",
            "task": "servicemesh | Deploying kiali-operator",
            "task_action": "command",
            "task_args": "",
            "task_path": "/kubesphere/installer/roles/ks-istio/tasks/kiali-install.yaml:14",
            "task_uuid": "eab61834-9184-2477-3dfb-000000000031",
            "uuid": "6280e4f4-85fb-4855-9131-c4b6d71f67e3"
          },
          "parent_uuid": "eab61834-9184-2477-3dfb-000000000031",
          "pid": 4999,
          "runner_ident": "servicemesh",
          "start_line": 119,
          "stdout": "fatal: [localhost]: FAILED! => {\"changed\": true, \"cmd\": \"/usr/local/bin/helm upgrade --install kiali-operator /kubesphere/kubesphere/servicemesh/kiali/kiali-operator-1.38.1.tgz -f /kubesphere/kubesphere/servicemesh/kiali/custom-values-kiali.yaml --namespace istio-system\\n\", \"delta\": \"0:00:09.937754\", \"end\": \"2021-11-22 12:01:59.557610\", \"msg\": \"non-zero return code\", \"rc\": 1, \"start\": \"2021-11-22 12:01:49.619856\", \"stderr\": \"Error: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRoleBinding \\\"kiali-operator\\\" in namespace \\\"\\\" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key \\\"meta.helm.sh/release-namespace\\\" must equal \\\"istio-system\\\": current value is \\\"kiali-operator\\\"\", \"stderr_lines\": [\"Error: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRoleBinding \\\"kiali-operator\\\" in namespace \\\"\\\" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key \\\"meta.helm.sh/release-namespace\\\" must equal \\\"istio-system\\\": current value is \\\"kiali-operator\\\"\"], \"stdout\": \"Release \\\"kiali-operator\\\" does not exist. Installing it now.\", \"stdout_lines\": [\"Release \\\"kiali-operator\\\" does not exist. Installing it now.\"]}",
          "uuid": "6280e4f4-85fb-4855-9131-c4b6d71f67e3"
        }

          5 个月 后

          bigfacewo 卧槽,还真是这样!得先kubectl delete -f kubesphere-installer.yaml,把ClusterRole删掉,然后再执行kubectl apply -f kubesphere-installer.yaml,kubectl apply -f cluster-configuration.yaml才行!真尼玛折腾人!