Using host labels to deploy daemons on specific hosts
Use host labels to deploy daemons to specific hosts.
Before you begin
- An IBM Storage Ceph cluster is installed and bootstrapped.
- Root-level access to all nodes in the storage cluster.
About this task
There are two ways to use host labels to deploy daemons on specific hosts:
- By using a YAML service specification file.
Note: Using the YAML file is the preferred method, as it aligns with Infrastructure as Code best practice.
- By using the --placement option from the command line.
For example, ceph orch apply DAEMON --placement="label:LABEL"
Deploying daemons from the command line
Procedure
Deploying daemons with a YAML file
Procedure
What to do next
ceph orch ps --daemon_type=DAEMON_NAME
For example,
[ceph: root@host01 /]# ceph orch ps --daemon_type=prometheus NAME HOST PORTS STATUS REFRESHED AGE MEM USE MEM LIM VERSION IMAGE ID CONTAINER ID prometheus.host02 host02 *:9095 running (2h) 8m ago 2h 85.3M - 2.22.2 ac25aac5d567 ad8c7593d7c0