2021年2月4日

k8s组件之kube-scheduler(再看看)

摘要: 预选(Predicates):如果某节点的资源不足或者不满足预选策略的条件如“Node的label必须与Pod的Selector一致优选(Priorities):资源越富裕、负载越小的Node可能具有越高的排名 阅读全文

posted @ 2021-02-04 17:27 星星眨着眼 阅读(72) 评论(0) 推荐(0) 编辑

k8s组件之etcd(1)

摘要: etcd 是基于 raft算法的分布式键值数据库,生来就为集群化而设计的。 比较好的操作: alias etcdctl='etcdctl --endpoints=https://10.20.16.227:2379,https://10.20.16.228:2379,https://10.20.16. 阅读全文

posted @ 2021-02-04 17:26 星星眨着眼 阅读(709) 评论(0) 推荐(0) 编辑

go常用命令

摘要: 1、字符串和int之间相互转换 string转成int: int, _ := strconv.Atoi(string) string转成int64: int64, _:= strconv.ParseInt(string, 10, 64) int转成string: string := strconv. 阅读全文

posted @ 2021-02-04 14:45 星星眨着眼 阅读(120) 评论(0) 推荐(0) 编辑

导航