kubesphere / kubekey

Install Kubernetes/K3s only, both Kubernetes/K3s and KubeSphere, and related cloud-native add-ons, it supports all-in-one, multi-node, and HA 🔥 ⎈ 🐳
https://kubesphere.io
Apache License 2.0
2.39k stars 555 forks source link

Doc question - temp directory usage and possible option to change location #2435

Open lbrigman124 opened 1 month ago

lbrigman124 commented 1 month ago

What is version of KubeKey has the issue?

3.1.1

What is your os environment?

Rocky Linux 9

KubeKey config file

No response

A clear and concise description of what happend.

We are installing on customer-provided VM's. These VMs have recommended security-hardening changes implemented. One specific issue is that /tmp and other temp directories are marked as noexec.

This causes the pre-steps commands not to execute and time out.

Relevant log output

+ exit 1: Process exited with status 1
failed: [gsm-3node-fresh-1] [Phase:PreInstall(0/1) script:nfs mount setup and check] exec failed after 1 retries: Exec Bash: /bin/bash /tmp/kubekeyPreInstall-0-script/task.sh err:Failed to exec command: sudo -E /bin/bash -c "/bin/bash /tmp/kubekeyPreInstall-0-script/task.sh"

Additional information

So this is more of a doc question than your defect. Is there a way to change the temp directories using a configuration option without changing kk?