Skip to content

Instantly share code, notes, and snippets.

@sameo
Last active November 10, 2016 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sameo/a855e336f5ba161d7ebf724f9802ea25 to your computer and use it in GitHub Desktop.
Save sameo/a855e336f5ba161d7ebf724f9802ea25 to your computer and use it in GitHub Desktop.
CRI-O setup
$ cat /etc/ocid.conf
[ocid.runtime]
runtime="/usr/local/sbin/runc"
$ cat /etc/cni/net.d/10-mynet.conf
{
"cniVersion": "0.2.0",
"name": "mynet",
"type": "bridge",
"bridge": "cni0",
"isGateway": true,
"ipMasq": true,
"ipam": {
"type": "host-local",
"subnet": "10.88.0.0/16",
"routes": [
{ "dst": "0.0.0.0/0" }
]
}
}
$ cat /etc/cni/net.d/99-loopback.conf
{
"cniVersion": "0.2.0",
"type": "loopback"
}
$ go get -d github.com/kubernetes-incubator/cri-o
$ cd $GOPATH/src/github.com/kubernetes-incubator/cri-o
$ make
$ make install.tools
$ sudo make install
$ sudo -E ocid --debug
$ sudo ocic pod create --config test/testdata/sandbox_config.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment