spinnaker: Halyard:stable container expects script to run with sudo but doesn't have sudo permissions
Issue Summary:
Running hall deploy apply on the stable container (gcr.io/spinnaker-marketplace/halyard:stable)
will result in error that it expects the script to be run with sudo.
/home/spinnaker/.hal/default/install.sh must be executed with root permissions; exiting
I tried to do sudo hal deploy apply but the halyard container doesn’t not have sudo installed and won’t let me install it, since the spinnaker user is not a sudoer
bash: sudo: command not found
Cloud Provider(s):
kubernetes (minikube)
Steps to Reproduce:
Follow the steps on spinnaker.io/setup/install/ to deploy spinnaker to a kubernetes cluster (in my case a minikube cluster),
Configure everything as instructed (Roles, Kube Config, GCS bucket,…)
For halyard choose the option of running halyard in docker (instead of on ubuntu)
in last step of the instruction, inside the halyard container, run hal deploy apply
and you will get this error /home/spinnaker/.hal/default/install.sh must be executed with root permissions; exiting
Additional information
$ hal -v
1.2.0-20180509113540
I tried to modify the Dockerfile on halyard repo locally and built this Dockerfile
FROM gcr.io/spinnaker-marketplace/halyard:stable
USER root
That will let me become root and then add spinnaker to sudoers group, but I think that could be fixed in the original Dockerfile, if you agree I could make a PR for it.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (9 by maintainers)
Is it possible that you missed the
hal config deploy edit --type distributed --account-name <account>command called out here? If so that’s why halyard is trying to install this using debian packages.@lwander my bad, I confirm that I missed
hal config deploy edit --type distributed --account-nameand that was the source of the problem. Thanks for the help. the good news is , I made spinnaker work in minikube ! pretty cool !had the same issue, and missed the above - after I ran it, ran
halyard deploy applyand it’s creating all the things now 👍Nice!
@dorbin @nhayes it seems the new docs are causing some confusion around this point – is that something we can look into clarifying?