table of contents
| OCF_HEARTBEAT_PODMAN(7) | OCF resource agents | OCF_HEARTBEAT_PODMAN(7) |
NAME¶
ocf_heartbeat_podman-etcd - Podman etcd container resource agent.
SYNOPSIS¶
podman-etcd [start | stop | monitor | meta-data | validate-all]
DESCRIPTION¶
The podman-etcd HA resource agent creates and launches a etcd podman container based off a supplied podman image. Containers managed by this agent are both created and removed upon the agent's start and stop actions.
SUPPORTED PARAMETERS¶
pod_manifest
(optional, string, default "/etc/kubernetes/static-pod-resources/etcd-certs/configmaps/external-etcd-pod/pod.yaml")
image
(optional, string, default "default")
name
(optional, string, default "etcd")
node_ip_map
This takes the form of: n1:ip1;n2:ip2
where the etcd container on n1 would have IP ip1
(required, string, no default)
nic
(optional, string, default "br-ex")
authfile
The file is created by podman login.
(optional, string, default "/var/lib/kubelet/config.json")
allow_pull
(optional, boolean, default 1)
run_opts
NOTE: Do not explicitly specify the --name argument in the run_opts. This agent will set --name using either the resource's instance or the name provided in the 'name' argument of this agent.
(optional, string, no default)
run_cmd
(optional, string, no default)
run_cmd_opts
(optional, string, no default)
mount_points
(optional, string, no default)
monitor_cmd
Note: Using this method for monitoring processes inside a container is not recommended, as containerd tries to track processes running inside the container and does not deal well with many short-lived processes being spawned. Ensure that your container monitors its own processes and terminates on fatal error rather than invoking a command from the outside.
(optional, string, no default)
force_kill
(optional, boolean, no default)
reuse
(optional, boolean, default 0)
drop_in_dependency
(optional, boolean, no default)
oom
(optional, integer, default -997)
SUPPORTED ACTIONS¶
This resource agent supports the following actions (operations):
start
stop
monitor
meta-data
validate-all
EXAMPLE CRM SHELL¶
The following is an example configuration for a podman-etcd resource using the crm(8) shell:
primitive p_podman-etcd ocf:heartbeat:podman-etcd \
params \
node_ip_map=string \
op monitor timeout="25s" interval="30s" depth="0"
EXAMPLE PCS¶
The following is an example configuration for a podman-etcd resource using pcs(8)
pcs resource create p_podman-etcd ocf:heartbeat:podman-etcd \
node_ip_map=string \
op monitor timeout="25s" interval="30s" OCF_CHECK_LEVEL="0"
SEE ALSO¶
AUTHOR¶
ClusterLabs contributors (see the resource agent source for information about individual authors)
| 07/24/2025 | resource-agents UNKNOWN |