Slackbot
01/10/2023, 3:24 AMXipeng Guan
01/10/2023, 6:09 AM1.1.2
to supports specifying serviceAccount. You should upgrade yatai-deployment-crds
and yatai-deployment
to 1.1.2
to use this feature.
Now, there are two ways to specify the serviceAccount:
1. If you want to set the serviceAccount to specific BentoDeployment api-server pods or runner pods, you can set the spec.extraPodSpec.serviceAccountName
or spec.runners[*].extraPodSpec.serviceAccountName
2. If you want to set the serviceAccount to all BentoDeployment pods in a specific namespace, you can set a label for the serviceAccount
resource like this:
kubectl -n yatai label serviceaccount my-sa <http://yatai.ai/bento-deployment-pod=true|yatai.ai/bento-deployment-pod=true>
Thawatchai Chandech
01/10/2023, 8:04 AM