Skip to content

Instantly share code, notes, and snippets.

@kelseyhightower
Created January 16, 2015 22:53
Show Gist options
  • Select an option

  • Save kelseyhightower/b8e1c1f783740e7f9dd7 to your computer and use it in GitHub Desktop.

Select an option

Save kelseyhightower/b8e1c1f783740e7f9dd7 to your computer and use it in GitHub Desktop.
{
"name": "ipv4allocator",
"range": "10.10.0.1/24",
"command": {
"add": ["/usr/bin/ipv4allocator", "-c {conf}", "-n {net-name}", "-id {cont-id}", "-netns {netns}", "-i {if-name}", "add"]
}
}
@eyakubovich
Copy link
Copy Markdown

/etc/rkt/ipalloc.d/foo.conf
{
    "name": "foo",
    "type": "range",
    "range": "10.10.0.0/24"
}

and then in network file:

/etc/rkt/net.d/default.conf
{
    "name": "default",
    "type": "veth",
    "ipAlloc": "foo"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment