Error when installing Spinnaker on Kubernetes on prem cluster

5/13/2020

I'm trying to install Spinnaker on a Kubernetes setup onprem.

Following instructions from https://www.spinnaker.io/setup/

  • Install and run Halyard as Docker on the Kubernetes master.
  • Run everything as root
  • mkdir ~/.hal on Kubemaster. Created the service account as instrcuted in the site.
  • Copied the kubeconfig file from ./kube/config into ~/.hal/kubeconfig as it didnt work with docker -v option, there was some permission issue, so made it work this way
  • docker run halyard command -- all up and running fine.
  • Ran Bash and Inside halyard.

Now when I do these two things inside halyard

  • Point kubectl to the kubeconfig by export KUBECONFIG command
  • Enable kubernetes provider "hal config provider kubernetes enable"

The command gets executed sometimes successfully or it fails with this warning after timeout error

  • Getting object contents of versions.yml

Unexpected error comparing versions: com.netflix.spinnaker.halyard.core.error.v1.HalException: Could not load "versions.yml" from config bucket: www.googleapis.com.*

Even if it somehow manages to run successfully. When I run these,

CONTEXT=$(kubectl config current-context)

hal config provider kubernetes account add my-k8s-account --context $CONTEXT

It fails with the same error as above.

Total weird stuff. Its intermittent. Does it have something to do with the kubeconfig file? Any pointers or help would be greatly appreciated.

Thanks.

-- Vikram
kubernetes
spinnaker

0 Answers