{"id":28781,"date":"2021-08-22T19:23:58","date_gmt":"2021-08-22T17:23:58","guid":{"rendered":"https:\/\/pi3g.com\/?p=28781"},"modified":"2021-08-22T19:23:58","modified_gmt":"2021-08-22T17:23:58","slug":"splitting-envoy-envoy-yaml-configuration-into-multiple-files-docker-only","status":"publish","type":"post","link":"https:\/\/pi3g.com\/de\/splitting-envoy-envoy-yaml-configuration-into-multiple-files-docker-only\/","title":{"rendered":"Aufteilung der envoy envoy.yaml Konfiguration in mehrere Dateien (nur Docker)"},"content":{"rendered":"<p>Ich bearbeite vier verschiedene H\u00e4fen\/F\u00e4lle mit Envoy: <\/p>\n<ul>\n<li>IPv6 http<\/li>\n<li>IPv4 http<\/li>\n<li>IPv6 https<\/li>\n<li>IPv4 https<\/li>\n<\/ul>\n<p>F\u00fcr IPv6 und IPv4 ist die Konfiguration dieselbe, w\u00e4hrend f\u00fcr http eine andere Konfiguration gilt als f\u00fcr https. <\/p>\n<p>Um dies zu realisieren, habe ich meine envoy-Konfiguration in mehrere Schnipsel aufgeteilt und f\u00fcge sie w\u00e4hrend der Erstellung des Containers zusammen.<\/p>\n<p>So sieht mein neues Dockerfile aus:<\/p>\n<p><\/p>\n<blockquote>\n<p>FROM envoyproxy\/envoy:latest<br \/>\nCOPY config \/tmp\/config<br \/>\nRUN cat \/tmp\/config\/envoy_head.yaml \/tmp\/config\/http_head_one.yaml \/tmp\/config\/http_body.yaml \/tmp\/config\/http_head_two.yaml \/tmp\/config\/http_body.yaml \/tmp\/config\/https_head_one.yaml \/tmp\/config\/https_body.yaml \/tmp\/config\/https_head_two.yaml \/tmp\/config\/https_body.yaml \/tmp\/config\/envoy_tail.yaml &gt; \/etc\/envoy\/envoy.yaml<\/p>\n<\/blockquote>\n<p>mein Konfigurationsordner enth\u00e4lt mehrere Dateien, die in envoy.yaml zusammengefasst sind <\/p>\n<p>Sie m\u00fcssen nicht mehr nach \"wie man Dateien in Yaml-Dateien einf\u00fcgt\" suchen. <img decoding=\"async\" class=\"wlEmoticon wlEmoticon-smile\" style=\"\" alt=\"L\u00e4cheln\" src=\"https:\/\/pi3g.com\/wp-content\/uploads\/2021\/08\/wlEmoticon-smile.png\"><\/p>\n<p><a href=\"https:\/\/pi3g.com\/wp-content\/uploads\/2021\/08\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"527\" height=\"453\" title=\"Bild\" style=\"display: inline; background-image: none;\" alt=\"Bild\" src=\"https:\/\/pi3g.com\/wp-content\/uploads\/2021\/08\/image_thumb-1.png\" border=\"0\"><\/a><\/p>\n<p>Hier ist zum Beispiel meine envoy_head.yaml:<\/p>\n<blockquote>\n<p>statische_Ressourcen:<br \/>&nbsp;&nbsp; H\u00f6rer:<\/p>\n<\/blockquote>\n<p>Wie Sie sehen k\u00f6nnen, ist es ziemlich einfach <\/p>\n<p>(NB: Sie endet mit einem Zeilenumbruch, wie alle anderen Dateien auch - wenn man sie kombiniert, ergibt dies das gew\u00fcnschte Ergebnis). <\/p>\n<p>Vergessen Sie nicht, Ihren Container zu bauen, der zum Beispiel l\u00e4uft:<\/p>\n<blockquote>\n<p>docker-compose up -build <\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Ich verwalte vier verschiedene Ports \/ F\u00e4lle mit Envoy: IPv6 http IPv4 http IPv6 https IPv4 https F\u00fcr IPv6 und IPv4 ist die Konfiguration die gleiche, w\u00e4hrend f\u00fcr http eine andere Konfiguration als f\u00fcr https gilt. Um dies zu realisieren, habe ich meine envoy-Konfiguration in mehrere Schnipsel aufgeteilt, und f\u00fcge sie w\u00e4hrend des...<\/p>","protected":false},"author":830,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[402],"tags":[468,979,470,977,978],"class_list":["post-28781","post","type-post","status-publish","format-standard","hentry","category-development","tag-docker","tag-docker-compose","tag-dockerfile","tag-envoy-envoy-config-envoy-yaml","tag-splitting-yaml-file"],"_links":{"self":[{"href":"https:\/\/pi3g.com\/de\/wp-json\/wp\/v2\/posts\/28781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pi3g.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pi3g.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pi3g.com\/de\/wp-json\/wp\/v2\/users\/830"}],"replies":[{"embeddable":true,"href":"https:\/\/pi3g.com\/de\/wp-json\/wp\/v2\/comments?post=28781"}],"version-history":[{"count":1,"href":"https:\/\/pi3g.com\/de\/wp-json\/wp\/v2\/posts\/28781\/revisions"}],"predecessor-version":[{"id":28782,"href":"https:\/\/pi3g.com\/de\/wp-json\/wp\/v2\/posts\/28781\/revisions\/28782"}],"wp:attachment":[{"href":"https:\/\/pi3g.com\/de\/wp-json\/wp\/v2\/media?parent=28781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pi3g.com\/de\/wp-json\/wp\/v2\/categories?post=28781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pi3g.com\/de\/wp-json\/wp\/v2\/tags?post=28781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}