go语言抓取文件中整个URL
摘要:源码 目录结构 package Createfile import ( "fmt" "log" "os" "os/exec" "sync" "time" ) //单例模式就是在这个函数下不论调用多少次只执行一次 var create sync.Once //检测目录目录 func createdir
阅读全文
posted @
2021-12-31 21:31
K&
阅读(317)
推荐(0) 编辑
Containerd镜像构建工具以及简单使用
摘要:获取地址:https://github.com/moby/buildkit/releases BuildKit 由buildkitd守护进程和buildctl客户端组成。虽然buildctl客户端可用于 Linux、macOS 和 Windows,但buildkitd守护程序目前仅可用于 Linux
阅读全文
posted @
2021-12-27 18:26
K&
阅读(3269)
推荐(0) 编辑
Kubernetes 1.23 + Containerd
摘要:hostnamectl set-hostname master yum install -y epel-release cat >> /etc/hosts << EOF 10.0.24.10 master 10.0.24.17 node1 EOF modprobe br_netfilter cat
阅读全文
posted @
2021-12-27 10:11
K&
阅读(366)
推荐(0) 编辑
Kubernetes API访问集群通过Token反代
摘要:生成Token head -c 16 /dev/urandom | od -An -t x | tr -d ' ' 添加用户与token kubectl config set-credentials superroot --token=上面命令结果 把token放入证书目录下,文件名一定不能错不然会
阅读全文
posted @
2021-12-21 16:03
K&
阅读(296)
推荐(0) 编辑
Kubernetes基于Containerd安装
摘要:初始化文件 最后部署 kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml [root@VM-24-10-centos ~]# cat init.yaml apiVersion: kubeadm.k8s.io/v1
阅读全文
posted @
2021-12-21 13:00
K&
阅读(216)
推荐(0) 编辑
KVM修改虚拟机密码
摘要:virsh qemu-agent-command 实例名字 '{"execute":"exe-cmd","arguments":{"cmd":"net user 用户 密码"}}'
阅读全文
posted @
2021-12-10 10:26
K&
阅读(232)
推荐(0) 编辑