table of contents
- buster 1:4.2.0-2+deb10u2
- buster-backports 1:4.7.0-1~bpo10+1
- testing 1:4.7.0-1
- unstable 1:4.7.0-1
OCF_HEARTBEAT_RKT(7) | OCF resource agents | OCF_HEARTBEAT_RKT(7) |
NAME¶
ocf_heartbeat_rkt - rkt container resource agent.SYNOPSIS¶
rkt [start | stop | monitor | meta-data | validate-all]
DESCRIPTION¶
The rkt HA resource agent creates and launches a container based off a supplied image. Containers managed by this agent are both created and removed upon the agent's start and stop actions.SUPPORTED PARAMETERS¶
image(required, string, no default)
name
(optional, string, no default)
allow_pull
(optional, boolean, no default)
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)
mount_points
(optional, string, no default)
monitor_cmd
Note: Using this method for monitoring processes inside a container is not recommended, as rkt 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)
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 rkt resource using the crm(8) shell:primitive p_rkt ocf:heartbeat:rkt \ params \ image=string \ op monitor timeout="30s" interval="30s" depth="0"
EXAMPLE PCS¶
The following is an example configuration for a rkt resource using pcs(8)pcs resource create p_rkt ocf:heartbeat:rkt \ image=string \ op monitor timeout="30s" interval="30s" depth="0"
SEE ALSO¶
http://clusterlabs.org/AUTHOR¶
ClusterLabs contributors (see the resource agent source for information about individual authors)06/27/2020 | resource-agents UNKNOWN |