for dirname in `ls /sys/class/scsi_device/`; do echo 1 > /sys/class/scsi_device/$dirname/device/rescan ; done
for dirname in `ls /sys/class/scsi_host/`;do echo "- - -" > /sys/class/scsi_host/$dirname/scan; done
git config --global http.proxy http://172.18.80.222:41091
git config --global https.proxy http://172.18.80.222:41091
git config --global --unset http.proxy
git config --global --unset https.proxy
git config --global credential.helper store
echo 'Acquire::http::Proxy "http://172.18.80.222:41091";' > /etc/apt/apt.conf.d/10proxy
export http_proxy="http://172.18.80.222:41091"
export https_proxy="http://172.18.80.222:41091"
add-apt-repository ppa:gluster/glusterfs-6
apt install glusterfs-client glusterfs-server -y
dmsetup ls
dmsetup remove ceph-**
openssl genrsa -out tls.key 2048
openssl req -new -x509 -key tls.key -out tls.cert -days 360 -subj /CN=www.zze.com
apt install bash-completion -y
kubectl completion bash > /usr/share/bash-completion/completions/kubectl \
&& . /usr/share/bash-completion/completions/kubectl
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "<secret-name>"}]}'
$ cat test.tpl
name: ${name}
age: ${age}
$ name=zze age=24 envsubst < test.tpl
name: zze
age: 24
# 查看所有节点上已有的污点
$ kubectl describe nodes | grep -oPz 'Taints.*?(.|\n)*?Unschedulable|Name:.*' | grep Unschedulable -v
# 查看所有节点上已有的标签
$ kubectl describe nodes | grep -oPz 'Lab.*?(.|\n)*?Annotations|Name:.*' | grep Annotations -v
git config --global credential.helper store
git credential-store store