Create an autoscaling node group

Create a node group in one zone that the autoscaler keeps between 1 and 5 nodes, starting with 2.

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

tool
yc32 commands
tags
yck8sperformancecloud

More yc commands

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

    Create a subnet in one zone of a network; its CIDR must not overlap with peered networks.

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

    Add a stateful rule for inbound TCP 443 from anywhere; anything not allowed is blocked.

  • yc load-balancer network-load-balancer get <name> --format json | jq '.listeners,.attached_target_groups'

    Show NLB listeners and target groups to debug routing.

  • yc application-load-balancer load-balancer list --format json | jq -r '.[]|[.name,.status]|@tsv'

    List all ALBs in the folder with their status.

  • yc dns zone create --name myzone --zone example.com. --public-visibility

    The zone name needs a trailing dot; after that, delegate NS records at your registrar.

all 32 yc commands