spiegel_podman/pkg
Matthew Heon b0286d6b43 Implement pod-network-reload
This adds a new command, 'podman network reload', to reload the
networks of existing containers, forcing recreation of firewall
rules after e.g. `firewall-cmd --reload` wipes them out.

Under the hood, this works by calling CNI to tear down the
existing network, then recreate it using identical settings. We
request that CNI preserve the old IP and MAC address in most
cases (where the container only had 1 IP/MAC), but there will be
some downtime inherent to the teardown/bring-up approach. The
architecture of CNI doesn't really make doing this without
downtime easy (or maybe even possible...).

At present, this only works for root Podman, and only locally.
I don't think there is much of a point to adding remote support
(this is very much a local debugging command), but I think adding
rootless support (to kill/recreate slirp4netns) could be
valuable.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
2020-12-07 19:26:23 +01:00
..
annotations Add ContainerManager annotation to created containers 2019-09-10 09:37:14 +02:00
api Merge pull request #8112 from QiWang19/load-optional-name 2020-12-02 21:35:31 +01:00
auth Add X-Registry-Config support 2020-09-29 08:46:44 -07:00
autoupdate Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
bindings Merge pull request #8541 from rhatdan/man 2020-12-01 22:09:38 +01:00
cgroups pkg/cgroups/createCgroupv2Path: nits 2020-10-05 15:57:57 -07:00
channel fix closed the remote connection on pull causes service panic 2020-10-03 11:38:38 +08:00
checkpoint Lowercase some errors 2020-10-05 15:56:44 -07:00
criu Add helper function to read out CRIU version 2018-10-23 12:52:03 +02:00
ctime Re-add int64 casts for ctime 2019-07-23 15:43:40 -04:00
domain Implement pod-network-reload 2020-12-07 19:26:23 +01:00
env Ensure DefaultEnvVariables is used in Specgen 2020-08-18 15:17:46 -04:00
errorhandling remote run: fix error checks 2020-09-11 12:41:15 +02:00
hooks pkg/hooks: support all hooks 2020-09-22 14:44:09 +02:00
inspect Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
kubeutils Remove dependency on kubernetes 2018-03-27 21:55:33 +00:00
lookup Turn on More linters 2020-06-15 07:05:56 -04:00
namespaces [CI:DOCS] BZ1860126 - Fix userns defaults in run man page 2020-08-07 15:42:13 -04:00
netns Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
parallel Move pod jobs to parallel execution 2020-10-07 10:00:11 -04:00
ps Handle ps container created field as a time.Time 2020-11-20 10:50:30 -05:00
registrar Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
registries pkg/registries: add a retiring note 2020-09-30 16:30:41 +02:00
resolvconf Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
rootless Remove excessive error wrapping 2020-10-05 15:30:37 -07:00
rootlessport rootlessport: use two different channels 2020-04-29 12:35:23 +02:00
seccomp apiv2 container create using specgen 2020-02-19 15:20:15 -06:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
signal Turn on More linters 2020-06-15 07:05:56 -04:00
specgen Do not use "true" after "syslog" in exit commands 2020-12-01 15:12:50 -05:00
systemd Add shell completion with cobra 2020-11-12 11:38:31 +01:00
terminal Support hashed hostnames in the known_hosts file 2020-10-27 12:19:44 +01:00
timetype make lint: enable gocritic 2020-01-13 14:27:02 +01:00
tracing make lint: include pkg/tracing 2020-01-14 09:54:48 +01:00
trust Lowercase some errors 2020-10-05 15:56:44 -07:00
util Align the podman ps --filter behavior with docker 2020-11-18 11:36:06 +01:00