-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08f9caf
commit a93f269
Showing
47 changed files
with
2,406 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+827 Bytes
posts/20240322-skupper-podman-ingresses/resources/edgerouter.tar.gz
Binary file not shown.
30 changes: 30 additions & 0 deletions
30
posts/20240322-skupper-podman-ingresses/resources/edgerouter/compose.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: sample | ||
services: | ||
skupper-router: | ||
image: quay.io/skupper/skupper-router:main | ||
volumes: | ||
- ./config:/etc/skupper-router/config:z | ||
environment: | ||
QDROUTERD_CONF: "/etc/skupper-router/config/skrouterd.json" | ||
QDROUTERD_CONF_TYPE: "json" | ||
extra_hosts: | ||
- host.docker.internal:host-gateway | ||
network_mode: host | ||
my-service: | ||
container_name: my-service | ||
image: quay.io/skupper/skupper-router:main | ||
volumes: | ||
- ./config-proxy:/etc/skupper-router/config:z | ||
environment: | ||
QDROUTERD_CONF: "/etc/skupper-router/config/skrouterd.json" | ||
QDROUTERD_CONF_TYPE: "json" | ||
extra_hosts: | ||
- host.docker.internal:host-gateway | ||
networks: | ||
- sample1 | ||
my-service-workload: | ||
image: nginxinc/nginx-unprivileged:stable-alpine | ||
ports: | ||
- 8888:8080 | ||
networks: | ||
sample1: |
41 changes: 41 additions & 0 deletions
41
posts/20240322-skupper-podman-ingresses/resources/edgerouter/config-proxy/skrouterd.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[ | ||
[ | ||
"router", | ||
{ | ||
"id": "my-service", | ||
"mode": "edge", | ||
"helloMaxAgeSeconds": "3" | ||
} | ||
], | ||
[ | ||
"connector", | ||
{ | ||
"host": "host.docker.internal", | ||
"port": 45671, | ||
"role": "edge" | ||
} | ||
], | ||
[ | ||
"tcpListener", | ||
{ | ||
"name": "my-service:8080", | ||
"port": 8080, | ||
"address": "my-service:8080" | ||
} | ||
], | ||
[ | ||
"address", | ||
{ | ||
"prefix": "mc", | ||
"distribution": "multicast" | ||
} | ||
], | ||
[ | ||
"log", | ||
{ | ||
"module": "ROUTER_CORE", | ||
"enable": "error+" | ||
} | ||
] | ||
] | ||
|
61 changes: 61 additions & 0 deletions
61
posts/20240322-skupper-podman-ingresses/resources/edgerouter/config/skrouterd.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
[ | ||
[ | ||
"router", | ||
{ | ||
"id": "east", | ||
"mode": "interior", | ||
"helloMaxAgeSeconds": "3" | ||
} | ||
], | ||
[ | ||
"listener", | ||
{ | ||
"name": "edges", | ||
"host": "0.0.0.0", | ||
"port": 45671, | ||
"role": "edge" | ||
} | ||
], | ||
[ | ||
"listener", | ||
{ | ||
"name": "mesh-of-edges", | ||
"host": "0.0.0.0", | ||
"port": 35671, | ||
"role": "inter-edge" | ||
} | ||
], | ||
[ | ||
"tcpListener", | ||
{ | ||
"name": "my-service:8080@0.0.0.0:8080", | ||
"host": "0.0.0.0", | ||
"port": 8080, | ||
"address": "my-service:8080" | ||
} | ||
], | ||
[ | ||
"tcpConnector", | ||
{ | ||
"name": "my-service:8080-to-localhost:8888", | ||
"host": "localhost", | ||
"port": 8888, | ||
"address": "my-service:8080" | ||
} | ||
], | ||
[ | ||
"address", | ||
{ | ||
"prefix": "mc", | ||
"distribution": "multicast" | ||
} | ||
], | ||
[ | ||
"log", | ||
{ | ||
"module": "ROUTER_CORE", | ||
"enable": "error+" | ||
} | ||
] | ||
] | ||
|
Binary file not shown.
24 changes: 24 additions & 0 deletions
24
posts/20240322-skupper-podman-ingresses/resources/haproxy/compose.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: sample | ||
services: | ||
skupper-router: | ||
image: quay.io/skupper/skupper-router:main | ||
volumes: | ||
- ./config:/etc/skupper-router/config:z | ||
environment: | ||
QDROUTERD_CONF: "/etc/skupper-router/config/skrouterd.json" | ||
QDROUTERD_CONF_TYPE: "json" | ||
network_mode: host | ||
my-service: | ||
image: quay.io/fgiorgetti/skupper-service-proxy | ||
environment: | ||
PORT_MAPPING: "8080:host.docker.internal:8080" | ||
networks: | ||
- sample1 | ||
extra_hosts: | ||
- host.docker.internal:host-gateway | ||
my-service-workload: | ||
image: nginxinc/nginx-unprivileged:stable-alpine | ||
ports: | ||
- 8888:8080 | ||
networks: | ||
sample1: |
43 changes: 43 additions & 0 deletions
43
posts/20240322-skupper-podman-ingresses/resources/haproxy/config/skrouterd.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
[ | ||
[ | ||
"router", | ||
{ | ||
"id": "east", | ||
"mode": "interior", | ||
"helloMaxAgeSeconds": "3" | ||
} | ||
], | ||
[ | ||
"tcpListener", | ||
{ | ||
"name": "my-service:8080@0.0.0.0:8080", | ||
"host": "0.0.0.0", | ||
"port": 8080, | ||
"address": "my-service:8080" | ||
} | ||
], | ||
[ | ||
"tcpConnector", | ||
{ | ||
"name": "my-service:8080-to-localhost:8888", | ||
"host": "localhost", | ||
"port": 8888, | ||
"address": "my-service:8080" | ||
} | ||
], | ||
[ | ||
"address", | ||
{ | ||
"prefix": "mc", | ||
"distribution": "multicast" | ||
} | ||
], | ||
[ | ||
"log", | ||
{ | ||
"module": "ROUTER_CORE", | ||
"enable": "error+" | ||
} | ||
] | ||
] | ||
|
Binary file not shown.
27 changes: 27 additions & 0 deletions
27
posts/20240322-skupper-podman-ingresses/resources/netfilter/compose.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: sample | ||
services: | ||
skupper-router: | ||
image: quay.io/skupper/skupper-router:main | ||
volumes: | ||
- ./config:/etc/skupper-router/config:z | ||
environment: | ||
QDROUTERD_CONF: "/etc/skupper-router/config/skrouterd.json" | ||
QDROUTERD_CONF_TYPE: "json" | ||
network_mode: host | ||
my-service: | ||
image: quay.io/fgiorgetti/skupper-firewall-proxy | ||
environment: | ||
PORT_MAPPING: "8080:host.docker.internal:8080" | ||
networks: | ||
- sample1 | ||
cap_add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
extra_hosts: | ||
- host.docker.internal:host-gateway | ||
my-service-workload: | ||
image: nginxinc/nginx-unprivileged:stable-alpine | ||
ports: | ||
- 8888:8080 | ||
networks: | ||
sample1: |
43 changes: 43 additions & 0 deletions
43
posts/20240322-skupper-podman-ingresses/resources/netfilter/config/skrouterd.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
[ | ||
[ | ||
"router", | ||
{ | ||
"id": "east", | ||
"mode": "interior", | ||
"helloMaxAgeSeconds": "3" | ||
} | ||
], | ||
[ | ||
"tcpListener", | ||
{ | ||
"name": "my-service:8080@0.0.0.0:8080", | ||
"host": "0.0.0.0", | ||
"port": 8080, | ||
"address": "my-service:8080" | ||
} | ||
], | ||
[ | ||
"tcpConnector", | ||
{ | ||
"name": "my-service:8080-to-localhost:8888", | ||
"host": "localhost", | ||
"port": 8888, | ||
"address": "my-service:8080" | ||
} | ||
], | ||
[ | ||
"address", | ||
{ | ||
"prefix": "mc", | ||
"distribution": "multicast" | ||
} | ||
], | ||
[ | ||
"log", | ||
{ | ||
"module": "ROUTER_CORE", | ||
"enable": "error+" | ||
} | ||
] | ||
] | ||
|
64 changes: 64 additions & 0 deletions
64
posts/20240322-skupper-podman-ingresses/resources/scenario.drawio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<mxfile host="app.diagrams.net" modified="2024-03-25T14:55:09.054Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" etag="8fIlOPkyyxCm-wkH5HAG" version="24.0.8" type="device"> | ||
<diagram name="Page-1" id="fqjJIMyGEyLriEQkknpv"> | ||
<mxGraphModel dx="700" dy="350" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0"> | ||
<root> | ||
<mxCell id="0" /> | ||
<mxCell id="1" parent="0" /> | ||
<mxCell id="u_xR3J-K0KoO75LIoVnP-2" value="my-service:8080" style="sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;outlineConnect=0;align=center;shape=mxgraph.office.servers.physical_host;fillColor=#2072B8;" vertex="1" parent="1"> | ||
<mxGeometry x="130" y="116.5" width="27" height="52" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="u_xR3J-K0KoO75LIoVnP-14" value="Podman host" style="points=[[0,0],[0.25,0],[0.5,0],[0.75,0],[1,0],[1,0.25],[1,0.5],[1,0.75],[1,1],[0.75,1],[0.5,1],[0.25,1],[0,1],[0,0.75],[0,0.5],[0,0.25]];outlineConnect=0;gradientColor=none;html=1;whiteSpace=wrap;fontSize=12;fontStyle=0;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;shape=mxgraph.aws4.group;grIcon=mxgraph.aws4.group_on_premise;strokeColor=#7D8998;fillColor=none;verticalAlign=top;align=left;spacingLeft=30;fontColor=#5A6C86;dashed=0;" vertex="1" parent="1"> | ||
<mxGeometry x="305" y="50" width="445" height="230" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="u_xR3J-K0KoO75LIoVnP-31" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="u_xR3J-K0KoO75LIoVnP-14"> | ||
<mxGeometry x="15" y="165" width="195" height="60" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="u_xR3J-K0KoO75LIoVnP-20" value="Port 8080" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="u_xR3J-K0KoO75LIoVnP-14"> | ||
<mxGeometry x="95" y="170" width="50" height="50" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="u_xR3J-K0KoO75LIoVnP-24" value="" style="group" vertex="1" connectable="0" parent="u_xR3J-K0KoO75LIoVnP-14"> | ||
<mxGeometry x="235" y="50" width="180" height="160" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="u_xR3J-K0KoO75LIoVnP-25" value="<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">my-service&nbsp; &nbsp; &nbsp; &nbsp;<br><br><br><br><br>&nbsp;<br><br></blockquote>" style="rounded=1;whiteSpace=wrap;html=1;align=right;" vertex="1" parent="u_xR3J-K0KoO75LIoVnP-24"> | ||
<mxGeometry width="180" height="160" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="u_xR3J-K0KoO75LIoVnP-26" value="" style="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=https://www.justinleegrant.com/assets/img/2021/podman.png;" vertex="1" parent="u_xR3J-K0KoO75LIoVnP-24"> | ||
<mxGeometry x="20" y="16" width="56.25" height="56" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="u_xR3J-K0KoO75LIoVnP-27" value="<font style="font-size: 8px;">8080</font>" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;" vertex="1" parent="u_xR3J-K0KoO75LIoVnP-24"> | ||
<mxGeometry x="108" y="50.00327731092436" width="30" height="30" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="u_xR3J-K0KoO75LIoVnP-28" value="Bridge networks:<span style="background-color: initial; white-space: pre;">	</span><span style="background-color: initial; white-space: pre;">	</span><br>- network1<br>- networkN" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="u_xR3J-K0KoO75LIoVnP-24"> | ||
<mxGeometry x="20" y="90" width="150" height="50" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="u_xR3J-K0KoO75LIoVnP-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="u_xR3J-K0KoO75LIoVnP-14" source="u_xR3J-K0KoO75LIoVnP-27" target="u_xR3J-K0KoO75LIoVnP-20"> | ||
<mxGeometry relative="1" as="geometry"> | ||
<Array as="points"> | ||
<mxPoint x="358" y="140" /> | ||
<mxPoint x="225" y="140" /> | ||
<mxPoint x="225" y="195" /> | ||
</Array> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="u_xR3J-K0KoO75LIoVnP-32" value="Host network" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="u_xR3J-K0KoO75LIoVnP-14"> | ||
<mxGeometry x="25" y="180" width="60" height="30" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="u_xR3J-K0KoO75LIoVnP-15" value="" style="group" vertex="1" connectable="0" parent="1"> | ||
<mxGeometry x="335" y="100" width="180" height="85" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="u_xR3J-K0KoO75LIoVnP-3" value="<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">skupper-router&nbsp; &nbsp;<br><br></blockquote>" style="rounded=1;whiteSpace=wrap;html=1;align=right;" vertex="1" parent="u_xR3J-K0KoO75LIoVnP-15"> | ||
<mxGeometry width="180" height="85" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="u_xR3J-K0KoO75LIoVnP-9" value="" style="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=https://www.justinleegrant.com/assets/img/2021/podman.png;" vertex="1" parent="u_xR3J-K0KoO75LIoVnP-15"> | ||
<mxGeometry x="20" y="8.5" width="56.25" height="56" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="u_xR3J-K0KoO75LIoVnP-19" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="u_xR3J-K0KoO75LIoVnP-3" target="u_xR3J-K0KoO75LIoVnP-2"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="u_xR3J-K0KoO75LIoVnP-22" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="u_xR3J-K0KoO75LIoVnP-20" target="u_xR3J-K0KoO75LIoVnP-3"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
</root> | ||
</mxGraphModel> | ||
</diagram> | ||
</mxfile> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.