Google cloud internal lb

Материал из noname.com.ua
Перейти к навигацииПерейти к поиску
gcloud compute \
instance-groups unmanaged \
create consul-ig \
--zone us-central1-b
NAME       LOCATION       SCOPE  NETWORK  MANAGED  INSTANCES
consul-ig  us-central1-b  zone                     0


gcloud compute \
instance-groups set-named-ports consul-ig \
--named-ports "consil-8300:8300,consul-8301:8301,consul-8302:8302,consul-8400:8400,consul-8500:8500,consul-8600:8600"
gcloud compute \
health-checks \
create tcp consul-tcp-health-check \
--port 8500
NAME                     PROTOCOL
consul-tcp-health-check  TCP


gcloud compute \
backend-services create consul-backend-service \
--load-balancing-scheme internal \
--region us-central1 \
--health-checks consul-health-check