kubekey icon indicating copy to clipboard operation
kubekey copied to clipboard

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

Open lbrigman124 opened this issue 1 year ago • 1 comments

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?

lbrigman124 avatar Oct 26 '24 20:10 lbrigman124

Currently, modifying the temporary directory is not supported in this version. We will add support for this feature in future releases.

redscholar avatar Dec 20 '24 09:12 redscholar