List L7 load balancers
Enumerate ALB instances and health status across folder
yc application-load-balancer load-balancer list --format json | jq -r '.[]|[.name,.status]|@tsv'
- tool
- yc32 commands
More yc commands
-
yc dns zone create --name myzone --zone example.com. --public-visibilityPublic zone; FQDN trailing dot required, then delegate NS at registrar
-
yc dns zone add-records --name myzone --record '@ 600 A 1.2.3.4'Add apex A record with 600s TTL; @ means the zone root
-
yc compute instance create --name web-1 --zone ru-central1-a --network-interface subnet-name=sub-a,nat-ip-version=ipv4 --create-boot-disk image-family=ubuntu-2204-lts,size=20 --metadata-from-file user-data=cloud-init.yamlBoot VM with public NAT IP and cloud-init user-data bootstrap
-
yc managed-postgresql cluster create --name <name> --environment production --postgresql-version 16 --network-name <name> --host zone-id=ru-central1-a,subnet-name=<name> --resource-preset s3-c2-m8 --disk-size 50 --disk-type network-ssdProvision HA PG16 cluster; note: pick s3 preset for prod, not burstable b-class
-
yc managed-postgresql cluster list-hosts --cluster-name <name> --format json | jq -r '.[] | "\(.name)\t\(.role)\t\(.health)"'Show host FQDNs with MASTER/REPLICA role and health for connection routing