In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
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
{ | |
- "name": "cssobj", | |
- "description": "Runtime CSS manager, Turn CSS into dynamic JS module, Stylesheet CRUD (Create, Read, Update, Delete) in CSSOM, Solve com | |
mon problems of CSS-in-JS, name space (local) class names, media query hook for IE8, styled components", | |
- "filename": "cssobj.min.js", | |
- "keywords": [ | |
- "cssom", | |
- "prefixer", | |
- "css generate", | |
- "diff css", |
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
sudo kubeadm reset | |
sudo swapoff -a | |
sudo kubeadm init --pod-network-cidr=10.244.0.0/16 | |
mkdir -p $HOME/.kube | |
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config | |
sudo chown $(id -u):$(id -g) $HOME/.kube/config | |
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/v0.9.1/Documentation/kube-flannel.yml | |
kubectl taint nodes --all node-role.kubernetes.io/master- |
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
{ | |
"addresses":[ | |
{ | |
"address":"10.246.1.3/24", | |
"gateway":"10.246.1.1" | |
} | |
], | |
"routes":[ | |
{ | |
"dst":"0.0.0.0/0" |
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
#!/bin/sh | |
curl -o ~/cord-bootstrap.sh https://raw.githubusercontent.com/opencord/cord/cord-5.0/scripts/cord-bootstrap.sh | |
chmod +x cord-bootstrap.sh | |
./cord-bootstrap.sh -d | |
export VAGRANT_SERVER_URL="https://vagrantcloud.com" | |
logout | |
login | |
time bash ./cord-bootstrap.sh -v -x -t "PODCONFIG=rcord-controlkube.yml config" \ | |
-t "build" | tee -a ~/setup.log |
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
http://kubernetes.kansea.com/docs/user-guide/services/#proxy-mode-userspace | |
https://jimmysong.io/kubernetes-handbook/concepts/service.html | |
https://github.com/kubernetes/kubernetes/tree/master/pkg/proxy/ipvs | |
https://jimmysong.io/posts/accessing-kubernetes-pods-from-outside-of-the-cluster/ | |
https://github.com/kubernetes/contrib/tree/master/keepalived-vip | |
https://feisky.gitbooks.io/kubernetes/zh/plugins/keepalived-vip.html | |
https://www.nctusam.com/2017/09/08/kubernetes-keepailved-vip/ | |
https://kubernetes.feisky.xyz/cha-jian-kuo-zhan/ingress/keepalived-vip |
$ export ETCDCTL_API=3
$ export CA=/etc/etcd/ssl
$ etcdctl --write-out=table --cacert=${CA}/etcd-ca.pem --cert=${CA}/etcd.pem --key=${CA}/etcd-key.pem --endpoints=100.67.151.2:2379 member list
+------------------+---------+-------+---------------------------+---------------------------+
| ID | STATUS | NAME | PEER ADDRS | CLIENT ADDRS |
+------------------+---------+-------+---------------------------+---------------------------+
| 23a97cc01374ffea | started | coco4 | https://100.67.151.4:2380 | https://100.67.151.4:2379 |
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
wget --quiet https://dl.google.com/go/go1.13.1.linux-amd64.tar.gz | |
sudo tar -zxf go1.13.1.linux-amd64.tar.gz -C /usr/local/ | |
echo 'export GOROOT=/usr/local/go' >> /home/$USER/.bashrc | |
echo 'export GOPATH=$HOME/go' >> /home/$USER/.bashrc | |
echo 'export PATH=/home/$USER/protoc/bin:$PATH:$GOROOT/bin:$GOPATH/bin' >> /home/$USER/.bashrc | |
export GOROOT=/usr/local/go | |
export GOPATH=$HOME/go | |
export PATH=/home/$USER/protoc/bin:$PATH:$GOROOT/bin:$GOPATH/bin | |
# setup golang dir | |
mkdir -p /home/$USER/go/src |
OlderNewer