Skip to content

Commit 37eddd4

Browse files
committed
dhcp: add health check server for NLB
1 parent f1b4b3b commit 37eddd4

File tree

8 files changed

+1048
-0
lines changed

8 files changed

+1048
-0
lines changed

.github/workflows/docker-kea.jsonnet

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,26 @@
2020
sudo docker run --rm --privileged multiarch/qemu-user-static --reset --persistent yes --credential yes
2121
|||,
2222
},
23+
24+
25+
{
26+
uses: 'actions-rs/toolchain@v1',
27+
with: {
28+
profile: 'minimal',
29+
toolchain: 'stable',
30+
target: 'aarch64-unknown-linux-gnu',
31+
},
32+
},
33+
{
34+
uses: 'actions-rs/cargo@v1',
35+
with: {
36+
'use-cross': true,
37+
command: 'build',
38+
args: '--release --locked --manifest-path docker/kea/healthz/Cargo.toml --target aarch64-unknown-linux-gnu',
39+
},
40+
},
41+
42+
2343
{
2444
uses: 'docker/setup-buildx-action@v2',
2545
with: { install: true },

.github/workflows/docker-kea.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,22 @@
1515
"name": "setup docker multiarch",
1616
"run": "mkdir -p ~/.docker\nsudo docker run --rm --privileged multiarch/qemu-user-static --reset --persistent yes --credential yes\n"
1717
},
18+
{
19+
"uses": "actions-rs/toolchain@v1",
20+
"with": {
21+
"profile": "minimal",
22+
"target": "aarch64-unknown-linux-gnu",
23+
"toolchain": "stable"
24+
}
25+
},
26+
{
27+
"uses": "actions-rs/cargo@v1",
28+
"with": {
29+
"args": "--release --locked --manifest-path docker/kea/healthz/Cargo.toml --target aarch64-unknown-linux-gnu",
30+
"command": "build",
31+
"use-cross": true
32+
}
33+
},
1834
{
1935
"uses": "docker/setup-buildx-action@v2",
2036
"with": {

kea/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2727
RUN curl -Ssf -o /tmp/stork.deb 'https://sorah-pkg.s3.dualstack.ap-northeast-1.amazonaws.com/misc/isc-stork-agent_1.5.0.220824140136_arm64.deb' \
2828
&& ( echo '1e8b67f2afe4404ea3091cbef14e93a23186633a3d571f9cb141d162350d2fe6235d7679e89bed5c2235433f203d706d /tmp/stork.deb' | sha384sum -c --strict ) \
2929
&& dpkg -i /tmp/stork.deb && rm /tmp/stork.deb
30+
COPY healthz/target/aarch64-unknown-linux-gnu/release/healthz /app/healthzd
3031

3132
COPY run.sh /app/run.sh
3233
COPY choose_dhcp_server_id.rb /app/choose_dhcp_server_id.rb
3334
COPY --from=config /app/kea-ctrl-agent.json /app/kea-ctrl-agent.json
3435

3536
RUN kea-ctrl-agent -t /app/kea-ctrl-agent.json
3637

38+
3739
CMD /app/run.sh

kea/healthz/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target/

0 commit comments

Comments
 (0)