Failed to backup user file: /root/.kube/config
Hello I try to install spinnaker to aws kubernets. But When I tried to run hal deploy apply I got an error Failed to backup user file: /root/.kube/config
Installation link - https://spinnaker.io/docs/setup/install/providers/kubernetes-v2/
The config file is:
apiVersion: v1 clusters:
- cluster: certificate-authority-data: REDACTED server: REDACTED name: REDACTED contexts:
- context: cluster: REDACTED user: eks-spinnaker-token-user name: eks-spinnaker current-context: eks-spinnaker kind: Config preferences: {} users:
- name: REDACTED user: exec: apiVersion: client.authentication.k8s.io/v1beta1 args: - --region - us-west-2 - eks - get-token - --cluster-name - eks-spinnaker command: aws env: null interactiveMode: IfAvailable provideClusterInfo: false
- name: eks-spinnaker-token-user user: token: REDACTED
Redacted some potentially sensitive info.
How are you running Halyard? In a container, or on a host?
running on a host. To be honest I am not a DevOps or system admin. I am just a developer and trying to install spinnaker to make a connection with circle ci for deployment. Maybe I did something wrong. I just follow this documentation - https://spinnaker.io/docs/setup/install/providers/kubernetes-v2/
My guess would be you're running as root but don't have access to create files under /root? Are you able to login as a different user and run it?
mkdir .kube && touch /root/.kube/config
This issue hasn't been updated in 45 days, so we are tagging it as 'stale'. If you want to remove this label, comment:
@spinnakerbot remove-label stale
This issue is tagged as 'stale' and hasn't been updated in 45 days, so we are tagging it as 'to-be-closed'. It will be closed in 45 days unless updates are made. If you want to remove this label, comment:
@spinnakerbot remove-label to-be-closed
This issue is tagged as 'stale' and hasn't been updated in 45 days, so we are tagging it as 'to-be-closed'. It will be closed in 45 days unless updates are made. If you want to remove this label, comment:
@spinnakerbot remove-label to-be-closed
This issue is tagged as 'to-be-closed' and hasn't been updated in 45 days, so we are closing it. You can always reopen this issue if needed.