Google cloud internal lb: различия между версиями

Материал из noname.com.ua
Перейти к навигацииПерейти к поиску
Строка 11: Строка 11:
 
</PRE>
 
</PRE>
   
  +
  +
<PRE>
  +
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"
  +
</PRE>
   
 
<PRE>
 
<PRE>
Строка 22: Строка 28:
 
NAME PROTOCOL
 
NAME PROTOCOL
 
consul-tcp-health-check TCP
 
consul-tcp-health-check TCP
  +
</PRE>
  +
  +
  +
<PRE>
  +
gcloud compute \
  +
backend-services create consul-backend-service \
  +
--load-balancing-scheme internal \
  +
--region us-central1 \
  +
--health-checks consul-health-check
  +
 
</PRE>
 
</PRE>

Версия 12:27, 20 февраля 2017

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