spinnaker icon indicating copy to clipboard operation
spinnaker copied to clipboard

Failed to backup user file: /root/.kube/config

Open ihakhverdiyev2019 opened this issue 3 years ago • 4 comments

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

ihakhverdiyev2019 avatar Jul 24 '22 13:07 ihakhverdiyev2019

Redacted some potentially sensitive info.

How are you running Halyard? In a container, or on a host?

mattgogerly avatar Jul 25 '22 10:07 mattgogerly

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/

ihakhverdiyev2019 avatar Jul 25 '22 10:07 ihakhverdiyev2019

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?

mattgogerly avatar Jul 28 '22 13:07 mattgogerly

mkdir .kube && touch /root/.kube/config

tirelibirefe avatar Aug 17 '22 06:08 tirelibirefe

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

spinnakerbot avatar Oct 01 '22 06:10 spinnakerbot

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

spinnakerbot avatar Nov 15 '22 06:11 spinnakerbot

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

spinnakerbot avatar Dec 30 '22 12:12 spinnakerbot

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.

spinnakerbot avatar Feb 13 '23 12:02 spinnakerbot