Hal config provider kubernetes enable fails

#1

I have installed haylard on docker container as per spinnaker.io documentation. I have kubernetes cluster in microsoft azure cloud. copied kubeconfig file manually on mounted folder after docker run

  1. kubectl get pods -n spinnaker shows “no resources found” (Is this correct?)
  2. when I try to enable kubernaties provider (manifest) it throws me error as

spinnaker@9d5506d5e78e:/workdir$ hal config provider kubernetes enable

  • Get current deployment
    Success
  • Edit the kubernetes provider
    Failure
    Problems in Global:
    ! ERROR Failure writing your halconfig to path
    “/home/spinnaker/.hal/config”: /home/spinnaker/.hal/config

  • Failed to enable kubernetes

I can see mounted dir is with root. Does it require spinnaker user permission?
If so, how to do it? I tried chown but didnt work

spinnaker@9d5506d5e78e:~ ls -lart total 36 -rw-r--r-- 1 spinnaker spinnaker 675 May 15 2017 .profile -rw-r--r-- 1 spinnaker spinnaker 3526 May 15 2017 .bashrc -rw-r--r-- 1 spinnaker spinnaker 220 May 15 2017 .bash_logout drwxr-xr-x 1 root root 4096 Apr 17 18:42 .. drwxr-xr-x 2 root root 4096 May 9 10:12 .hal -rw------- 1 spinnaker spinnaker 55 May 9 10:13 .bash_history drwxr-xr-x 2 root root 4096 May 9 10:14 k8s drwxr-xr-x 1 spinnaker spinnaker 4096 May 9 10:14 . drwxr-xr-x 4 spinnaker spinnaker 4096 May 9 10:14 .kube spinnaker@9d5506d5e78e:~ chown spinnaker:spinnaker .hal
chown: changing ownership of ‘.hal’: Operation not permitted

what else is expected ?

1 Like