-
Describe the bug On launch of the pod the following error message appears and the container doesn't start:
Cloudprober Version |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@nadenf Good question! Sending ICMP packets requires special privileges on any host.
On a typical Linux machine: See the following for more details on this: .In Kubernetes environment, you'll need to add a
Another option is to give your container NET_RAW capability, like this (you'll need to set
Doing one of these should resolve your issue. |
Beta Was this translation helpful? Give feedback.
@nadenf Good question! Sending ICMP packets requires special privileges on any host.
ping
program on Linux machines gets around this requirement either by using setuid (so that process opens socket with root privileges), or by setting the cap_net_raw capability on the process, e.g.On a typical Linux machine:
You could run cloudprober as root or give it cap_net_raw capability to avoid this error (you will need to set
use_datagram_socket: false
in your config), or you could run the following command to give your user's group ability to open ping sockets:sudo sysctl -w net.ipv4.ping_group_range="0 <large valid group id>"
See the following for more…