Describe the bug
I am new in dkron. I still don't know the correct steps to create a cluster where there is one node as a master/server and another node as an agent.
To Reproduce
these are the steps i have done so far:
i have two machine. Sv1 and Sv2.
what is expected is Sv1 as master/server and Sv2 as agent
local IP Sv1 : 10.15.xx.xx
local IP Sv2 : 10.15.xxx.xxx
Install dkron in Sv1
APT Repository deb [trusted=yes] https://repo.distrib.works/apt/ /
Install the package sudo apt-get install dkron
Change the config in /etc/dkron/dkron.yaml
# Dkron example configuration file
This node is running in server mode
server: true
Provides the number of expected servers in the datacenter.
Either this value should not be provided or the value must agree with other servers in the cluster.
When provided, Dkron waits until the specified number of servers are available and then bootstraps the cluster.
This allows an initial leader to be elected automatically. This flag requires server mode.
Describe the bug I am new in dkron. I still don't know the correct steps to create a cluster where there is one node as a master/server and another node as an agent.
To Reproduce these are the steps i have done so far: i have two machine. Sv1 and Sv2. what is expected is Sv1 as master/server and Sv2 as agent local IP Sv1 : 10.15.xx.xx local IP Sv2 : 10.15.xxx.xxx
deb [trusted=yes] https://repo.distrib.works/apt/ /
sudo apt-get install dkron
This node is running in server mode
server: true
Provides the number of expected servers in the datacenter.
Either this value should not be provided or the value must agree with other servers in the cluster.
When provided, Dkron waits until the specified number of servers are available and then bootstraps the cluster.
This allows an initial leader to be elected automatically. This flag requires server mode.
bootstrap-expect: 2
bind-addr: "{{ GetPrivateIP }}:8946"
log-level: debug
tags:
dc: east
encrypt: a-valid-key-generated-with-dkron-keygen
retry-join:
pre-webhook-endpoint: https://hooks.slack.com/services/XXXXXX/XXXXXXX/XXXXXXXXXXXXXXXXXXXX
pre-webhook-payload: ""{\"text\":\"{{.JobName}} started\",\"username\":\"DkronBot\"}""
pre-webhook-headers:
- Content-Type:application/json
#
webhook-endpoint: https://hooks.slack.com/services/XXXXXX/XXXXXXX/XXXXXXXXXXXXXXXXXXXX
webhook-payload: ""{\"text\":\"{{.JobName}} finished with status {{.Success}}\",\"username\":\"DkronBot\"}""
webhook-headers:
- Content-Type:application/json
#
mail-host: email-smtp.eu-west-1.amazonaws.com
mail-port: 25
mail-username": mailuser
mail-password": mailpassword
mail-from": cron@example.com
mail-subject-prefix: [Dkron]
cronitor-endpoint: https://cronitor.link/p/XXXXXXXXXXXXXXXXXXXXXXXXXXXX
deb [trusted=yes] https://repo.distrib.works/apt/ /
sudo apt-get install dkron
This node is running in server mode
server: false
Provides the number of expected servers in the datacenter.
Either this value should not be provided or the value must agree with other servers in the cluster.
When provided, Dkron waits until the specified number of servers are available and then bootstraps the cluster.
This allows an initial leader to be elected automatically. This flag requires server mode.
bootstrap-expect: 2
bind-addr: "{{ GetPrivateIP }}:8946"
log-level: debug
tags:
dc: east
encrypt: a-valid-key-generated-with-dkron-keygen
retry-join:
pre-webhook-endpoint: https://hooks.slack.com/services/XXXXXX/XXXXXXX/XXXXXXXXXXXXXXXXXXXX
pre-webhook-payload: ""{\"text\":\"{{.JobName}} started\",\"username\":\"DkronBot\"}""
pre-webhook-headers:
- Content-Type:application/json
#
webhook-endpoint: https://hooks.slack.com/services/XXXXXX/XXXXXXX/XXXXXXXXXXXXXXXXXXXX
webhook-payload: ""{\"text\":\"{{.JobName}} finished with status {{.Success}}\",\"username\":\"DkronBot\"}""
webhook-headers:
- Content-Type:application/json
#
mail-host: email-smtp.eu-west-1.amazonaws.com
mail-port: 25
mail-username": mailuser
mail-password": mailpassword
mail-from": cron@example.com
mail-subject-prefix: [Dkron]
cronitor-endpoint: https://cronitor.link/p/XXXXXXXXXXXXXXXXXXXXXXXXXXXX
Problem when i open the dashboard http://127.0.0.1:8080/ui/#/ it shown only one node (master/sever node itself)
here is the log when i check from systemctl status dkron Sv1
Sv2
please help me what is the correct way to create a dkron cluster. any help is appreciated