sealerio / sealer

Build, Share and Run Both Your Kubernetes Cluster and Distributed Applications (Project under CNCF)
http://sealer.cool
Apache License 2.0
2.06k stars 362 forks source link

can't install helm chart, command not found #2331

Open lazywhite opened 8 months ago

lazywhite commented 8 months ago

What happen?

here is my Kubefile

FROM docker.io/sealerio/kubernetes:v1-22-15-sealerio-2
APP nginx local://nginx/
LAUNCH ["calico", "nginx"]

nginx is a helm chart, I build sealer image with this command

sealer build -f Kubefile -t demo:t6 .

then I install kubernetes with this command

sealer run demo:t6  \
    --user root \
    --passwd 1234 \
    --masters 1.2.3.5 \
        --nodes 1.2.3.4

then install failed with "helm command not found"

should I preinstall helm on all --masters and --nodes? can I build helm inside sealer image and execute it?

Relevant log output?

/bin/bash: helm: 未找到命令
2024-01-11 11:09:42 [ERROR] [root.go:75] sealer-v0.11.0: failed to execute command(export PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin"; cd /var/lib/sealer/data/my-cluster/rootfs && helm install nginx application/apps/nginx/) on host(10.3.8.157): error(exit status 127)


### What you expected to happen?

_No response_

### How to reproduce it (as minimally and precisely as possible)?

_No response_

### Anything else we need to know?

_No response_

### What is the version of Sealer you using?

{"gitVersion":"v0.11.0","gitCommit":"f07e804","buildDate":"2023-07-25 02:51:08","goVersion":"go1.17.13","compiler":"gc","platform":"linux/amd64"}

### What is your OS environment?

Anolis OS 8.8

### What is the Kernel version?

5.10.134-13.an8.x86_64

### Other environment you want to tell us?

- Cloud provider or hardware configuration:
- Install tools:
- Others: