Last active
November 10, 2016 21:46
-
-
Save sameo/a855e336f5ba161d7ebf724f9802ea25 to your computer and use it in GitHub Desktop.
CRI-O setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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