1.使用curl -o install.sh https://get.rainbond.com && bash ./install.sh 安装
2.宿主机上rainbond容器能启动,日志报错: “helm” with CrashLoopBackOff
3.进入容器kubectl describe pod,日志: exec: “entry”: executable file not found in $PATH: unknown
完整命令行和日志:
kubectl describe pod -n rbd-system helm-install-rainbond-cluster-vk9lz
root@4724eec4b491:/# kubectl describe pod -n rbd-system helm-install-rainbond-cluster-vk9lz
Name: helm-install-rainbond-cluster-vk9lz
Namespace: rbd-system
Priority: 0
Service Account: helm-rainbond-cluster
Node: node/172.17.0.2
Start Time: Tue, 11 Feb 2025 02:33:38 +0000
Labels: batch.kubernetes.io/controller-uid=1cde3ca6-9a78-4772-86bb-900e7d0d65da
batch.kubernetes.io/job-name=helm-install-rainbond-cluster
controller-uid=1cde3ca6-9a78-4772-86bb-900e7d0d65da
helmcharts.helm.cattle.io/chart=rainbond-cluster
job-name=helm-install-rainbond-cluster
Annotations: helmcharts.helm.cattle.io/configHash: SHA256=5E2CF8EE29C2C89BD7F5C28C99DF17F3B72FCD98190B5B7985F74606017C7C61
Status: Running
SeccompProfile: RuntimeDefault
IP: 10.42.0.2
IPs:
IP: 10.42.0.2
Controlled By: Job/helm-install-rainbond-cluster
Containers:
helm:
Container ID: containerd://494bf19c09d82a32fcdac9ed4130c7225f5892a204b896cd8a7b820e1ee04483
Image: rancher/klipper-helm:v0.8.4-build20240523
Image ID: sha256:afd63e3b5878f73dfbecfc47a77350dc5aee49ce02e06f6914a0ac913f0e5cc8
Port: <none>
Host Port: <none>
Args:
install
–namespace
rbd-system
State: Waiting
Reason: CrashLoopBackOff
Last State: Terminated
Reason: StartError
Message: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: “entry”: executable file not found in $PATH: unknown
Exit Code: 128
Started: Thu, 01 Jan 1970 00:00:00 +0000
Finished: Tue, 11 Feb 2025 03:48:20 +0000
Ready: False
Restart Count: 32
Environment:
NAME: rainbond-cluster
VERSION:
REPO:
HELM_DRIVER: secret
CHART_NAMESPACE: rbd-system
CHART: https://%{KUBERNETES_API}%/static/rainbond-cluster.tgz
HELM_VERSION:
TARGET_NAMESPACE: rbd-system
AUTH_PASS_CREDENTIALS: false
NO_PROXY: .svc,.cluster.local,10.42.0.0/16,10.43.0.0/16
FAILURE_POLICY: reinstall
Mounts:
/chart from content (rw)
/config from values (rw)
/home/klipper-helm/.cache from klipper-cache (rw)
/home/klipper-helm/.config from klipper-config (rw)
/home/klipper-helm/.helm from klipper-helm (rw)
/tmp from tmp (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-855hx (ro)
Conditions:
Type Status
PodReadyToStartContainers True
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
klipper-helm:
Type: EmptyDir (a temporary directory that shares a pod’s lifetime)
Medium: Memory
SizeLimit: <unset>
klipper-cache:
Type: EmptyDir (a temporary directory that shares a pod’s lifetime)
Medium: Memory
SizeLimit: <unset>
klipper-config:
Type: EmptyDir (a temporary directory that shares a pod’s lifetime)
Medium: Memory
SizeLimit: <unset>
tmp:
Type: EmptyDir (a temporary directory that shares a pod’s lifetime)
Medium: Memory
SizeLimit: <unset>
values:
Type: Secret (a volume populated by a Secret)
SecretName: chart-values-rainbond-cluster
Optional: false
content:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: chart-content-rainbond-cluster
Optional: false
kube-api-access-855hx:
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: kubernetes.io/os=linux
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 76m default-scheduler Successfully assigned rbd-system/helm-install-rainbond-cluster-vk9lz to node
Normal Pulled 75m (x5 over 76m) kubelet Container image “rancher/klipper-helm:v0.8.4-build20240523” already present on machine
Normal Created 75m (x5 over 76m) kubelet Created container helm
Warning Failed 75m (x5 over 76m) kubelet Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: “entry”: executable file not found in $PATH: unknown
Warning BackOff 51m (x116 over 76m) kubelet Back-off restarting failed container helm in pod helm-install-rainbond-cluster-vk9lz_rbd-system(9a55aa32-082e-4b84-93d9-537f4928d4be)
Normal SandboxChanged 46m kubelet Pod sandbox changed, it will be killed and re-created.
Normal Pulled 44m (x4 over 46m) kubelet Container image “rancher/klipper-helm:v0.8.4-build20240523” already present on machine
Normal Created 44m (x4 over 46m) kubelet Created container helm
Warning Failed 44m (x4 over 46m) kubelet Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: “entry”: executable file not found in $PATH: unknown
Warning BackOff 26m (x94 over 46m) kubelet Back-off restarting failed container helm in pod helm-install-rainbond-cluster-vk9lz_rbd-system(9a55aa32-082e-4b84-93d9-537f4928d4be)
Normal SandboxChanged 20m kubelet Pod sandbox changed, it will be killed and re-created.
Normal Pulled 19m (x4 over 20m) kubelet Container image “rancher/klipper-helm:v0.8.4-build20240523” already present on machine
Normal Created 19m (x4 over 20m) kubelet Created container helm
Warning Failed 19m (x4 over 20m) kubelet Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: “entry”: executable file not found in $PATH: unknown
Warning BackOff 10m (x48 over 20m) kubelet Back-off restarting failed container helm in pod helm-install-rainbond-cluster-vk9lz_rbd-system(9a55aa32-082e-4b84-93d9-537f4928d4be)
Normal SandboxChanged 7m55s kubelet Pod sandbox changed, it will be killed and re-created.
Normal Pulled 6m20s (x4 over 7m55s) kubelet Container image “rancher/klipper-helm:v0.8.4-build20240523” already present on machine
Normal Created 6m20s (x4 over 7m55s) kubelet Created container helm
Warning Failed 6m20s (x4 over 7m55s) kubelet Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: “entry”: executable file not found in $PATH: unknown
Warning BackOff 2m47s (x25 over 7m54s) kubelet Back-off restarting failed container helm in pod helm-install-rainbond-cluster-vk9lz_rbd-system(9a55aa32-082e-4b84-93d9-537f4928d4be)