{"id":2346,"date":"2020-03-02T09:13:28","date_gmt":"2020-03-02T08:13:28","guid":{"rendered":"https:\/\/geko2.factoryfy.com\/?p=910"},"modified":"2021-11-03T17:35:52","modified_gmt":"2021-11-03T16:35:52","slug":"configurar-haproxy-googlecloud-keepalived","status":"publish","type":"post","link":"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/","title":{"rendered":"C\u00f3mo configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived"},"content":{"rendered":"<p>S\u00ed, puedes pensar: <em>\u00ab\u00bfQu\u00e9? Google Cloud tiene su propio servicio administrado de balanceador de carga. \u00bfPor qu\u00e9 querr\u00eda configurar y administrar un load balancer HA dedicado?<\/em>\u00ab. Recomendamos utilizar el servicio GCP Load Balancer siempre que puedas. Es un servicio muy confiable y no tienes que administrar tu propio load balancer en una configuraci\u00f3n de alta disponibilidad.<\/p>\n<p>Pero a veces hay algunas situaciones en las que GCP Load Balancer no se ajusta a tus necesidades o, simplemente, no deseas usarlo &#8230; En esos casos, tenemos una configuraci\u00f3n muy simple utilizando dos piezas de software bien conocidas: <strong>HAProxy <\/strong>y<strong> Keepalived<\/strong>.<\/p>\n<p>Keepalived utiliza Virtual Router Redundancy Protocol (<a href=\"https:\/\/tools.ietf.org\/html\/rfc3768\">VRRP<\/a>) y direcciones IP flotantes que pueden &#8216;moverse&#8217; de una VM a otra en caso de que una de ellas no est\u00e9 disponible. En un entorno cl\u00e1sico y local, esto es algo as\u00ed:<\/p>\n<figure id=\"attachment_912\" aria-describedby=\"caption-attachment-912\" style=\"width: 634px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/geko2.factoryfy.com\/wp-content\/uploads\/floating-ip-on-premises-environment.svg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-912 \" src=\"https:\/\/geko2.factoryfy.com\/wp-content\/uploads\/floating-ip-on-premises-environment.svg\" alt=\"\" width=\"634\" height=\"181\" \/><\/a><figcaption id=\"caption-attachment-912\" class=\"wp-caption-text\">Image source: Google Cloud<\/figcaption><\/figure>\n<p>En caso de un server failure, cuando el otro servidor toma las direcciones IP flotantes, agrega estas direcciones a tu interfaz de red. El servidor anuncia esta toma de control a otros dispositivos que utilizan la layer 2 mediante el env\u00edo de un marco de <a href=\"https:\/\/en.wikipedia.org\/wiki\/Address_Resolution_Protocol#ARP_announcements\">Protocolo de resoluci\u00f3n de direcciones (ARP) gratuito<\/a>. Google Compute Engine utiliza virtualized network stack y los mecanismos de implementaci\u00f3n t\u00edpicos no funcionan aqu\u00ed. La red VPC maneja las solicitudes ARP basadas en la topolog\u00eda de enrutamiento configurada e ignora las tramas ARP gratuitas.<\/p>\n<p>En primer lugar, debes instalar haproxy y keepalived en tu servidor. En este caso, usamos <strong>Ubuntu 18.04.<\/strong> Solo ejecuta:<\/p>\n<pre>sudo apt install haproxy \r\nsudo apt install keepalived<\/pre>\n<p>Para este tutorial configuraremos un <strong>load balancer interno<\/strong>, pero tambi\u00e9n puedes configurar un load balancer externo con algunas peque\u00f1as modificaciones.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-945 aligncenter\" src=\"https:\/\/geko2.factoryfy.com\/wp-content\/uploads\/screenshot-20200228160149-911x611.png\" alt=\"\" width=\"619\" height=\"415\" \/><\/p>\n<p>Utilizaremos este archivo \/etc\/haproxy\/haproxy.cfg en ambos servidores. Ambos servidores (MASTER y BACKUP) <strong>deben tener exactamente la misma configuraci\u00f3n de HAProxy<\/strong>.<\/p>\n<pre><span style=\"font-weight: 400;\">global<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0log \/dev\/log\u00a0 \u00a0 local0 debug\r\n<\/span><span style=\"font-weight: 400;\">        log \/dev\/log\u00a0 \u00a0 local1 debug<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0chroot \/var\/lib\/haproxy<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0stats socket \/run\/haproxy\/admin.sock mode 660 level admin expose-fd listeners<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0stats timeout 30s<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0user haproxy<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0group haproxy<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0daemon<\/span>\r\n\r\n<span style=\"font-weight: 400;\">defaults<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0log \u00a0 \u00a0 global<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0mode\u00a0 \u00a0 http<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0option\u00a0 dontlognull<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0timeout connect 5000<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0timeout client\u00a0 50000<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0timeout server\u00a0 50000<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0errorfile 400 \/etc\/haproxy\/errors\/400.http<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0errorfile 403 \/etc\/haproxy\/errors\/403.http<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0errorfile 408 \/etc\/haproxy\/errors\/408.http<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0errorfile 500 \/etc\/haproxy\/errors\/500.http<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0errorfile 502 \/etc\/haproxy\/errors\/502.http<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0errorfile 503 \/etc\/haproxy\/errors\/503.http<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0errorfile 504 \/etc\/haproxy\/errors\/504.http<\/span>\r\n\r\n<span style=\"font-weight: 400;\">frontend service-1<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0bind 192.168.240.140:443<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0mode tcp<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0option tcplog<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0log global<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0default_backend service-1-be<\/span>\r\n<span style=\"font-weight: 400;\">backend service-1-be<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0mode tcp<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0server service-1-server-1 10.152.0.220:443 check id 1\r\n  server service-1-server-2 10.152.0.221:443 check id 2\r\n\r\n\r\n<\/span>frontend service-2\r\n\u00a0\u00a0bind 192.168.240.141:443\r\n\u00a0\u00a0mode tcp\r\n\u00a0\u00a0option tcplog\r\n\u00a0\u00a0log global\r\n\u00a0\u00a0default_backend service-2-be\r\nbackend service-2-be\r\n\u00a0\u00a0mode tcp\r\n\u00a0\u00a0server service-2-server-1 10.10.0.40:443 check id 1\r\n  server service-2-server-2 10.10.0.41:443 check id 2<\/pre>\n<p>En este ejemplo, las dos IP flotantes ser\u00e1n: <strong>192.168.240.140<\/strong> y <strong>192.168.240.141.<\/strong><\/p>\n<p>No olvides reiniciar el servicio haproxy (sudo systemctl restart haproxy) cada vez que cambies el archivo de configuraci\u00f3n. \ud83d\ude09<\/p>\n<p>Para el archivo de configuraci\u00f3n <strong>\/etc\/keepalived\/keepalived.conf<\/strong> usaremos estos dos archivos de configuraci\u00f3n en las VM masters y slaves:<\/p>\n<h3>MASTER<\/h3>\n<pre><span style=\"font-weight: 400;\">vrrp_instance floating_ip {<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0state MASTER<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0interface ens4<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0unicast_src_ip 192.168.240.10<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0unicast_peer {<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0192.168.240.11<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0}<\/span>\r\n\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0virtual_router_id 50<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0priority 100<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0authentication {<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0auth_type PASS<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0auth_pass your_passwd<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0}<\/span>\r\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0notify_master \/etc\/keepalived\/takeover.sh root<\/span>\r\n<span style=\"font-weight: 400;\">}<\/span><\/pre>\n<h3>BACKUP<\/h3>\n<pre>vrrp_instance floating_ip {\r\n\u00a0\u00a0\u00a0\u00a0state BACKUP\r\n\u00a0\u00a0\u00a0\u00a0interface ens4\r\n\u00a0\u00a0\u00a0\u00a0unicast_src_ip 192.168.240.11\r\n\u00a0\u00a0\u00a0\u00a0unicast_peer {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0192.168.240.10\r\n\u00a0\u00a0\u00a0\u00a0}\r\n\r\n\u00a0\u00a0\u00a0\u00a0virtual_router_id 50\r\n\u00a0\u00a0\u00a0\u00a0priority 50\r\n\u00a0\u00a0\u00a0\u00a0authentication {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0auth_type PASS\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0auth_pass your_passwd\r\n\u00a0\u00a0\u00a0\u00a0}\r\n\u00a0\u00a0\u00a0\u00a0notify_master \/etc\/keepalived\/takeover.sh root\r\n}<\/pre>\n<p>No olvides reiniciar el servicio keepalived (sudo systemctl restart keepalived) cada vez que cambie el archivo de configuraci\u00f3n. \ud83d\ude09<\/p>\n<p>Y ahora la parte que hace la &#8216;magia&#8217;: el script <strong>\/etc\/keepalived\/takeover.sh<\/strong>. B\u00e1sicamente, este script desasigna los alias de IP del par que est\u00e1 inactivo y se los asigna a s\u00ed mismo. Despu\u00e9s de eso, el servicio haproxy se vuelve a cargar para permitir que el haproxy se una a las IP flotantes.<\/p>\n<h3>MASTER<\/h3>\n<pre># Unassign peer's IP aliases. Try it until it's possible.\r\nuntil gcloud compute instances network-interfaces update haproxy-prod-backup --zone europe-west1-c --aliases \"\" &gt; \/etc\/keepalived\/takeover.log 2&gt;&amp;1; do\r\n\u00a0\u00a0\u00a0\u00a0echo \"Instance not accessible during takeover. Retrying in 5 seconds...\"\r\n\u00a0\u00a0\u00a0\u00a0sleep 5\r\ndone\r\n\r\n# Assign IP aliases to me because now I am the MASTER!\r\ngcloud compute instances network-interfaces update haproxy-prod \r\n\u00a0\u00a0\u00a0\u00a0--zone europe-west1-b \r\n\u00a0\u00a0\u00a0\u00a0--aliases \"192.168.240.140\/32;192.168.240.141\/32\" &gt;&gt; \/etc\/keepalived\/takeover.log 2&gt;&amp;1\r\nsystemctl restart haproxy\r\necho \"I became the MASTER at: $(date)\" &gt;&gt; \/etc\/keepalived\/takeover.log\r\n\r\n<\/pre>\n<h3>BACKUP<\/h3>\n<pre># Unassign peer's IP aliases. Try it until it's possible.\r\nuntil gcloud compute instances network-interfaces update haproxy-prod --zone europe-west1-b --aliases \"\" &gt; \/etc\/keepalived\/takeover.log 2&gt;&amp;1; do\r\n\u00a0\u00a0\u00a0\u00a0echo \"Instance not accessible during takeover. Retrying in 5 seconds...\"\r\n\u00a0\u00a0\u00a0\u00a0sleep 5\r\ndone\r\n\r\n# Assign IP aliases to me because now I am the MASTER!\r\ngcloud compute instances network-interfaces update haproxy-prod-backup \r\n\u00a0\u00a0\u00a0\u00a0--zone europe-west1-c \r\n\u00a0\u00a0\u00a0\u00a0--aliases \"192.168.240.140\/32;192.168.240.141\/32\" &gt;&gt; \/etc\/keepalived\/takeover.log 2&gt;&amp;1\r\nsystemctl restart haproxy\r\necho \"I became the MASTER at: $(date)\" &gt;&gt; \/etc\/keepalived\/takeover.log\r\n<\/pre>\n<p>De hecho, todo lo que hacemos es asignar \/ desasignar alias de IP dependiendo de qu\u00e9 VM sea el MAESTRO.<\/p>\n<p>F\u00e1cil, \u00bfno? \ud83d\ude42<\/p>\n<hr \/>\n<p>Espero que hayas disfrutado de este post y te animo a que <a href=\"https:\/\/geko.cloud\/es\/blog\/\">revises nuestro blog para leer otrosposts<\/a> que puedan ser de tu inter\u00e9s, por ejemplo \u00ab<a href=\"https:\/\/geko.cloud\/es\/que-es-cloud\/\">Qu\u00e9 es el cloud?<\/a>\u00ab.<\/p>\n<p>Si tienes alguna duda, <a href=\"https:\/\/geko.cloud\/es\/contacto\/\">cont\u00e1ctanos<\/a> and Feel the Geko Way!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>S\u00ed, puedes pensar: \u00ab\u00bfQu\u00e9? Google Cloud tiene su propio servicio administrado de balanceador de carga. \u00bfPor qu\u00e9 querr\u00eda configurar y administrar un load balancer HA dedicado?\u00ab. Recomendamos utilizar el servicio GCP Load Balancer siempre que puedas. Es un servicio muy confiable y no tienes que administrar tu propio load balancer en una configuraci\u00f3n de alta [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2347,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[18],"tags":[52,43],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived<\/title>\n<meta name=\"description\" content=\"C\u00f3mo configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived. Conoce todos los pasos de la mano de expertos cloud.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived\" \/>\n<meta property=\"og:description\" content=\"C\u00f3mo configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived. Conoce todos los pasos de la mano de expertos cloud.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/\" \/>\n<meta property=\"og:site_name\" content=\"Geko Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-02T08:13:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-03T16:35:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/geko.cloud\/wp-content\/uploads\/keepalived.png\" \/>\n\t<meta property=\"og:image:width\" content=\"751\" \/>\n\t<meta property=\"og:image:height\" content=\"380\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jose Luis S\u00e1nchez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@geko_cloud\" \/>\n<meta name=\"twitter:site\" content=\"@geko_cloud\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/\"},\"author\":{\"name\":\"Jose Luis S\u00e1nchez\",\"@id\":\"https:\/\/geko.cloud\/es\/#\/schema\/person\/d06aff498ebfbc75b5010ebe92af41ed\"},\"headline\":\"C\u00f3mo configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived\",\"datePublished\":\"2020-03-02T08:13:28+00:00\",\"dateModified\":\"2021-11-03T16:35:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/\"},\"wordCount\":516,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/geko.cloud\/es\/#organization\"},\"image\":{\"@id\":\"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/geko.cloud\/wp-content\/uploads\/keepalived.png\",\"keywords\":[\"Google Cloud\",\"HAproxy\"],\"articleSection\":[\"Labs\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/\",\"url\":\"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/\",\"name\":\"Configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived\",\"isPartOf\":{\"@id\":\"https:\/\/geko.cloud\/es\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/geko.cloud\/wp-content\/uploads\/keepalived.png\",\"datePublished\":\"2020-03-02T08:13:28+00:00\",\"dateModified\":\"2021-11-03T16:35:52+00:00\",\"description\":\"C\u00f3mo configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived. Conoce todos los pasos de la mano de expertos cloud.\",\"breadcrumb\":{\"@id\":\"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/#primaryimage\",\"url\":\"https:\/\/geko.cloud\/wp-content\/uploads\/keepalived.png\",\"contentUrl\":\"https:\/\/geko.cloud\/wp-content\/uploads\/keepalived.png\",\"width\":751,\"height\":380,\"caption\":\"keepalived logo\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/geko.cloud\/es\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C\u00f3mo configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/geko.cloud\/es\/#website\",\"url\":\"https:\/\/geko.cloud\/es\/\",\"name\":\"Geko Cloud\",\"description\":\"Servicios de consultor\u00eda cloud y devops\",\"publisher\":{\"@id\":\"https:\/\/geko.cloud\/es\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/geko.cloud\/es\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/geko.cloud\/es\/#organization\",\"name\":\"Geko Cloud\",\"url\":\"https:\/\/geko.cloud\/es\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/geko.cloud\/es\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/geko.cloud\/wp-content\/uploads\/2021\/10\/geko_logo-positivo.png\",\"contentUrl\":\"https:\/\/geko.cloud\/wp-content\/uploads\/2021\/10\/geko_logo-positivo.png\",\"width\":1650,\"height\":809,\"caption\":\"Geko Cloud\"},\"image\":{\"@id\":\"https:\/\/geko.cloud\/es\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/geko_cloud\",\"https:\/\/www.instagram.com\/gekocloud\/\",\"https:\/\/www.linkedin.com\/company\/gekocloud\",\"https:\/\/www.youtube.com\/channel\/UC5EFLCqUM7fEaXSa_0nWowQ\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/geko.cloud\/es\/#\/schema\/person\/d06aff498ebfbc75b5010ebe92af41ed\",\"name\":\"Jose Luis S\u00e1nchez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/geko.cloud\/es\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ebfd055d4dba456220c682523fcc237c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ebfd055d4dba456220c682523fcc237c?s=96&d=mm&r=g\",\"caption\":\"Jose Luis S\u00e1nchez\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived","description":"C\u00f3mo configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived. Conoce todos los pasos de la mano de expertos cloud.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/","og_locale":"es_ES","og_type":"article","og_title":"Configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived","og_description":"C\u00f3mo configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived. Conoce todos los pasos de la mano de expertos cloud.","og_url":"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/","og_site_name":"Geko Cloud","article_published_time":"2020-03-02T08:13:28+00:00","article_modified_time":"2021-11-03T16:35:52+00:00","og_image":[{"width":751,"height":380,"url":"https:\/\/geko.cloud\/wp-content\/uploads\/keepalived.png","type":"image\/png"}],"author":"Jose Luis S\u00e1nchez","twitter_card":"summary_large_image","twitter_creator":"@geko_cloud","twitter_site":"@geko_cloud","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/#article","isPartOf":{"@id":"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/"},"author":{"name":"Jose Luis S\u00e1nchez","@id":"https:\/\/geko.cloud\/es\/#\/schema\/person\/d06aff498ebfbc75b5010ebe92af41ed"},"headline":"C\u00f3mo configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived","datePublished":"2020-03-02T08:13:28+00:00","dateModified":"2021-11-03T16:35:52+00:00","mainEntityOfPage":{"@id":"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/"},"wordCount":516,"commentCount":0,"publisher":{"@id":"https:\/\/geko.cloud\/es\/#organization"},"image":{"@id":"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/#primaryimage"},"thumbnailUrl":"https:\/\/geko.cloud\/wp-content\/uploads\/keepalived.png","keywords":["Google Cloud","HAproxy"],"articleSection":["Labs"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/","url":"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/","name":"Configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived","isPartOf":{"@id":"https:\/\/geko.cloud\/es\/#website"},"primaryImageOfPage":{"@id":"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/#primaryimage"},"image":{"@id":"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/#primaryimage"},"thumbnailUrl":"https:\/\/geko.cloud\/wp-content\/uploads\/keepalived.png","datePublished":"2020-03-02T08:13:28+00:00","dateModified":"2021-11-03T16:35:52+00:00","description":"C\u00f3mo configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived. Conoce todos los pasos de la mano de expertos cloud.","breadcrumb":{"@id":"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/#primaryimage","url":"https:\/\/geko.cloud\/wp-content\/uploads\/keepalived.png","contentUrl":"https:\/\/geko.cloud\/wp-content\/uploads\/keepalived.png","width":751,"height":380,"caption":"keepalived logo"},{"@type":"BreadcrumbList","@id":"https:\/\/geko.cloud\/es\/configurar-haproxy-googlecloud-keepalived\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/geko.cloud\/es\/"},{"@type":"ListItem","position":2,"name":"C\u00f3mo configurar un HAProxy de alta disponibilidad en Google Cloud con Keepalived"}]},{"@type":"WebSite","@id":"https:\/\/geko.cloud\/es\/#website","url":"https:\/\/geko.cloud\/es\/","name":"Geko Cloud","description":"Servicios de consultor\u00eda cloud y devops","publisher":{"@id":"https:\/\/geko.cloud\/es\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/geko.cloud\/es\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/geko.cloud\/es\/#organization","name":"Geko Cloud","url":"https:\/\/geko.cloud\/es\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/geko.cloud\/es\/#\/schema\/logo\/image\/","url":"https:\/\/geko.cloud\/wp-content\/uploads\/2021\/10\/geko_logo-positivo.png","contentUrl":"https:\/\/geko.cloud\/wp-content\/uploads\/2021\/10\/geko_logo-positivo.png","width":1650,"height":809,"caption":"Geko Cloud"},"image":{"@id":"https:\/\/geko.cloud\/es\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/geko_cloud","https:\/\/www.instagram.com\/gekocloud\/","https:\/\/www.linkedin.com\/company\/gekocloud","https:\/\/www.youtube.com\/channel\/UC5EFLCqUM7fEaXSa_0nWowQ"]},{"@type":"Person","@id":"https:\/\/geko.cloud\/es\/#\/schema\/person\/d06aff498ebfbc75b5010ebe92af41ed","name":"Jose Luis S\u00e1nchez","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/geko.cloud\/es\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ebfd055d4dba456220c682523fcc237c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ebfd055d4dba456220c682523fcc237c?s=96&d=mm&r=g","caption":"Jose Luis S\u00e1nchez"}}]}},"_links":{"self":[{"href":"https:\/\/geko.cloud\/es\/wp-json\/wp\/v2\/posts\/2346"}],"collection":[{"href":"https:\/\/geko.cloud\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geko.cloud\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geko.cloud\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/geko.cloud\/es\/wp-json\/wp\/v2\/comments?post=2346"}],"version-history":[{"count":4,"href":"https:\/\/geko.cloud\/es\/wp-json\/wp\/v2\/posts\/2346\/revisions"}],"predecessor-version":[{"id":5197,"href":"https:\/\/geko.cloud\/es\/wp-json\/wp\/v2\/posts\/2346\/revisions\/5197"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/geko.cloud\/es\/wp-json\/wp\/v2\/media\/2347"}],"wp:attachment":[{"href":"https:\/\/geko.cloud\/es\/wp-json\/wp\/v2\/media?parent=2346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geko.cloud\/es\/wp-json\/wp\/v2\/categories?post=2346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geko.cloud\/es\/wp-json\/wp\/v2\/tags?post=2346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}