lmgsanm

每天学习一点,每天进步一点点…… Tomorrow is another beatifull day

导航

2022年5月24日

id_rsa带passphrase的ansible执行方法

摘要: eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_rsa ansible -i hosts all -m ping 阅读全文

posted @ 2022-05-24 16:11 lmgsanm 阅读(46) 评论(0) 推荐(0) 编辑

2022年5月4日

kubeadm部署报错

摘要: WARNING Swap 报错信息 [WARNING Swap]: swap is enabled; production deployments should disable swap unless testing the NodeSwap feature gate of the kubelet 阅读全文

posted @ 2022-05-04 16:35 lmgsanm 阅读(4023) 评论(0) 推荐(0) 编辑

获取kubeadmin部署时所需的images镜像脚本

摘要: 背景 通过kubeadm部署kubernetes时,kubeadm默认会自动从google下载相应的版本 通过kubeadm config images list查看需要下载的image及其版本 kubeadm config images list k8s.gcr.io/kube-apiserver 阅读全文

posted @ 2022-05-04 16:00 lmgsanm 阅读(259) 评论(0) 推荐(0) 编辑

使用virtualBox复制虚拟机自动分配IP地址解决方法

摘要: 问题背景 使用ip a 命令查看主机IP信息如下 ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00 阅读全文

posted @ 2022-05-04 15:57 lmgsanm 阅读(277) 评论(0) 推荐(0) 编辑

yum源--阿里源

摘要: 阿里巴巴开源镜像站地址 https://mirrors.aliyun.com/ 相关仓库 CentOS过期源(centos-vault):https://developer.aliyun.com/mirror/centos-vault CentOS arm源(centos-altarch):http 阅读全文

posted @ 2022-05-04 11:15 lmgsanm 阅读(4470) 评论(0) 推荐(0) 编辑

2022年4月29日

Linux命令之sed

摘要: 1、替换某字符后的所有字符为特定字符,可以使用保留字符替换法,如下内容,文件为/etc/default/grub GRUB_TIMEOUT=1 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT 阅读全文

posted @ 2022-04-29 00:08 lmgsanm 阅读(55) 评论(0) 推荐(0) 编辑

2022年4月17日

kubernetes部署--基于kubeadmin部署单机版本

摘要: 部署过程 1、部署架构 2、部署前准备 系统环境准备 #关闭交换分区swapoff -aecho "swapoff -a" >> /etc/rc.local#关闭防火墙systemctl disable firewalldsystemctl stop firewalld#关闭selinuxseten 阅读全文

posted @ 2022-04-17 13:24 lmgsanm 阅读(914) 评论(0) 推荐(0) 编辑

Linux系统操作

摘要: 1、内存管理回收 内存查看:free -m [root@master kube-prometheus]# free -m total used free shared buff/cache available Mem: 1819 332 881 10 605 1333 Swap: 0 0 0 Vie 阅读全文

posted @ 2022-04-17 13:11 lmgsanm 阅读(14) 评论(0) 推荐(0) 编辑

2022年4月15日

k8s之calico部署

摘要: 1、涉及yaml文件: https://projectcalico.docs.tigera.io/manifests/tigera-operator.yaml https://projectcalico.docs.tigera.io/manifests/custom-resources.yaml 2 阅读全文

posted @ 2022-04-15 17:09 lmgsanm 阅读(1759) 评论(0) 推荐(0) 编辑

容器镜像加速器配置(Windows)

摘要: 1. 安装/升级Docker客户端 对于Windows 10以下的用户,推荐使用Docker Toolbox Windows安装文件:http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/ 对于Windows 10以上的用户 阅读全文

posted @ 2022-04-15 14:48 lmgsanm 阅读(258) 评论(0) 推荐(0) 编辑