摘要: kubelet实践参数参考 --allow-privileged=true #允许容器请求特权模式 --anonymous-auth=false #不允许匿名请求到 kubelet 服务(默认 true ) --authentication-token-webhook=true #使用 TokenR 阅读全文
posted @ 2022-01-17 16:16 癌细胞V 阅读(777) 评论(0) 推荐(0)
摘要: echo -e "n\np\n1\n\n\nt\n8e\nw" > test && fdisk /dev/vdb < test && pvcreate /dev/vdb1 && vgcreate data /dev/vdb1 && lvcreate -l 100%FREE -n data data 阅读全文
posted @ 2022-01-17 16:15 癌细胞V 阅读(81) 评论(0) 推荐(0)
摘要: #!/bin/bash#容器安装#相关端口#Component Interface Port#Sidecar gRPC 10901#Sidecar HTTP 10902#Query gRPC 10903#Query HTTP 10904#Store gRPC 10905#Store HTTP 109 阅读全文
posted @ 2022-01-17 16:03 癌细胞V 阅读(231) 评论(0) 推荐(0)
摘要: foreach($line in Get-Content D:\ping\ips.txt){ $line Start-Job -ScriptBlock { ping.exe -t $args |Foreach{"{0} - {1}" -f (Get-Date),$_} >> D:\\ping\pin 阅读全文
posted @ 2022-01-14 17:10 癌细胞V 阅读(51) 评论(0) 推荐(0)
摘要: #!/bin/bash#获取本地IP(网卡不确定)# ip addr show eth0 | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}'HOSTIP=`ip addr show e 阅读全文
posted @ 2022-01-14 14:32 癌细胞V 阅读(41) 评论(0) 推荐(0)
摘要: mkdir editorcd /root/editor && CURR_DIR=$(pwd)docker run -it --rm quay.io/thanos/thanosbench:v0.2.0-rc.1 block plan -p continuous-365d-tiny --max-time 阅读全文
posted @ 2022-01-14 14:31 癌细胞V 阅读(235) 评论(0) 推荐(0)
摘要: apiVersion: kubeadm.k8s.io/v1beta2kind: ClusterConfigurationkubernetesVersion: "v1.21.3"controlPlaneEndpoint: "10.90.28.20:6443"networking: serviceSub 阅读全文
posted @ 2022-01-13 10:37 癌细胞V 阅读(204) 评论(0) 推荐(0)
摘要: cat >> /etc/profile<<EOFexport readonly PROMPT_COMMAND=/etc/operation.shEOFcat > /etc/operation.sh <<EOF{ if [ ! -d /var/log/operation ] then mkdir /v 阅读全文
posted @ 2022-01-13 10:36 癌细胞V 阅读(72) 评论(0) 推荐(0)
摘要: nohup python -m SimpleHTTPServer > /home/ftp.log & 阅读全文
posted @ 2020-11-02 14:48 癌细胞V 阅读(65) 评论(0) 推荐(0)
摘要: 如果你想在当前目录下 查找”hello,world!”字符串,可以这样: grep -rn "hello,world!" * * : 表示当前目录所有文件,也可以是某个文件名 -r 是递归查找 -n 是显示行号 -R 查找所有文件包含子目录 -i 忽略大小写 下面是一些有意思的命令行参数: grep 阅读全文
posted @ 2020-10-23 16:30 癌细胞V 阅读(67) 评论(0) 推荐(0)