oakazanin/public/posts/k3s-architecture/k3s_network.svg

1 line
19 KiB
XML

<svg id="generated" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="flowchart" style="max-width: 913.05859375px;" viewBox="0 0 913.05859375 754" role="graphics-document document" aria-roledescription="flowchart-v2"><style>#generated{font-family:Arial;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#generated .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#generated .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#generated .error-icon{fill:#552222;}#generated .error-text{fill:#552222;stroke:#552222;}#generated .edge-thickness-normal{stroke-width:1px;}#generated .edge-thickness-thick{stroke-width:3.5px;}#generated .edge-pattern-solid{stroke-dasharray:0;}#generated .edge-thickness-invisible{stroke-width:0;fill:none;}#generated .edge-pattern-dashed{stroke-dasharray:3;}#generated .edge-pattern-dotted{stroke-dasharray:2;}#generated .marker{fill:#333333;stroke:#333333;}#generated .marker.cross{stroke:#333333;}#generated svg{font-family:Arial;font-size:16px;}#generated p{margin:0;}#generated .label{font-family:Arial;color:#333;}#generated .cluster-label text{fill:#333;}#generated .cluster-label span{color:#333;}#generated .cluster-label span p{background-color:transparent;}#generated .label text,#generated span{fill:#333;color:#333;}#generated .node rect,#generated .node circle,#generated .node ellipse,#generated .node polygon,#generated .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#generated .rough-node .label text,#generated .node .label text,#generated .image-shape .label,#generated .icon-shape .label{text-anchor:middle;}#generated .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#generated .rough-node .label,#generated .node .label,#generated .image-shape .label,#generated .icon-shape .label{text-align:center;}#generated .node.clickable{cursor:pointer;}#generated .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#generated .arrowheadPath{fill:#333333;}#generated .edgePath .path{stroke:#333333;stroke-width:2.0px;}#generated .flowchart-link{stroke:#333333;fill:none;}#generated .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#generated .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#generated .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#generated .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#generated .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#generated .cluster text{fill:#333;}#generated .cluster span{color:#333;}#generated div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:Arial;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#generated .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#generated rect.text{fill:none;stroke-width:0;}#generated .icon-shape,#generated .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#generated .icon-shape p,#generated .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#generated .icon-shape rect,#generated .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#generated .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#generated .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#generated :root{--mermaid-font-family:Arial;}</style><g><marker id="generated_flowchart-v2-pointEnd" class="marker flowchart-v2" viewBox="0 0 10 10" refX="5" refY="5" markerUnits="userSpaceOnUse" markerWidth="8" markerHeight="8" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="generated_flowchart-v2-pointStart" class="marker flowchart-v2" viewBox="0 0 10 10" refX="4.5" refY="5" markerUnits="userSpaceOnUse" markerWidth="8" markerHeight="8" orient="auto"><path d="M 0 5 L 10 10 L 10 0 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="generated_flowchart-v2-circleEnd" class="marker flowchart-v2" viewBox="0 0 10 10" refX="11" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="generated_flowchart-v2-circleStart" class="marker flowchart-v2" viewBox="0 0 10 10" refX="-1" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="generated_flowchart-v2-crossEnd" class="marker cross flowchart-v2" viewBox="0 0 11 11" refX="12" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"/></marker><marker id="generated_flowchart-v2-crossStart" class="marker cross flowchart-v2" viewBox="0 0 11 11" refX="-1" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"/></marker><g class="root"><g class="clusters"><g class="cluster " id="overlay" data-look="classic"><rect style="" x="549.890625" y="314" width="330.5234375" height="432"/><g class="cluster-label " transform="translate(615.15234375, 314)"><foreignObject width="200" height="48"><div style="display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel "><p>Kubernetes внутренние сети</p></span></div></foreignObject></g></g><g class="cluster " id="physical" data-look="classic"><rect style="" x="8" y="8" width="897.05859375" height="256"/><g class="cluster-label " transform="translate(356.529296875, 8)"><foreignObject width="200" height="48"><div style="display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel "><p>Физическая сеть 192.168.11.0/24</p></span></div></foreignObject></g></g></g><g class="edgePaths"><path d="M374.695,86.069L329.673,94.391C284.651,102.713,194.607,119.356,149.585,131.845C104.563,144.333,104.563,152.667,104.563,156.833L104.563,161" id="L_GW_M1_0" class=" edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_GW_M1_0" data-points="W3sieCI6Mzc0LjY5NTMxMjUsInkiOjg2LjA2OTMxNDA3OTQyMjM4fSx7IngiOjEwNC41NjI1LCJ5IjoxMzZ9LHsieCI6MTA0LjU2MjUsInkiOjE2MX1d"/><path d="M374.695,100.139L358.527,106.116C342.359,112.092,310.023,124.046,293.855,134.19C277.688,144.333,277.688,152.667,277.688,156.833L277.688,161" id="L_GW_M2_0" class=" edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_GW_M2_0" data-points="W3sieCI6Mzc0LjY5NTMxMjUsInkiOjEwMC4xMzg2MjgxNTg4NDQ3N30seyJ4IjoyNzcuNjg3NSwieSI6MTM2fSx7IngiOjI3Ny42ODc1LCJ5IjoxNjF9XQ=="/><path d="M450.813,111L450.813,115.167C450.813,119.333,450.813,127.667,450.813,136C450.813,144.333,450.813,152.667,450.813,156.833L450.813,161" id="L_GW_M3_0" class=" edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_GW_M3_0" data-points="W3sieCI6NDUwLjgxMjUsInkiOjExMX0seyJ4Ijo0NTAuODEyNSwieSI6MTM2fSx7IngiOjQ1MC44MTI1LCJ5IjoxNjF9XQ=="/><path d="M526.93,99.947L543.296,105.956C559.661,111.965,592.393,123.982,608.759,134.158C625.125,144.333,625.125,152.667,625.125,156.833L625.125,161" id="L_GW_W1_0" class=" edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_GW_W1_0" data-points="W3sieCI6NTI2LjkyOTY4NzUsInkiOjk5Ljk0NjkzNDM4NTA4NDI2fSx7IngiOjYyNS4xMjUsInkiOjEzNn0seyJ4Ijo2MjUuMTI1LCJ5IjoxNjF9XQ=="/><path d="M526.93,85.926L572.546,94.272C618.161,102.617,709.393,119.309,755.009,131.821C800.625,144.333,800.625,152.667,800.625,156.833L800.625,161" id="L_GW_W2_0" class=" edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_GW_W2_0" data-points="W3sieCI6NTI2LjkyOTY4NzUsInkiOjg1LjkyNjAzMTgwMjc1MTQ4fSx7IngiOjgwMC42MjUsInkiOjEzNn0seyJ4Ijo4MDAuNjI1LCJ5IjoxNjF9XQ=="/><path d="M625.125,239L625.125,243.167C625.125,247.333,625.125,255.667,625.125,264C625.125,272.333,625.125,280.667,625.125,289C625.125,297.333,625.125,305.667,629.814,313.584C634.503,321.501,643.882,329.001,648.571,332.751L653.26,336.502" id="L_W1_POD_0" class=" edge-thickness-normal edge-pattern-dotted edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_W1_POD_0" data-points="W3sieCI6NjI1LjEyNSwieSI6MjM5fSx7IngiOjYyNS4xMjUsInkiOjI2NH0seyJ4Ijo2MjUuMTI1LCJ5IjoyODl9LHsieCI6NjI1LjEyNSwieSI6MzE0fSx7IngiOjY1Ni4zODM5OTQ2NTQ2MDUyLCJ5IjozMzl9XQ==" marker-end="url(#generated_flowchart-v2-pointEnd)"/><path d="M800.625,239L800.625,243.167C800.625,247.333,800.625,255.667,800.625,264C800.625,272.333,800.625,280.667,800.625,289C800.625,297.333,800.625,305.667,796.698,313.542C792.771,321.418,784.916,328.836,780.989,332.545L777.062,336.254" id="L_W2_POD_0" class=" edge-thickness-normal edge-pattern-dotted edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_W2_POD_0" data-points="W3sieCI6ODAwLjYyNSwieSI6MjM5fSx7IngiOjgwMC42MjUsInkiOjI2NH0seyJ4Ijo4MDAuNjI1LCJ5IjoyODl9LHsieCI6ODAwLjYyNSwieSI6MzE0fSx7IngiOjc3NC4xNTM3MzE0OTY3MTA1LCJ5IjozMzl9XQ==" marker-end="url(#generated_flowchart-v2-pointEnd)"/><path d="M720.152,441L720.152,445.167C720.152,449.333,720.152,457.667,720.152,465.333C720.152,473,720.152,480,720.152,483.5L720.152,487" id="L_POD_SVC_0" class=" edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_POD_SVC_0" data-points="W3sieCI6NzIwLjE1MjM0Mzc1LCJ5Ijo0NDF9LHsieCI6NzIwLjE1MjM0Mzc1LCJ5Ijo0NjZ9LHsieCI6NzIwLjE1MjM0Mzc1LCJ5Ijo0OTF9XQ==" marker-end="url(#generated_flowchart-v2-pointEnd)"/><path d="M720.152,593L720.152,597.167C720.152,601.333,720.152,609.667,720.152,617.333C720.152,625,720.152,632,720.152,635.5L720.152,639" id="L_SVC_DNS_0" class=" edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_SVC_DNS_0" data-points="W3sieCI6NzIwLjE1MjM0Mzc1LCJ5Ijo1OTN9LHsieCI6NzIwLjE1MjM0Mzc1LCJ5Ijo2MTh9LHsieCI6NzIwLjE1MjM0Mzc1LCJ5Ijo2NDN9XQ==" marker-end="url(#generated_flowchart-v2-pointEnd)"/></g><g class="edgeLabels"><g class="edgeLabel"><g class="label" data-id="L_GW_M1_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml" class="labelBkg"><span class="edgeLabel "></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_GW_M2_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml" class="labelBkg"><span class="edgeLabel "></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_GW_M3_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml" class="labelBkg"><span class="edgeLabel "></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_GW_W1_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml" class="labelBkg"><span class="edgeLabel "></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_GW_W2_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml" class="labelBkg"><span class="edgeLabel "></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_W1_POD_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml" class="labelBkg"><span class="edgeLabel "></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_W2_POD_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml" class="labelBkg"><span class="edgeLabel "></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_POD_SVC_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml" class="labelBkg"><span class="edgeLabel "></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_SVC_DNS_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml" class="labelBkg"><span class="edgeLabel "></span></div></foreignObject></g></g></g><g class="nodes"><g class="node default " id="flowchart-GW-0" transform="translate(450.8125, 72)"><rect class="basic label-container" style="" x="-76.1171875" y="-39" width="152.234375" height="78"/><g class="label" style="" transform="translate(-46.1171875, -24)"><rect/><foreignObject width="92.234375" height="48"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel "><p>Gateway<br />192.168.11.1</p></span></div></foreignObject></g></g><g class="node default " id="flowchart-M1-1" transform="translate(104.5625, 200)"><rect class="basic label-container" style="" x="-61.5625" y="-39" width="123.125" height="78"/><g class="label" style="" transform="translate(-31.5625, -24)"><rect/><foreignObject width="63.125" height="48"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel "><p>Master-1<br />.201</p></span></div></foreignObject></g></g><g class="node default " id="flowchart-M2-2" transform="translate(277.6875, 200)"><rect class="basic label-container" style="" x="-61.5625" y="-39" width="123.125" height="78"/><g class="label" style="" transform="translate(-31.5625, -24)"><rect/><foreignObject width="63.125" height="48"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel "><p>Master-2<br />.202</p></span></div></foreignObject></g></g><g class="node default " id="flowchart-M3-3" transform="translate(450.8125, 200)"><rect class="basic label-container" style="" x="-61.5625" y="-39" width="123.125" height="78"/><g class="label" style="" transform="translate(-31.5625, -24)"><rect/><foreignObject width="63.125" height="48"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel "><p>Master-3<br />.203</p></span></div></foreignObject></g></g><g class="node default " id="flowchart-W1-4" transform="translate(625.125, 200)"><rect class="basic label-container" style="" x="-62.75" y="-39" width="125.5" height="78"/><g class="label" style="" transform="translate(-32.75, -24)"><rect/><foreignObject width="65.5" height="48"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel "><p>Worker-1<br />.210</p></span></div></foreignObject></g></g><g class="node default " id="flowchart-W2-5" transform="translate(800.625, 200)"><rect class="basic label-container" style="" x="-62.75" y="-39" width="125.5" height="78"/><g class="label" style="" transform="translate(-32.75, -24)"><rect/><foreignObject width="65.5" height="48"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel "><p>Worker-2<br />.211</p></span></div></foreignObject></g></g><g class="node default " id="flowchart-POD-12" transform="translate(720.15234375, 390)"><rect class="basic label-container" style="" x="-90.0234375" y="-51" width="180.046875" height="102"/><g class="label" style="" transform="translate(-60.0234375, -36)"><rect/><foreignObject width="120.046875" height="72"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel "><p>Pod Network<br />10.42.0.0/16<br />(Flannel VXLAN)</p></span></div></foreignObject></g></g><g class="node default " id="flowchart-SVC-13" transform="translate(720.15234375, 542)"><rect class="basic label-container" style="" x="-88.2421875" y="-51" width="176.484375" height="102"/><g class="label" style="" transform="translate(-58.2421875, -36)"><rect/><foreignObject width="116.484375" height="72"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel "><p>Service Network<br />10.43.0.0/16<br />(ClusterIP)</p></span></div></foreignObject></g></g><g class="node default " id="flowchart-DNS-14" transform="translate(720.15234375, 682)"><rect class="basic label-container" style="" x="-67.8125" y="-39" width="135.625" height="78"/><g class="label" style="" transform="translate(-37.8125, -24)"><rect/><foreignObject width="75.625" height="48"><div style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel "><p>CoreDNS<br />10.43.0.10</p></span></div></foreignObject></g></g></g></g></g></svg>