[Kea-users] KEA AND NETCONF IN A DOCKER
bendono at gmail.com
Fri May 7 01:59:56 UTC 2021
I do not use netconf so I cannot comment.
But I do run Kea as a container. Here is my dockerfile for reference:
RUN apk add --no-cache tzdata && \
cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \
apk del tzdata
RUN apk add --no-cache kea-dhcp4 kea-admin mariadb-client kea-hook-mysql-cb
RUN mkdir -p /run/kea
CMD ["-c", "/etc/kea/kea-dhcp4.conf"]
You should adjust the timezone as appropriate. You can also remove
kea-admin, mariadb-client, and kea-hook-mysql-cb if you are not storing
your leases in an external database.
In your Kea config be careful of interfaces-config / interfaces. I needed
to alter mine from the default.
As for running the container, the easiest option is to run in
"network_mode: host" mode so that you receive the DHCP broadcasts.
It is more complicated if you want to give your container a dedicated
Dcoker network and only listen on 67/UDP. This will miss the DHCP
broadcasts, so you'll need an intermediate DCHP relay (such as a router) to
forward you such requests. You will also need to overwrite the DHCP server
IP that is returned so that clients can find your container host rather
than the internal Docker container when renewing.
On Wed, May 5, 2021 at 3:45 PM Onur GURSOY <onurgursoygyte at gmail.com> wrote:
> Hello Folks,
> First, I have to say: KEA is a great solution.
> I used isc-dhcp but KEA is more modern than isc-dhcp.
> So Nowadays,
> I'm working on dhcp which can be controlled over netconf.
> In this case, I've noticed that kea is on the stage.
> As far as i know, KEA supports netconf and sysrepo.
> But i couldn't see official docker support?
> I want to execute KEA on a docker container
> I want to execute SYSREPO on a different docker container
> I want to configure KEA over netconf.
> How can I do this ?
> Is there any official guideline ?
> or Is it possibly ?
> By the way, Is it possible to build KEA on a docker container?
> Again Is there any official guideline ?
> Many thanks in advance,
> Have nice and healthy day,
> With best regards.
> Onur GÜRSOY
> R&D Engineer in Embedded Systems
> Master Student at Gebze Institute Of Technology
> Department Of Electronic Engineering
> GSM : 0(545) 764 7653
> e-mail: onurgursoygyte at gmail.com
> ISC funds the development of this software with paid support
> subscriptions. Contact us at https://www.isc.org/contact/ for more
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
> Kea-users mailing list
> Kea-users at lists.isc.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Kea-users