Pod functions in podman
Contents
Pods is now the minimum deployment unit for containers in Kubernetes. Similar support is provided by Podman
. Although podman-compose
works almost identically. But this is a good concept in terms of convenience, security and later migration to k8s
.
The specific architecture is as follows.
To use the pod
function of podman
, make sure that catatonit
is installed in advance.
Common commands
Create a pod
|
|
List all pods
|
|
Add a container to a pod
Adds a container of top
to the pod
named test-pod
created earlier.
|
|
In addition, pod
also supports commands such as ps
as follows.
|
|
Summary
With the above command, you can easily start and stop the containers that need to be put together in a pod to control the network, etc. Before deploy.yaml
is not supported, we may expect podman-compose
to improve the function as soon as possible. Otherwise, the current situation can only be used in some limited container cases.
But in the latest version of 4.0+
, you can use this pod
with systemd
. This makes it possible to use more scenarios.