Skip to content

Commit

Permalink
Story #13302: Fix Consul DNS resolution in cluster mode for Almalinux
Browse files Browse the repository at this point in the history
  • Loading branch information
achoubiemohamed committed Oct 10, 2024
1 parent e776544 commit 13222fb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ExecStart=/usr/bin/docker run --rm --net=host -e 'CONSUL_ALLOW_PRIVILEGED_PORTS=

ExecStop=/usr/bin/docker stop -t 85 vitam-consul
ExecRestart=/usr/bin/docker restart -t 85 vitam-consul
ExecReload=/usr/bin/docker exec vitam-consul sh -c 'kill -HUP $(pidof consul)'
ExecReload=/usr/bin/docker exec vitam-consul sh -c 'for pid in $(ls /proc | grep -E "^[0-9]+$"); do if [ "$(cat /proc/$pid/comm 2>/dev/null)" = "consul" ]; then kill -HUP $pid; fi; done'
TimeoutStartSec=60
TimeoutStopSec=30
StartLimitBurst=6
Expand Down
5 changes: 0 additions & 5 deletions deployment/roles/docker/tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,3 @@
name: net.ipv4.ip_forward
sysctl_set: yes
value: '1'
- name: Make sure net.ipv4.ip_unprivileged_port_start is disabled
sysctl:
name: net.ipv4.ip_unprivileged_port_start
sysctl_set: yes
value: '0'
6 changes: 6 additions & 0 deletions deployment/roles/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,9 @@
when:
- install_mode == "container"
- container_repository is defined

- name: Make sure net.ipv4.ip_unprivileged_port_start is disabled
sysctl:
name: net.ipv4.ip_unprivileged_port_start
sysctl_set: yes
value: '0'

0 comments on commit 13222fb

Please sign in to comment.