enviroment:
My drone version: 2.0.7
drone-helm3 version: probably latest
k8s version(managed by rancher): 1.18.3
What i tried to do
helm upgrade --install
What happened
get an error : "Error: UPGRADE FAILED: query: failed to query with labels: the server has asked for the client to provide credentials (get secrets)"
I suspect i get the wrong kube_token and kube_service_acccount. The service_account which i use is 'drone-drone-pipeline',and the kube_token is 'drone-drone-pipeline-token-kfjn7'. This serviceaccount(drone-drone-pipeline) was created when drone was installed, I think it is used to provide the plugin for drone deployment.
enviroment: My drone version: 2.0.7 drone-helm3 version: probably latest k8s version(managed by rancher): 1.18.3
What i tried to do helm upgrade --install
What happened get an error : "Error: UPGRADE FAILED: query: failed to query with labels: the server has asked for the client to provide credentials (get secrets)"
detail:
I suspect i get the wrong kube_token and kube_service_acccount. The service_account which i use is 'drone-drone-pipeline',and the kube_token is 'drone-drone-pipeline-token-kfjn7'. This serviceaccount(drone-drone-pipeline) was created when drone was installed, I think it is used to provide the plugin for drone deployment.
drone-drone-pipeline-token-kfjn7 info:
the clusterrolebinding 'drone-drone-pipeline':
the clusterrole 'drone-drone-pipeline':
my drone config:
Can I use this token for deploying? Or can you give suggestions for obtaining kube_token for deploying?
Thanks for help.