创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。
发帖前请点击 发表主题 右边的 预览(👀) 按钮,确保帖子格式正确。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
物理机,Ubuntu12.04,4C/16G
Kubernetes版本信息
v1.31.2。多节点。
容器运行时
使用 containerd,版本1.7.2
KubeSphere版本信息
版本v4.1.2
异常信息
root@master1:/opt/software# kubectl describe pods -n kubesphere-devops-system helm-executor-install-devops-agent-2ldlmk-pcpj6
Name: helm-executor-install-devops-agent-2ldlmk-pcpj6
Namespace: kubesphere-devops-system
Priority: 0
Service Account: default
Node: node1/118.128.228.184
Start Time: Fri, 14 Feb 2025 14:32:10 +0800
Labels: batch.kubernetes.io/controller-uid=cf983b08-917f-4f6a-b255-d0b12a2110f5
batch.kubernetes.io/job-name=helm-executor-install-devops-agent-2ldlmk
controller-uid=cf983b08-917f-4f6a-b255-d0b12a2110f5
job-name=helm-executor-install-devops-agent-2ldlmk
Annotations: cni.projectcalico.org/containerID: a0579a78499a8532a46125e5d3d234b5d9039090753e3e4dc197fb8c9e227956
cni.projectcalico.org/podIP:
cni.projectcalico.org/podIPs:
Status: Failed
SeccompProfile: RuntimeDefault
IP: 10.233.90.81
IPs:
IP: 10.233.90.81
Controlled By: Job/helm-executor-install-devops-agent-2ldlmk
Containers:
helm:
Container ID: containerd://42c4cbc330c596a56500072a80806d6419c2dd574cc062a72ffcb1c2cc46d073
Image: swr.cn-southwest-2.myhuaweicloud.com/ks/kubesphere/kubectl:v1.27.16
Image ID: swr.cn-southwest-2.myhuaweicloud.com/ks/kubesphere/kubectl@sha256:dd1f94e0ed2bed17c0e49ae9e4070a48dacf750054b70501b824212857d0605a
Port: <none>
Host Port: <none>
Command:
/bin/sh
-c
cp -r /tmp/helm-executor-source/. /tmp/helm-executor && helm upgrade --history-max 2 --install --ca-file ca-helm.crt --kubeconfig kube.config --kube-as-user system:serviceaccount:kubesphere-devops-system:helm-executor.devops devops-agent https://extensions-museum.kubesphere-system.svc/charts/devops-1.1.1.tgz --namespace kubesphere-devops-system --values values.yaml --set tags.agent=true,tags.extension=false,global.clusterInfo.name=host,global.clusterInfo.role=host --post-renderer /tmp/helm-executor/helm-post-render.sh --debug --wait --wait-for-jobs --timeout 10m0s
State: Terminated
Reason: Error
Exit Code: 1
Started: Fri, 14 Feb 2025 14:32:16 +0800
Finished: Fri, 14 Feb 2025 14:43:01 +0800
Ready: False
Restart Count: 0
Limits:
cpu: 500m
memory: 500Mi
Requests:
cpu: 100m
memory: 100Mi
Environment:
HELM_CACHE_HOME: /tmp/helm-executor
Mounts:
/tmp/helm-executor from data (rw)
/tmp/helm-executor-source from source (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-s2z8q (ro)
Conditions:
Type Status
PodReadyToStartContainers False
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
source:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: helm-executor-install-devops-agent-2ldlmk
Optional: false
data:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit: <unset>
kube-api-access-s2z8q:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events: <none>
root@master1:/opt/software# clear
root@master1:/opt/software# kubectl describe pods -n kubesphere-devops-system helm-executor-install-devops-agent-2ldlmk-pcpj6
Name: helm-executor-install-devops-agent-2ldlmk-pcpj6
Namespace: kubesphere-devops-system
Priority: 0
Service Account: default
Node: node1/118.128.228.184
Start Time: Fri, 14 Feb 2025 14:32:10 +0800
Labels: batch.kubernetes.io/controller-uid=cf983b08-917f-4f6a-b255-d0b12a2110f5
batch.kubernetes.io/job-name=helm-executor-install-devops-agent-2ldlmk
controller-uid=cf983b08-917f-4f6a-b255-d0b12a2110f5
job-name=helm-executor-install-devops-agent-2ldlmk
Annotations: cni.projectcalico.org/containerID: a0579a78499a8532a46125e5d3d234b5d9039090753e3e4dc197fb8c9e227956
cni.projectcalico.org/podIP:
cni.projectcalico.org/podIPs:
Status: Failed
SeccompProfile: RuntimeDefault
IP: 10.233.90.81
IPs:
IP: 10.233.90.81
Controlled By: Job/helm-executor-install-devops-agent-2ldlmk
Containers:
helm:
Container ID: containerd://42c4cbc330c596a56500072a80806d6419c2dd574cc062a72ffcb1c2cc46d073
Image: swr.cn-southwest-2.myhuaweicloud.com/ks/kubesphere/kubectl:v1.27.16
Image ID: swr.cn-southwest-2.myhuaweicloud.com/ks/kubesphere/kubectl@sha256:dd1f94e0ed2bed17c0e49ae9e4070a48dacf750054b70501b824212857d0605a
Port: <none>
Host Port: <none>
Command:
/bin/sh
-c
cp -r /tmp/helm-executor-source/. /tmp/helm-executor && helm upgrade --history-max 2 --install --ca-file ca-helm.crt --kubeconfig kube.config --kube-as-user system:serviceaccount:kubesphere-devops-system:helm-executor.devops devops-agent https://extensions-museum.kubesphere-system.svc/charts/devops-1.1.1.tgz --namespace kubesphere-devops-system --values values.yaml --set tags.agent=true,tags.extension=false,global.clusterInfo.name=host,global.clusterInfo.role=host --post-renderer /tmp/helm-executor/helm-post-render.sh --debug --wait --wait-for-jobs --timeout 10m0s
State: Terminated
Reason: Error
Exit Code: 1
Started: Fri, 14 Feb 2025 14:32:16 +0800
Finished: Fri, 14 Feb 2025 14:43:01 +0800
Ready: False
Restart Count: 0
Limits:
cpu: 500m
memory: 500Mi
Requests:
cpu: 100m
memory: 100Mi
Environment:
HELM_CACHE_HOME: /tmp/helm-executor
Mounts:
/tmp/helm-executor from data (rw)
/tmp/helm-executor-source from source (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-s2z8q (ro)
Conditions:
Type Status
PodReadyToStartContainers False
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
source:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: helm-executor-install-devops-agent-2ldlmk
Optional: false
data:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit: <unset>
kube-api-access-s2z8q:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events: <none>