Skip to content

Instantly share code, notes, and snippets.

@danehans
Last active February 3, 2017 22:34
Show Gist options
  • Select an option

  • Save danehans/27d738133bbe11333b85b3cfc9ae0dd3 to your computer and use it in GitHub Desktop.

Select an option

Save danehans/27d738133bbe11333b85b3cfc9ae0dd3 to your computer and use it in GitHub Desktop.
k8s cni ipvlan
$ cat /etc/kubernetes/cni/net.d/10-ipvlan.conf
{
"cniVersion": "0.2.0",
"name": "ipvlan-net",
"type": "ipvlan",
"master": "mgt",
"ipam": {
"type": "host-local",
"subnet": "10.30.118.136/29",
"rangeStart": "10.30.118.141",
"rangeEnd": "10.30.118.142",
"gateway": "10.30.118.137"
}
}
$ cat /etc/kubernetes/cni/net.d/99-loopback.conf
{
"cniVersion": "0.2.0",
"type": "loopback"
}
error generating hw addr (mac) for the pod/container:
11s 2s 6 {kubelet master1.localdomain} Warning FailedSync Error syncing pod, skipping: failed to "SetupNetwork" for "web-dd46r_default" with SetupNetworkError: "Failed to setup network for pod \"web-dd46r_default(e60ed2b2-ea5f-11e6-a681-525400225b53)\" using network plugins \"cni\": failed to generate hardware addr: GenerateHardwareAddr4 only supports valid IPv4 address as input; Skipping pod"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment