

K8S学习笔记(4)-增加node节点
source link: http://vearne.cc/archives/39446
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

版权声明 本站原创文章 由 萌叔 发表
转载请注明 萌叔 | http://vearne.cc
警告:本文仅用于萌叔自己总结之用,对其它人而言可能毫无营养,没有阅读价值。
本文使用的安装工具为easzlab/kubeasz
2.1 修改docker目录
通过软连接的方式修改docker 数据存储路径
ansible new-node -i hosts -m shell -a 'mkdir /data/docker'
ansible new-node -i hosts -m shell -a 'cd /var/lib/ && ln -s /data/docker docker'
2.2 安装gluster fs依赖
如果pod需要用到gluster fs才需要执行此步骤
ansible new-node -i hosts -m shell -a 'yum install centos-release-gluster glusterfs-fuse -y'
2.3 安装ntpd确保时钟同步
# 安装ntd
ansible new-node -i hosts -m shell -a 'yum -y install ntp'
# 设置开机自启动
ansible new-node -i hosts -m shell -a 'systemctl enable ntpd'
# 启动ntpd服务
ansible new-node -i hosts -m shell -a 'systemctl start ntpd'
# 手动执行一次同步
ansible new-node -i hosts -m shell -a 'ntpdate -u 0.centos.pool.ntp.org'
2.4 添加新节点
easzctl add-node 192.168.1.11
新增kube-node节点大致流程为:tools/02.addnode.yml 见参考资料1
请我喝杯咖啡
Recommend
-
17
版权声明 本站原创文章 由 萌叔 发表 转载请注明 萌叔 | http://vearne.cc 警告:本文仅用于萌叔自己总结之用,对其它人而言可能毫无营养,没有阅读价值。 在k8s中要使用自己搭建的私有仓库,还需要一些额外...
-
10
版权声明 本站原创文章 由 萌叔 发表 转载请注明 萌叔 | http://vearne.cc 警告:本文仅用于萌叔自己总结之用,对其它人而言可能毫无营养,没有阅读价值。 删除namespace出现下面的情况 ╰─$...
-
12
版权声明 本站原创文章 由 萌叔 发表 转载请注明 萌叔 | http://vearne.cc 警告:本文仅用于萌叔自己总结之用,对其它人而言可能毫无营养,没有阅读价值。 Dashboard 是基于网页的 Kubernetes 用户界面。 你...
-
24
前文我们了解了k8s上的kube-scheduler的工作方式,以及pod调度策略的定义;回顾请参考: https://www.cnblogs.com/qiuhom-1874/p/14243312.html ;今天我们来聊一下k...
-
12
K8S调度之节点亲和性 作者: wencst 分类: docker,云计算 发布时间:...
-
8
ELK-学习笔记–如何优雅地下掉一台es节点 |坐而言不如起而行! 二丫讲梵 > 日志管理 >
-
11
给家里的k8s集群添加节点 发表于 2021-05-28...
-
7
k8s 调度指定节点 原创 1.根据节点名字调度spec...
-
7
V2EX › Kubernetes K8S 修改节点 IP 有没有比较好的方案
-
9
Jan 18, 2019 · cloudk8s节点资源不足时OutOfcpu错误k8s: 1.10.2 docker: 17.03当指定 nodeName 并且节点...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK