使用kubeadm部署一套高可用k8s集群 for Ubuntu
基于 ubuntu 使用 kubeadm 搭建集群, centos部署文档, 有疑问的地方可以看 官方文档 准备机器 我的机器详情如下, 配置至少为 4C4G hostname IP 作用 public 10.0.0.3 ingress、apiserver 负载均衡,nfs 存储 master1 10.0.0.11 k8s master 节点 master2 10.0.0.12 k8s master 节点 master3 10.0.0.13 k8s master 节点 worker1 10.0.0.21 k8s worker 节点 worker2 10.0.0.22 k8s worker 节点 每台机器都做域名解析,或者绑定 hosts(可选但建议) 123456vim /etc/hosts10.0.0.3 public kube-apiserver10.0.0.11 master110.0.0.12 master210.0.0.13 master3 基础环境配置 基础环境是不管 master 还是 worker...
Windows映射网络驱动器
net use 命令常用操作12345:: 取消所有连接net use * /del /y:: 映射坚果云webdav, PERSISTENT:no表示不会记忆映射, 重启会丢失.net use Z: https://dav.jianguoyun.com/dav/ /user:iuxt@qq.com <你的应用密码> /PERSISTENT:no subst 命令12:: 映射C:\Files到D: 某些软件不支持subst D: C:\Files
alpine常用配置
包管理 apk安装包1234apk add busybox-extras busybox vim python3 git# 不缓存,打容器镜像常用apk add --no-cache busybox 查看安装的包1234567891011# 列出所有已安装的包:apk info# 查看特定包的详细信息:apk info <package_name># 查看所有已安装包的版本号:apk info -v# 按字母顺序列出已安装的包:apk info -vv 更换源1sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories 卸载包1apk del git 终端alpine 默认的是 ash shell 1vim ~/.profile alpine 服务管理工具12345# 查看所有服务rc-service --list# 添加开机自启动rc-update add...
git常用操作记录
配置文件查看 GIT 本地配置1git config --list 编辑 git 配置文件1git config --global --edit 设置 GIT 用户信息12git config --global user.name "zhanglikun"git config --global user.email "iuxt@qq.com" git 记住密码1git config --global credential.helper store 配置文件 ~/.gitconfig 内容12345[user] name = zhanglikun email = iuxt@qq.com[credential] helper = store 忽略追踪文件权限 建议 windows 代码使用 1git config core.filemode false 分支管理 命令 作用 git branch -a 查看所有分支 git branch -r 查看远程分支 git...
树莓派常用操作记录
安装 Docker替换成清华源 清华源地址https://mirrors.tuna.tsinghua.edu.cn/help/docker-ce/ 123echo "deb [arch=armhf] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian \ $(lsb_release -cs) stable" | \ sudo tee /etc/apt/sources.list.d/docker.list 12sudo apt-get updatesudo apt-get install docker-ce 替换软件源中科大源https://mirrors.ustc.edu.cn/help/raspbian.html清华源https://mirrors.tuna.tsinghua.edu.cn/help/raspbian/
VMware Workstation常用操作记录
安装官方下载链接12345678910111213141516171819202122232425262728293031323334353637383940414243444546https://download3.vmware.com/software/wkst/file/VMware-workstation-full-10.0.7-2844087.exe 上面的版本不支持64位Windows系统 https://download3.vmware.com/software/wkst/file/VMware-workstation-full-12.0.0-2985596.exehttps://download3.vmware.com/software/wkst/file/VMware-workstation-full-12.5.4-5192485.exehttps://download3.vmware.com/software/wkst/file/VMware-workstation-full-12.5.5-5234757.exe...
Windows搜索工具everything
无法弹出移动硬盘?设置👉🏻️索引👉🏻️NTFS 和 REFS取消勾选 自动包含新增固定卷 排除搜索结果设置👉🏻️索引👉🏻️排除列表👉🏻️添加筛选器 1234$RECYCLE.BIN*AppData\Roaming\Microsoft\Windows\Recent**Windows\Prefetch**AppData\Local\Packages\Microsoft.Windows.Search_* 直接修改配置文件需要将 everything 进程完全停止后才能进行修改,不然 everything 关闭的时候会覆盖手动修改的配置文件。 退出 everything 停止 everything 服务 1net stop everything 配置文件地址:%appdata%\Everything\Everything.ini...
Ubuntu_Charmed_Kubernetes
官方文档: https://ubuntu.com/kubernetes/docs 开始之前集群 ip 规划,所有机器系统都是 ubuntu 20.04 hostname ip juju-client 10.0.0.10 juju-controller-1 10.0.0.11 juju-master-1 10.0.0.21 juju-master-2 10.0.0.22 juju-master-3 10.0.0.23 juju-worker-1 10.0.0.31 juju-worker-2 10.0.0.32 juju-client 为 juju 客户端和 haproxy 机器juju-controller-1 为 juju 控制器节点 (可以做高可用) 以下操作都是在 juju-client 上执行 安装 juju1sudo snap install juju --classic 设置云类型12juju add-cloud输入manual 添加机器 (一共 5 台)12juju bootstrapjuju...
搭建网关服务器
网关服务器的常见用途:1.企业局域网想要访问外网,可以使用网关服务器上网2.可以一个网卡连接公网,一个网卡连接局域网交换机,让网关服务器做路由器使用 Windows 平台外网适配器打开共享打开 控制面板\网络和 Internet\网络连接右键外网网卡, 属性, 共享 允许其他用户通过此计算机的 Internet 连接来连接 注意: 外网打开允许其他用户连接后,内网的 IP 地址会自动改变,这时候得手动修改一下内网适配器的 IP 地址. 内网机器设置 内网机器网关配置成 网关服务器 的内网 IP 注意:内网适配器的固定 IP 不要填写网关,否则会导致路由混乱. Liunx 服务端 (用 firewalld) 多网卡机器做网关做 nat 转发, 局域网其他机器需要配置网关地址. 开启内核转发 123sudo vim /etc/sysctl.conf---net.ipv4.ip_forward = 1 立即生效 1sudo sysctl -p 开启 NAT 转发 12firewall-cmd --permanent --zone=public...
Windows系统隐藏文件
attrib 命令 这个只是隐藏, 并没有把文件加密 1attrib +S +H <文件或文件夹> 优点: 不用加密解密, 访问简单 缺点: 不安全 创建 vhd 并使用 bitlocker在磁盘管理里面创建 vhd 磁盘, 挂在好后使用 BitLocker 加密 (可选) 优点: 数据安全,没有密码无法解密 缺点: 容易损坏,造成数据全部丢失 使用第三方加密软件略 使用压缩软件加密略