Integrating Flannel with CoreOS

Flannel runs a daemon flanneld on each host, responsible for allocating a free IP within the configured subnet. flanneld sets a watch on etcd information and routes the packets using the mechanism configured.

Although the flanneld service is not part of the standard CoreOS distribution, when the flanneld service is started through cloud-config, CoreOS internally starts a service before other initializations to pull flanneld from the docker registry. flanneld is stored as a docker container in the CoreOS enterprise registry.

The same setup used for Weave networking is being used here. Note that for Flannel, hostnames are irrelevant.

The following is the cloud-config file used to create setup. The other configuration ...

Get Learning CoreOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.