Product SiteDocumentation Site

10.3.3. Bundle Container Properties

Table 10.11. XML attributes of a docker, podman, or rkt Element

AttributeDefaultDescription
image
Container image tag (required)
replicas
Value of promoted-max if that is positive, else 1
A positive integer specifying the number of container instances to launch
replicas-per-host
1
A positive integer specifying the number of container instances allowed to run on a single node
promoted-max
0
A non-negative integer that, if positive, indicates that the containerized service should be treated as a promotable service, with this many replicas allowed to run the service in the master role
network
If specified, this will be passed to the docker run, podman run, or rkt run command as the network setting for the container.
run-command
/usr/sbin/pacemaker-remoted if bundle contains a primitive, otherwise none
This command will be run inside the container when launching it ("PID 1"). If the bundle contains a primitive, this command must start pacemaker-remoted (but could, for example, be a script that does other stuff, too).
options
Extra command-line options to pass to the docker run, podman run, or rkt run command

Note

Considerations when using cluster configurations or container images from Pacemaker 1.1:
  • If the container image has a pre-2.0.0 version of Pacemaker, set run-command to /usr/sbin/pacemaker_remoted (note the underbar instead of dash).
  • masters is accepted as an alias for promoted-max, but is deprecated since 2.0.0, and support for it will be removed in a future version.