Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Commit 8427387

Browse files
committed
feat: Add docs on k8s config file
1 parent 6de47c7 commit 8427387

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ There are two client CLIs, `dhcpdctl` and `dhclientctl`.
9696

9797
#### `dhcpdctl`
9898

99-
You may also set the flags by setting env variables in the format `DHCPD_[FLAG]` (i.e. `DHCPD_DHCPD_CONFIGFILE=examples/dhcpd.yaml`) or by using a [configuration file](examples/dhcpd.yaml).
99+
You may also set the flags by setting env variables in the format `DHCPD_[FLAG]` (i.e. `DHCPD_DHCPD_CONFIGFILE=examples/dhcpd.yaml`) or by using a [configuration file](examples/dhcpd.yaml). If you want to get started on Kubernetes, see [this configuration file](examples/dhcpd-on-k8s.yaml)
100100

101101
```bash
102102
% dhcpdctl --help

examples/dhcpd-in-k8s.yaml renamed to examples/dhcpd-on-k8s.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ dhcpd:
88
subnets:
99
- netmask: 255.255.255.0
1010
network: 10.0.0.0
11+
nextServer: 10.0.0.1 # Optional, for PXE boot
12+
filename: undionly.kpxe # Optional, for PXE boot
1113
range:
12-
start: 10.0.0.1
13-
end: 10.0.0.254
14+
start: 10.0.0.10
15+
end: 10.0.0.100

examples/dhcpd.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ dhcpd:
33
subnets:
44
- netmask: 255.255.255.0
55
network: 192.168.1.0
6+
nextServer: 192.168.1.1 # Optional, for PXE boot
7+
filename: undionly.kpxe # Optional, for PXE boot
68
range:
79
start: 192.168.1.10
810
end: 192.168.1.100

0 commit comments

Comments
 (0)