Skip to content

Commit ca654f9

Browse files
authored
Network backend for podman (skupperproject#256)
* networkBackend
1 parent f8cc4c8 commit ca654f9

File tree

6 files changed

+43
-25
lines changed

6 files changed

+43
-25
lines changed

README.adoc

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ If you want to preview changes for more complex contributions, follow this proce
2222
. Start the build:
2323
+
2424
----
25-
$ python scripts/convert-all.py ./scripts/convert
26-
-adoc.sh .github/workflows/asciidoc-convert-check.yml
25+
$ python scripts/convert-all.py ./scripts/convert-adoc.sh published-adoc.txt
2726
----
2827

2928
* `convert-adoc.sh` converts each adoc to HTML

cli/index.adoc

-2
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,6 @@ include::./single-logical-service.adoc[leveloffset=0]
454454
455455
include::./protocols.adoc[leveloffset=0]
456456
457-
include::../kubernetes/ingress.adoc[leveloffset=1]
458-
459457
// Type: reference
460458
[id="cli-global-options"]
461459
== CLI options

cli/networkBackend.adoc

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
include::../partials/attributes.adoc[]
2+
// Category: skupper-cli
3+
// Type: procedure
4+
[id='podman-networkbackend']
5+
= Configuring Podman networkBackend for {skupper-name}
6+
7+
By default, Podman v4 and later use Netavark which works with {skupper-name}.
8+
However, if you upgraded from an earlier version of Podman, you might need to configure Podman to use Netavark.
9+
10+
If you are using CNI, for example, if you upgrade from Podman v3, you must also install the `podman-plugins` package.
11+
For example, `dnf install podman-plugins` for RPM based distributions.
12+
13+
NOTE: CNI will be deprecated in the future in preference of Netavark.
14+
15+
.Procedure
16+
17+
. To install `netavark` on rpm based Linux, for example, RHEL8:
18+
+
19+
----
20+
$ sudo dnf install netavark
21+
----
22+
23+
. Configure podman to use `netavark` by making sure the following lines exist in the `/etc/containers/containers.conf` file:
24+
+
25+
----
26+
[network]
27+
network_backend = "netavark"
28+
----
29+
30+
. Confirm that `netavark` is configured as the podman network backend:
31+
+
32+
----
33+
$ podman info --format {{.Host.NetworkBackend}}
34+
----
35+
36+
.Additional information
37+
38+
See link:{podman-link}[Using Skupper Podman].

cli/podman.adoc

+2-21
Original file line numberDiff line numberDiff line change
@@ -68,32 +68,13 @@ See link:{cli-link} for information about using the Skupper CLI to create Podman
6868
* `netavark` is configured as the podman network backend.
6969
+
7070
--
71-
By default, Podman v4 uses Netavark which works with Skupper.
72-
73-
If you are using CNI, for example, if you upgrade from Podman v3, you must also install the `podman-plugins` package.
74-
For example, `dnf install podman-plugins` for RPM based distributions.
75-
76-
NOTE: CNI will be deprecated in the future in preference of Netavark.
77-
7871
To check if `netavark` is configured as the podman network backend:
7972

8073
----
81-
$ podman info | grep networkBackend
82-
----
83-
84-
To install `netavark` on rpm based Linux, eg RHEL8:
85-
86-
----
87-
$ sudo dnf install netavark
88-
----
89-
90-
Configure podman to use `netavark` by making sure the following lines exist in the `/etc/containers/containers.conf` file:
91-
92-
----
93-
[network]
94-
network_backend = "netavark"
74+
$ podman info --format {{.Host.NetworkBackend}}
9575
----
9676

77+
If the output is something other than `netavark`, see link:{networkbackend-link}.
9778

9879
--
9980

partials/attributes.adoc

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:console-link: ../console/index.html[Using the Skupper console]
88
:cli-link: ../cli/index.html[Using the Skupper CLI]
99
:podman-link: ../cli/podman.html[Using Skupper Podman]
10+
:networkbackend-link: ../cli/networkBackend.html[Configuring Podman networkBackend for {skupper-name}]
1011
:tokens-link: ../cli/tokens.html[Using Skupper tokens]
1112
:overview-link: ../overview/index.html[Overview]
1213
:security-link: ../overview/security.html[Security]

published-adoc.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
cli/index.adoc
22
cli/tokens.adoc
33
cli/podman.adoc
4+
cli/networkBackend.adoc
45
cli/native-security-options.adoc
56
yaml/index.adoc
67
operator/index.adoc

0 commit comments

Comments
 (0)