mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
add default flannel configuration for cni
This commit is contained in:
parent
dbab1a8477
commit
d659c16eb4
@ -68,6 +68,9 @@ ADD https://storage.googleapis.com/kubernetes-release/easy-rsa/easy-rsa.tar.gz /
|
|||||||
# Copy the cni folder into /opt/
|
# Copy the cni folder into /opt/
|
||||||
COPY cni /opt/cni
|
COPY cni /opt/cni
|
||||||
|
|
||||||
|
# Copy overlay configuration to default directory
|
||||||
|
COPY cni-conf /etc/cni/net.d
|
||||||
|
|
||||||
# Create symlinks for each hyperkube server
|
# Create symlinks for each hyperkube server
|
||||||
# TODO: this is unreliable for now (e.g. running "/kubelet" panics)
|
# TODO: this is unreliable for now (e.g. running "/kubelet" panics)
|
||||||
# Also, it doesn't work for other architectures
|
# Also, it doesn't work for other architectures
|
||||||
|
9
cluster/images/hyperkube/cni-conf/10-containernet.conf
Normal file
9
cluster/images/hyperkube/cni-conf/10-containernet.conf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"name": "containernet",
|
||||||
|
"type": "flannel",
|
||||||
|
"delegate": {
|
||||||
|
"bridge": "cni0",
|
||||||
|
"mtu": 1450,
|
||||||
|
"isDefaultGateway": true
|
||||||
|
}
|
||||||
|
}
|
3
cluster/images/hyperkube/cni-conf/99-loopback.conf
Normal file
3
cluster/images/hyperkube/cni-conf/99-loopback.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "loopback"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user