Skip to content

Commit

Permalink
customize configs
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Nov 23, 2024
1 parent 5f6cd7c commit d070a8a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-notebooks-TEMPLATE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ jobs:
# meke use of /etc/cni/net.d/11-crio-ipv4-bridge.conflist so we don't
# need a pod network and just use the default bridge
sudo rm -rf /etc/cni/net.d/*
sudo cp ci/cached-builds/11-crio-ipv4-bridge.conflist /etc/cni/net.d/11-crio-ipv4-bridge.conflist
sudo cp ci/cached-builds/crio.conf /etc/crio/crio.conf.d/
Expand Down
29 changes: 29 additions & 0 deletions ci/cached-builds/11-crio-ipv4-bridge.conflist
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# cat /etc/cni/net.d/11-crio-ipv4-bridge.conflist
# https://github.com/containerd/containerd/blob/main/script%2Fsetup%2Finstall-cni
# https://www.cni.dev/plugins/current/main/bridge/
{
"cniVersion": "1.0.0",
"name": "crio",
"plugins": [
{
"type": "bridge",
"bridge": "cni0",
"isGateway": true,
"ipMasq": true,
"promiscMode": true,
"ipam": {
"type": "host-local",
"routes": [
{ "dst": "0.0.0.0/0" }
],
"ranges": [
[{ "subnet": "10.85.0.0/16" }]
]
}
},
{
"type": "portmap",
"capabilities": {"portMappings": true}
}
]
}

0 comments on commit d070a8a

Please sign in to comment.