Create a VPC subnet
Create a subnet in one zone of a network; its CIDR must not overlap with peered networks.
yc vpc subnet create --name sub-a --network-name net-1 --range 10.0.0.0/24 --zone ru-central1-a
- tool
- yc32 commands
More yc commands
-
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-visibilityThe zone name needs a trailing dot; after that, delegate NS records at your registrar.
-
yc dns zone add-records --name myzone --record '@ 600 A 1.2.3.4'Add an A record for the zone apex with a 600 s TTL; @ means the zone root.