Description
Describe the bug
Ping not working even if sysctl -w net.ipv4.ping_group_range="0 2147483647" is configured.
net.ipv4.ping_group_range is set in initContainer which have privileged role an run as root.
I tried to mount an alpine container in same pod where gatus is. I can successfully use ping in this alpine container which have same securitycontext as gatus container, is running a non root user, on uid and guid 65534 (nobody)
I tried to ping google.com
Used config in config.yaml
endpoints:
- name: TEST
enabled: true
url: "icmp://google.com"
interval: 60s
conditions:- "[CONNECTED] == true"
client:
timeout: 30s
- "[CONNECTED] == true"
What do you see?
Endpoint is returning not ok
What do you expect to see?
Ping success
List the steps that must be taken to reproduce this issue
Use icmp on endpoint running in Kubernetes using this endpoints config
endpoints:
- name: TEST
enabled: true
url: "icmp://google.com"
interval: 60s
conditions:- "[CONNECTED] == true"
client:
timeout: 30s
- "[CONNECTED] == true"
Use initContainer with root privlege using alpine image and execute this command:
sysctl -w net.ipv4.ping_group_range="0 2147483647"
Version
twinproduction/gatus:v5.7.0
Additional information
No response