摘要: Centos 7 默认是没有装在ipvs模块的; 开机自动装载: vim /etc/sysconfig/modules/ipvs.modules ipvs_mods_dir="/usr/lib/modules/$(uname -r)/kernel/net/netfilter/ipvs" for mo 阅读全文
posted @ 2022-05-21 11:53 青灯浊酒 阅读(1620) 评论(0) 推荐(0) 编辑
摘要: 配置文件路径:/etc/security/limits.conf 常用参数调整: * soft nofile 65536 * hard nofile 102400 * soft nproc 65535 * hard nproc 655350 * soft memlock unlimited * ha 阅读全文
posted @ 2022-05-21 11:00 青灯浊酒 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 1、操作系统:CA、server 两台主机均为Centos 7; 以下是创建CA过程 2、查看配置文件,确保相关目录和文件已经存在; 查看配置文件 ~]# cat /etc/pki/tls/openssl.cnf ########################################### 阅读全文
posted @ 2022-05-21 08:15 青灯浊酒 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 参考1:https://zhuanlan.zhihu.com/p/405811320 参考2:https://blog.csdn.net/liuhuayang/article/details/122834141 参考3:https://blog.51cto.com/mingongge/2982443 阅读全文
posted @ 2022-05-17 08:21 青灯浊酒 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 参考:https://github.com/lu569368/Practise_reflex 阅读全文
posted @ 2022-05-16 17:34 青灯浊酒 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 资源的 Label 可以通过 kubectl lable --help 查阅相关的操作; 标签筛选 Selector : -l, --selector='': Selector (label query) to filter on, supports '=', '==', and '!='.(e.g 阅读全文
posted @ 2022-05-13 18:18 青灯浊酒 阅读(96) 评论(0) 推荐(0) 编辑
摘要: Replication Controller 和 ReplicaSet Replication Controller 和 ReplicaSet 都是用于控制pod数量符合期望,ReplicaSet是支持基于集合的标签选择器的下一代Replication Controller,它主要用作Deploym 阅读全文
posted @ 2022-05-12 11:31 青灯浊酒 阅读(72) 评论(0) 推荐(0) 编辑
摘要: Pod是Kubernetes中最小的单元,它由一组、一个或多个容器组成,它只是一个逻辑概念,每个pod中都包含一个pause容器;Pod内的容器都是平等的关系,共享Network Namespace、共享文件;pause容器的最主要的作用:创建共享的网络名称空间,以便于其它容器以平等的关系加入此网络 阅读全文
posted @ 2022-05-10 23:11 青灯浊酒 阅读(18) 评论(0) 推荐(0) 编辑
摘要: golang 中 copy 函数用于合并两个切片; func copy(dst, src []Type) int 注意copy的长度是dest 和 src 中最小的长度值; package main import ( "fmt" ) func main() { src := []int{1, 2} 阅读全文
posted @ 2022-04-30 15:52 青灯浊酒 阅读(744) 评论(0) 推荐(0) 编辑
摘要: 运行示例:i + j + k = 1000 i^2 + j^2 = k^2 GOLANG: package main import ( "fmt" "time" ) func main() { kt := time.Now().UnixNano() / 1e6 for i := 0; i < 100 阅读全文
posted @ 2022-04-02 21:02 青灯浊酒 阅读(33) 评论(0) 推荐(0) 编辑