Skip to content

Commit

Permalink
add default flannel configuration for cni
Browse files Browse the repository at this point in the history
  • Loading branch information
cheld committed Jul 8, 2016
1 parent dbab1a8 commit d659c16
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cluster/images/hyperkube/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions cluster/images/hyperkube/cni-conf/10-containernet.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "containernet",
"type": "flannel",
"delegate": {
"bridge": "cni0",
"mtu": 1450,
"isDefaultGateway": true
}
}
3 changes: 3 additions & 0 deletions cluster/images/hyperkube/cni-conf/99-loopback.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "loopback"
}

0 comments on commit d659c16

Please sign in to comment.