Resource constraints problem

Hi

I’m using “Bind9 Domain Name Server” from catalog and everything it’s working fine

i have tried to download the configuration , delete the stack and create from composer files and i got this error :

bind9 (Failed to allocate instance [container:1i706]: Bad instance [container:1i706] in state [error]: Allocation failed: No healthy hosts meet the resource constraints: [53:53/tcp, 53:53/udp portReservation, instanceReservation: 1].)

but no other dns servise is running on hosts.

rebuild the stack from catalog work as usual.

Can you post the compose you used?

docker-compose.yml

version: '2’
services:
bind9:
image: digitallumberjack/docker-bind9:v1.2.0
environment:
BIND9_FORWARDERS: 217.29.160.11;217.29.160.12;
BIND9_KEY: y6XubZaQULQaxWCF6Pc2RuAAXD3OQGye/kP5ViGHNEo=
BIND9_KEYNAME: tsig-key
BIND9_ROOTDOMAIN: cloud.orchestra.it
RANCHER_ENV: 'true’
ports:
- 53:53/tcp
- 53:53/udp

rancher-compose.yml :

version: '2’
services:
bind9:
scale: 1
start_on_create: true
health_check:
healthy_threshold: 2
response_timeout: 2000
port: 53
unhealthy_threshold: 3
initializing_timeout: 20000
interval: 2000
strategy: recreate

Hi
i found the problem , was the label io.rancher.container.system defined on hosts.
but i don’t understand why using catalog the problem don’t arise.

1 Like

Indeed i delete io.rancher.container.system and its work ! thx