add default flannel configuration for cni

This commit is contained in:
Christoph Held 2016-07-08 11:17:40 +02:00
parent dbab1a8477
commit d659c16eb4
3 changed files with 15 additions and 0 deletions

View File

@ -68,6 +68,9 @@ ADD https://storage.googleapis.com/kubernetes-release/easy-rsa/easy-rsa.tar.gz /
# Copy the cni folder into /opt/
COPY cni /opt/cni
# Copy overlay configuration to default directory
COPY cni-conf /etc/cni/net.d
# Create symlinks for each hyperkube server
# TODO: this is unreliable for now (e.g. running "/kubelet" panics)
# Also, it doesn't work for other architectures

View File

@ -0,0 +1,9 @@
{
"name": "containernet",
"type": "flannel",
"delegate": {
"bridge": "cni0",
"mtu": 1450,
"isDefaultGateway": true
}
}

View File

@ -0,0 +1,3 @@
{
"type": "loopback"
}