创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:虚拟机,Ubuntu18.04,arm64架构, 4C/24G
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.14", GitCommit:"0f77da5bd4809927e15d1658fb4aa8f13ad890a5", GitTreeState:"clean", BuildDate:"2022-06-15T14:17:29Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"linux/arm64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.14", GitCommit:"0f77da5bd4809927e15d1658fb4aa8f13ad890a5", GitTreeState:"clean", BuildDate:"2022-06-15T14:11:36Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"linux/arm64"}
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
# docker version
Client: Docker Engine - Community
Version: 20.10.23
API version: 1.41
Go version: go1.18.10
Git commit: 7155243
Built: Thu Jan 19 17:32:58 2023
OS/Arch: linux/arm64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.23
API version: 1.41 (minimum version 1.12)
Go version: go1.18.10
Git commit: 6051f14
Built: Thu Jan 19 17:31:18 2023
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.6.18
GitCommit: 2456e983eb9e37e47538f59ea18f2043c9a73640
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0
KubeSphere版本信息
例如:v3.3.1。在线安装。使用kk安装先安装。
curl -sfL https://get-kk.kubesphere.io | VERSION=v3.0.7 bash -
./kk create cluster --with-kubernetes v1.21.14
./kk create cluster --with-kubesphere v3.3.2
问题是什么
报错日志是什么,最好有截图。
最小化安装kubesphere之后,通过更新kkinstall 安装devops 报错:
devops-controller组件起不来:
我尝试更新镜像版本:
kubesphere/devops-controller:v3.3.2
kubesphere/devops-tools:v3.3.2
kubesphere/devops-controller:v3.3.1
kubesphere/devops-tools:v3.3.1
kubesphere/devops-controller:v3.3.0
kubesphere/devops-tools:v3.3.0
容器起不来,看不到日志信息, 通过kubectl describe 查看信息也没看见啥异常.
使用如下版本可以正常启动运行
kubesphere/devops-controller:kse-v3.4.0-alpha.2
kubesphere/devops-tools:kse-v3.4.0-alpha.2
一段时间就报错了,容器报错信息如下, 麻烦老师帮忙看看
devops-controller 组件报错如下:
goroutine 527 [select, 2 minutes]:
k8s.io/client-go/tools/cache.(*processorListener).pop(0x40000e0700)
/go/pkg/mod/k8s.io/client-go@v0.24.2/tools/cache/shared_informer.go:783 +0x100
k8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1(0x4000542450, 0x4000726750)
/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:73 +0x54
created by k8s.io/apimachinery/pkg/util/wait.(*Group).Start
/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:71 +0x5c
goroutine 578 [chan receive, 2 minutes]:
k8s.io/client-go/tools/cache.(*processorListener).run.func1()
/go/pkg/mod/k8s.io/client-go@v0.24.2/tools/cache/shared_informer.go:813 +0x50
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0x400110bf50)
/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:155 +0x64
k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0x400110bf50, {0x1e22b20, 0x400081eb70}, 0x1, 0x400001d8c0)
/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:156 +0x94
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0x400110bf50, 0x3b9aca00, 0x0, 0x1, 0x400001d8c0)
/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:133 +0x88
k8s.io/apimachinery/pkg/util/wait.Until(...)
/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:90
k8s.io/client-go/tools/cache.(*processorListener).run(0x40000e0800)
/go/pkg/mod/k8s.io/client-go@v0.24.2/tools/cache/shared_informer.go:812 +0x80
k8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1(0x4000542fb0, 0x40007267a0)
/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:73 +0x54
created by k8s.io/apimachinery/pkg/util/wait.(*Group).Start
/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:71 +0x5c
goroutine 579 [select, 2 minutes]:
k8s.io/client-go/tools/cache.(*processorListener).pop(0x40000e0800)
/go/pkg/mod/k8s.io/client-go@v0.24.2/tools/cache/shared_informer.go:783 +0x100
k8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1(0x4000542fb0, 0x40007267b0)
/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:73 +0x54
created by k8s.io/apimachinery/pkg/util/wait.(*Group).Start
/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:71 +0x5c
goroutine 569 [select, 2 minutes]:
k8s.io/client-go/tools/cache.(*processorListener).pop(0x400054ca00)
/go/pkg/mod/k8s.io/client-go@v0.24.2/tools/cache/shared_informer.go:783 +0x100
k8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1(0x40003fca00, 0x40003b86c0)
/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:73 +0x54
created by k8s.io/apimachinery/pkg/util/wait.(*Group).Start
/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:71 +0x5c
容器启动运行情况如下:
麻烦老师帮忙看看哈
root@k8s-master:~# kubectl get pod -A
NAMESPACE NAME READY STATUS RESTARTS AGE
argocd devops-argocd-application-controller-0 1/1 Running 0 7h42m
argocd devops-argocd-applicationset-controller-667fd6ffc6-88ztg 1/1 Running 0 7h13m
argocd devops-argocd-applicationset-controller-b88d4b875-l8zhj 0/1 CrashLoopBackOff 77 6h13m
argocd devops-argocd-dex-server-5f4c69cdb8-6tjgv 1/1 Running 0 7h42m
argocd devops-argocd-notifications-controller-6d86f8974f-csw4d 1/1 Running 0 7h42m
argocd devops-argocd-redis-655969589d-qn92w 1/1 Running 0 7h42m
argocd devops-argocd-repo-server-f77687668-ckg7s 1/1 Running 0 7h42m
argocd devops-argocd-server-6c55bbb84f-dvrh9 1/1 Running 0 7h42m
kube-system calico-kube-controllers-69d878584c-2pn45 1/1 Running 0 8h
kube-system calico-node-s8mxx 1/1 Running 0 8h
kube-system coredns-b5648d655-4bk8w 1/1 Running 0 8h
kube-system coredns-b5648d655-5mrjg 1/1 Running 0 8h
kube-system kube-apiserver-k8s-master 1/1 Running 0 8h
kube-system kube-controller-manager-k8s-master 1/1 Running 0 8h
kube-system kube-proxy-xslj6 1/1 Running 0 8h
kube-system kube-scheduler-k8s-master 1/1 Running 0 8h
kube-system nodelocaldns-phdsp 1/1 Running 0 8h
kube-system openebs-localpv-provisioner-57bbf864d5-zdgg9 1/1 Running 0 8h
kube-system snapshot-controller-0 1/1 Running 0 8h
kubesphere-controls-system default-http-backend-5bf68ff9b8-gw4pl 0/1 CrashLoopBackOff 95 7h42m
kubesphere-controls-system default-http-backend-75695cd447-6hh7g 1/1 Running 0 8h
kubesphere-controls-system kubectl-admin-6667774bb-55q7d 1/1 Running 0 8h
kubesphere-controls-system kubectl-platform-admin-85f8dc8c7b-dc5s6 1/1 Running 0 3h30m
kubesphere-devops-system devops-27995550-278q8 0/1 Error 0 39m
kubesphere-devops-system devops-27995550-4zlmn 0/1 Error 0 38m
kubesphere-devops-system devops-27995550-gt8vv 0/1 Error 0 38m
kubesphere-devops-system devops-27995550-hjwhw 0/1 Error 0 37m
kubesphere-devops-system devops-27995550-hkb6r 0/1 Error 0 33m
kubesphere-devops-system devops-27995550-ljs56 0/1 Error 0 39m
kubesphere-devops-system devops-27995550-m4mkv 0/1 Error 0 36m
kubesphere-devops-system devops-27995580-4nd8k 0/1 Error 0 8m38s
kubesphere-devops-system devops-27995580-5ss8n 0/1 Error 0 8m58s
kubesphere-devops-system devops-27995580-67mf6 0/1 Error 0 78s
kubesphere-devops-system devops-27995580-89wh8 0/1 Error 0 9m9s
kubesphere-devops-system devops-27995580-b4sht 0/1 Error 0 6m38s
kubesphere-devops-system devops-27995580-rsj82 0/1 Error 0 9m10s
kubesphere-devops-system devops-27995580-v6trm 0/1 Error 0 7m58s
kubesphere-devops-system devops-apiserver-54f87654c6-6rxl4 0/1 Init:Error 62 4h52m
kubesphere-devops-system devops-apiserver-7ff476896c-sklnx 1/1 Running 0 7h16m
kubesphere-devops-system devops-controller-5f9dd9ddcc-wc6xg 0/1 CrashLoopBackOff 33 3h35m
kubesphere-devops-system devops-jenkins-8bf67cc47-2xlpd 1/1 Running 5 5h20m
kubesphere-devops-system s2ioperator-0 1/1 Running 0 7h41m
kubesphere-monitoring-system alertmanager-main-0 2/2 Running 0 8h
kubesphere-monitoring-system kube-state-metrics-687d66b747-jqfgv 3/3 Running 0 8h
kubesphere-monitoring-system node-exporter-qgv2j 2/2 Running 0 8h
kubesphere-monitoring-system notification-manager-deployment-78664576cb-jg7bq 2/2 Running 0 8h
kubesphere-monitoring-system notification-manager-operator-7d44854f54-4qfjc 2/2 Running 0 8h
kubesphere-monitoring-system prometheus-k8s-0 2/2 Running 0 8h
kubesphere-monitoring-system prometheus-operator-8955bbd98-chdmx 2/2 Running 0 8h
kubesphere-system ks-apiserver-576fbd5df4-d26wn 1/1 Running 0 8h
kubesphere-system ks-console-5c9fcbc67b-pb4m8 1/1 Running 0 8h
kubesphere-system ks-controller-manager-f8dfd55c8-958qx 1/1 Running 0 8h
kubesphere-system ks-installer-85d6fb8c97-r7b88 1/1 Running 0 7h56m
kubesphere-system minio-5858668b4c-smxfc 1/1 Running 0 7h53m
kubesphere-system openldap-0 1/1 Running 1 8h
my-project mysql-0 1/1 Running 0 3h19m