A very basic DHCP testing utility.
Usage:
dhcpeeper enp1s0 2The Dockerfile includes dhcrelay so you can run dhcprelay in a kubernetes cluster and then configure the liveness probe to use dhcpeeper to test that dhcrelay is working correctly. eg:
apiVersion: apps/v1
kind: Deployment
metadata:
name: dhcp-relay
namespace: pihole
spec:
selector:
matchLabels:
app: dhcp-relay
strategy:
type: Recreate
template:
metadata:
labels:
app: dhcp-relay
spec:
hostNetwork: true
containers:
- image: scottyjoe9/dhcrelay-dhcpeeper:0.0.3
command: ["dhcrelay"]
args: ["-d", "192.168.1.151"]
name: dhcp-relay
securityContext:
capabilities:
add:
- NET_ADMIN
livenessProbe:
exec:
command: ["dhcpeeper","enp1s0","2"]
initialDelaySeconds: 5
periodSeconds: 30
timeoutSeconds: 3