我让Jenkins运行在AWS EKS集群中。使用jenkinsci/jenkins上提供的舵图来部署它。我想使用头盔图表中包含的备份选项。我的备份配置如下:
backup:
enabled: true
schedule: "* 04 * * *"
annotations:
eks.amazonaws.com/role-arn: "arn:aws:iam::221100446688:role/jenkins-backup"
image:
repository: "maorfr/kube-tasks"
tag: "0.2.0"
destination: "s3://my-jenkins-tings/backup"
我收到此错误:
2020/09/27 05:08:56 Backup started!
2020/09/27 05:08:56 Getting clients
2020/09/27 05:08:59 WebIdentityErr: unable to read file at /var/run/secrets/eks.amazonaws.com/serviceaccount/token
caused by: open /var/run/secrets/eks.amazonaws.com/serviceaccount/token: permission denied
我尝试添加fsUser&Group,甚至更新了jenkins-backup
服务帐户的注释。还是一样的错误。