创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。
发帖前请点击 发表主题 右边的 预览(👀) 按钮,确保帖子格式正确。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:虚拟机/物理机,Centos7.4,8C/16G
Kubernetes版本信息
v1.28.8
容器运行时
docker v24.0.9
KubeSphere版本信息
v3.4.1 离线安装
问题是什么
Error: failed to start container “ks-devops”: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: “–enabled-controllers”: executable file not found in $PATH: unknown
[root@ksp-m1-211 kubesphere]# kubectl describe po -n kubesphere-devops-system devops-controller-76b7459b95-lnnxn
Name: devops-controller-76b7459b95-lnnxn
Namespace: kubesphere-devops-system
Priority: 0
Service Account: devops
Node: ksp-n2-215/192.168.31.215
Start Time: Tue, 19 Nov 2024 14:02:20 +0800
Labels: app.kubernetes.io/instance=devops
app.kubernetes.io/name=ks-devops
devops.kubesphere.io/component=controller
pod-template-hash=76b7459b95
Annotations: cni.projectcalico.org/containerID: ae4792657840483482be952e4b0eca7fdffee31fbaad78178959de9313a2a6c0
cni.projectcalico.org/podIP: 10.233.115.1/32
cni.projectcalico.org/podIPs: 10.233.115.1/32
kubesphere.io/restartedAt: 2024-11-19T03:14:26.409Z
Status: Running
IP: 10.233.115.1
IPs:
IP: 10.233.115.1
Controlled By: ReplicaSet/devops-controller-76b7459b95
Init Containers:
init-config:
Container ID: docker://a420a645cccac51cf7832f6d9f01fedd3cc5c98dc10ab1c8365b80991427ac90
Image: harbor.jxkj.com/kubesphereio/devops-tools:ks-v3.4.1
Image ID: docker-pullable://harbor.jxkj.com/kubesphere/devops-controller@sha256:25aeefa83c993b7ca6b60d5c007e74a45eeeace68014d4008a9a6e3532e8b633
Port: <none>
Host Port: <none>
Command:
devops-tool
init-config
--namespace
kubesphere-devops-system
State: Terminated
Reason: Completed
Exit Code: 0
Started: Tue, 19 Nov 2024 14:02:22 +0800
Finished: Tue, 19 Nov 2024 14:02:22 +0800
Ready: True
Restart Count: 0
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-cs6s5 (ro)
Containers:
ks-devops:
Container ID: docker://9db14ebe0dc385ce9b50ef6f855b93fbf2b3570e2aed19ae4a417fde783e0b81
Image: harbor.jxkj.com/kubesphereio/devops-controller:ks-v3.4.1
Image ID: docker-pullable://harbor.jxkj.com/kubesphere/devops-controller@sha256:25aeefa83c993b7ca6b60d5c007e74a45eeeace68014d4008a9a6e3532e8b633
Port: <none>
Host Port: <none>
Args:
--enabled-controllers
argocd=true
--argocd-namespace=argocd
--pipelinerun-data-store=configmap
State: Waiting
Reason: CrashLoopBackOff
Last State: Terminated
Reason: ContainerCannotRun
Message: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "--enabled-controllers": executable file not found in $PATH: unknown
Exit Code: 127
Started: Tue, 19 Nov 2024 14:13:24 +0800
Finished: Tue, 19 Nov 2024 14:13:24 +0800
Ready: False
Restart Count: 7
Environment: <none>
Mounts:
/etc/kubesphere/ from kubesphere-config (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-cs6s5 (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
kubesphere-config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: devops-config
Optional: false
kube-api-access-cs6s5:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
Normal Scheduled 15m default-scheduler Successfully assigned kubesphere-devops-system/devops-controller-76b7459b95-lnnxn to ksp-n2-215
Normal Pulling 15m kubelet Pulling image “harbor.jxkj.com/kubesphereio/devops-tools:ks-v3.4.1”
Normal Pulled 15m kubelet Successfully pulled image “harbor.jxkj.com/kubesphereio/devops-tools:ks-v3.4.1” in 1.566s (1.566s including waiting)
Normal Created 15m kubelet Created container init-config
Normal Started 15m kubelet Started container init-config
Normal Pulled 15m kubelet Successfully pulled image “harbor.jxkj.com/kubesphereio/devops-controller:ks-v3.4.1” in 1.545s (1.545s including waiting)
Normal Pulled 15m kubelet Successfully pulled image “harbor.jxkj.com/kubesphereio/devops-controller:ks-v3.4.1” in 1.551s (1.551s including waiting)
Normal Pulled 14m kubelet Successfully pulled image “harbor.jxkj.com/kubesphereio/devops-controller:ks-v3.4.1” in 1.547s (1.547s including waiting)
Normal Pulling 14m (x4 over 15m) kubelet Pulling image “harbor.jxkj.com/kubesphereio/devops-controller:ks-v3.4.1”
Normal Created 14m (x4 over 15m) kubelet Created container ks-devops
Normal Pulled 14m kubelet Successfully pulled image “harbor.jxkj.com/kubesphereio/devops-controller:ks-v3.4.1” in 1.548s (1.548s including waiting)
Warning Failed 14m (x4 over 15m) kubelet Error: failed to start container “ks-devops”: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: “–enabled-controllers”: executable file not found in $PATH: unknown
Warning BackOff 6s (x65 over 14m) kubelet Back-off restarting failed container ks-devops in pod devops-controller-76b7459b95-lnnxn_kubesphere-devops-system(421dd5e2-9807-44b9-9bdb-445742d86914)