nuvo / skbn

Copy files and directories between Kubernetes and cloud storage
Apache License 2.0
74 stars 76 forks source link

Help with permissions #13

Closed michaelpporter closed 5 years ago

michaelpporter commented 5 years ago

I am trying to restore files from S3 to a Jenkins Helm instillation.

I have skbn installed locally and get the following error. I have tried running as an admin and the Jenkins service account we have in AWS.

error in Stream: Unauthorized dst: file: default/[pod-id]/jenkins-master/var/jenkins_home/jobs/admin/config.xml

I also setup the in-cluster from the examples and get the same error.

The path in Jenkins is owned by root

If I do not add the AWS secret and just use ~/.kube/config I get the following error:

2019/09/19 10:17:15 AccessDenied: Access Denied
    status code: 403, request id: 926596AA106D4016, host id: QgFAcBC8IHi2KgMjnYvz2uL7Ozx0[...]

What could I be missing in any of the solutions I have tried?

michaelpporter commented 5 years ago

Solved it. I had the service account in the wrong namespace.