Create named profile yc
Isolate creds per env; use yc --profile prod or YC_PROFILE in CI
yc config profile create prod && yc config profile activate prod
more yc
all 32 commands →
Mint short-lived IAM token
export YC_TOKEN=$(yc iam create-token)
Service account for CI
yc iam service-account create --name sa-ci --description 'CI deployer'
Authorized key for SA
yc iam key create --service-account-name sa-ci --output key.json
Grant role to SA
yc resource-manager folder add-access-binding <id> --role editor --service-account-name sa-ci
Write kubeconfig for cluster
yc managed-kubernetes cluster get-credentials <name> --external --force