Grant role to SA

Scope-bind a role at folder level; prefer narrow roles over editor

yc resource-manager folder add-access-binding <id> --role editor --service-account-name sa-ci

tool
yc32 commands
tags
yciamsecurity

More yc commands

  • yc managed-kubernetes cluster get-credentials <name> --external --force

    Merge external endpoint into kubeconfig; drop --external for internal VPC

  • yc managed-kubernetes cluster list --format json | jq -r '.[]|[.name,.status,.id]|@tsv'

    Tabulate cluster name/status/id for scripting and audits

  • yc managed-kubernetes node-group create --cluster-name <name> --name ng-1 --platform standard-v3 --auto-scale min=1,max=5,initial=2 --location zone=ru-central1-a

    Cluster autoscaler node group with min/max bounds in one zone

  • yc vpc subnet create --name sub-a --network-name net-1 --range 10.0.0.0/24 --zone ru-central1-a

    Zone-scoped subnet bound to a network; CIDR must not overlap peers

  • yc vpc security-group update-rules <name> --add-rule 'direction=ingress,port=443,protocol=tcp,v4-cidrs=[0.0.0.0/0]'

    Add stateful SG rule; note: rules are evaluated as allow-list

all 32 yc commands