Skip to content

Instantly share code, notes, and snippets.

@ZhaoTzuHsien
Last active September 1, 2022 09:39
Show Gist options
  • Save ZhaoTzuHsien/2fe7e4d6877e90519f646fb13a17539e to your computer and use it in GitHub Desktop.
Save ZhaoTzuHsien/2fe7e4d6877e90519f646fb13a17539e to your computer and use it in GitHub Desktop.
Metallb & Calico problem
Display the source blob
Display the rendered blob
Raw
<svg id="mermaidChart0" xmlns="http://www.w3.org/2000/svg" height="100%" viewBox="0 0 614 299" style="max-width:614px;"><style type="text/css" title="mermaid-svg-internal-css">/* */
#mermaidChart0 .node>rect { ; }
#mermaidChart0 .node text { fill:#000; stroke:none; font-weight:300; font-family:"Helvetica Neue",Helvetica,Arial,sans-serf; font-size:14px; }
#mermaidChart0 .edgeLabel text { fill:#000; stroke:none; font-weight:300; font-family:"Helvetica Neue",Helvetica,Arial,sans-serf; font-size:14px; }
#mermaidChart0 .cluster rect { rx:4px; fill: rgb(255, 255, 222); rx: 4px; stroke: rgb(170, 170, 51); stroke-width: 1px; }
*, ::before, ::after { box-sizing: border-box;}
.label { display: inline; padding: 0.2em 0.6em 0.3em; font-size: 75%; font-weight: bold; line-height: 1; color: rgb(255, 255, 255); text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: 0.25em;}
.mermaid .label { color: rgb(51, 51, 51);}
.node rect, .node circle, .node ellipse, .node polygon { fill: rgb(236, 236, 255); stroke: rgb(204, 204, 255); stroke-width: 1px;}
.edgePath .path { stroke: rgb(51, 51, 51);}
.edgeLabel { background-color: rgb(232, 232, 232);}
.cluster rect { fill: rgb(255, 255, 222) !important; rx: 4 !important; stroke: rgb(170, 170, 51) !important; stroke-width: 1px !important;}
.cluster text { fill: rgb(51, 51, 51);}
.mermaid .label { color: rgb(51, 51, 51);}
.node rect, .node circle, .node ellipse, .node polygon { fill: rgb(236, 236, 255); stroke: rgb(204, 204, 255); stroke-width: 1px;}
.edgePath .path { stroke: rgb(51, 51, 51);}
.edgeLabel { background-color: rgb(232, 232, 232);}
.cluster rect { fill: rgb(255, 255, 222) !important; rx: 4 !important; stroke: rgb(170, 170, 51) !important; stroke-width: 1px !important;}
.cluster text { fill: rgb(51, 51, 51);}
.mermaid .label { color: rgb(51, 51, 51);}
.node rect, .node circle, .node ellipse, .node polygon { fill: rgb(236, 236, 255); stroke: rgb(204, 204, 255); stroke-width: 1px;}
.edgePath .path { stroke: rgb(51, 51, 51);}
.edgeLabel { background-color: rgb(232, 232, 232);}
.cluster rect { fill: rgb(255, 255, 222) !important; rx: 4 !important; stroke: rgb(170, 170, 51) !important; stroke-width: 1px !important;}
.cluster text { fill: rgb(51, 51, 51);}
.mermaid .label { color: rgb(51, 51, 51);}
.node rect, .node circle, .node ellipse, .node polygon { fill: rgb(236, 236, 255); stroke: rgb(204, 204, 255); stroke-width: 1px;}
.edgePath .path { stroke: rgb(51, 51, 51);}
.edgeLabel { background-color: rgb(232, 232, 232);}
.cluster rect { fill: rgb(255, 255, 222) !important; rx: 4 !important; stroke: rgb(170, 170, 51) !important; stroke-width: 1px !important;}
.cluster text { fill: rgb(51, 51, 51);}
.mermaid .label { color: rgb(51, 51, 51);}
.node rect, .node circle, .node ellipse, .node polygon { fill: rgb(236, 236, 255); stroke: rgb(204, 204, 255); stroke-width: 1px;}
.edgePath .path { stroke: rgb(51, 51, 51);}
.edgeLabel { background-color: rgb(232, 232, 232);}
.cluster rect { fill: rgb(255, 255, 222) !important; rx: 4 !important; stroke: rgb(170, 170, 51) !important; stroke-width: 1px !important;}
.cluster text { fill: rgb(51, 51, 51);}
/* */
</style><g><g class="output"><g class="clusters"><g class="cluster" id="subGraph1" style="opacity: 1;" transform="translate(440.5,210.5)"><rect width="267" height="97" x="-133.5" y="-48.5"></rect><g class="label"><g transform="translate(0,0)"><foreignObject width="0" height="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></g></g><text x="0" y="-34.5" fill="black" stroke="none" id="mermaidChart0Text" style="text-anchor: middle;"> </text></g><g class="cluster" id="subGraph0" style="opacity: 1;" transform="translate(153.5,210.5)"><rect width="267" height="97" x="-133.5" y="-48.5"></rect><g class="label"><g transform="translate(0,0)"><foreignObject width="0" height="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></g></g><text x="0" y="-34.5" fill="black" stroke="none" id="mermaidChart0Text" style="text-anchor: middle;"> </text></g></g><g class="edgePaths"><g class="edgePath" style="opacity: 1;"><path class="path" d="M90.5,187L90.5,162L90.5,108L254.25,52.57091775923719" marker-end="url(#arrowhead38)" style="stroke: #333; fill:none;stroke-width:2px;stroke-dasharray:3;"></path><defs><marker id="arrowhead38" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" style="fill: #333"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M223,193.5L223,162L223,108L281.7535211267606,54" marker-end="url(#arrowhead39)" style="fill:none"></path><defs><marker id="arrowhead39" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" style="fill: #333"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M377.5,187L377.5,162L377.5,108L318.7464788732394,54" marker-end="url(#arrowhead40)" style="stroke: #333; fill:none;stroke-width:2px;stroke-dasharray:3;"></path><defs><marker id="arrowhead40" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" style="fill: #333"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M510,193.5L510,162L510,108L346.25,52.57091775923719" marker-end="url(#arrowhead41)" style="fill:none"></path><defs><marker id="arrowhead41" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" style="fill: #333"></path></marker></defs></g></g><g class="edgeLabels"><g class="edgeLabel" style="opacity: 1;" transform="translate(90.5,108)"><g transform="translate(-56,-29)" class="label"><foreignObject width="112" height="58"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel">LB routes<br>(doesn't work)</span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform="translate(223,108)"><g transform="translate(-56.5,-14.5)" class="label"><foreignObject width="113" height="29"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel">Cluster routes</span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform="translate(377.5,108)"><g transform="translate(-56,-29)" class="label"><foreignObject width="112" height="58"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel">LB routes<br>(doesn't work)</span></div></foreignObject></g></g><g class="edgeLabel" style="opacity: 1;" transform="translate(510,108)"><g transform="translate(-56.5,-14.5)" class="label"><foreignObject width="113" height="29"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel">Cluster routes</span></div></foreignObject></g></g></g><g class="nodes"><g class="node" style="opacity: 1;" id="metallbB" transform="translate(377.5,210.5)"><rect rx="5" ry="5" x="-35.5" y="-23.5" width="71" height="47"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-25.5,-13.5)"><foreignObject width="51" height="27"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml">MetalLB<br>speaker</div></foreignObject></g></g></g><g class="node" style="opacity: 1;" id="calicoB" transform="translate(510,210.5)"><rect rx="5" ry="5" x="-29" y="-17" width="58" height="34"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-19,-7)"><foreignObject width="38" height="14"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml">Calico</div></foreignObject></g></g></g><g class="node" style="opacity: 1;" id="metallbA" transform="translate(90.5,210.5)"><rect rx="5" ry="5" x="-35.5" y="-23.5" width="71" height="47"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-25.5,-13.5)"><foreignObject width="51" height="27"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml">MetalLB<br>speaker</div></foreignObject></g></g></g><g class="node" style="opacity: 1;" id="calicoA" transform="translate(223,210.5)"><rect rx="5" ry="5" x="-29" y="-17" width="58" height="34"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-19,-7)"><foreignObject width="38" height="14"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml">Calico</div></foreignObject></g></g></g><g class="node" style="opacity: 1;" id="router" transform="translate(300.25,37)"><rect rx="5" ry="5" x="-46" y="-17" width="92" height="34"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-36,-7)"><foreignObject width="72" height="14"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml">BGP Router</div></foreignObject></g></g></g></g></g></g></svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment