kubernetes v1.18.2 二进制 双栈 kube-scheduler 部署
2021-03-10 21:28
标签:stat 上下 ant tps config alt operation The opera kubernetes v1.18.2 二进制 双栈 kube-scheduler 部署 标签:stat 上下 ant tps config alt operation The opera 原文地址:https://blog.51cto.com/juestnow/2493282# 生效环境变量 部署etcd 时已经配置好
source ./environment.sh
# 创建 Kubernetes Scheduler 配置文件
cat
kube-scheduler 二进制文件准备
# 进入二进制所在文件夹
cd ${HOST_PATH}/kubernetes/server/bin
scp -r kube-scheduler 192.168.2.175:/apps/k8s/bin
scp -r kube-scheduler 192.168.2.176:/apps/k8s/bin
scp -r kube-scheduler 192.168.2.177:/apps/k8s/bin
kube-scheduler 配置文件
cd ${HOST_PATH}
# 创建 kube-scheduler
cat
创建 kube-scheduler systemd文件
cat
kube-scheduler 启动准备
# 给/apps/k8s k8s 用户权限
ssh 192.168.2.175 chown -R k8s:root /apps/k8s
ssh 192.168.2.176 chown -R k8s:root /apps/k8s
ssh 192.168.2.177 chown -R k8s:root /apps/k8s
kube-scheduler
# 刷新service
ssh 192.168.2.175 systemctl daemon-reload
ssh 192.168.2.176 systemctl daemon-reload
ssh 192.168.2.177 systemctl daemon-reload
# 设置开机启动
ssh 192.168.2.175 systemctl enable kube-scheduler.service
ssh 192.168.2.176 systemctl enable kube-scheduler.service
ssh 192.168.2.177 systemctl enable kube-scheduler.service
# 启动 kube-apiserver
ssh 192.168.2.175 systemctl start kube-scheduler.service
ssh 192.168.2.176 systemctl start kube-scheduler.service
ssh 192.168.2.177 systemctl start kube-scheduler.service
# 查看启动状态
ssh 192.168.2.175 systemctl status kube-scheduler.service
ssh 192.168.2.176 systemctl status kube-scheduler.service
ssh 192.168.2.177 systemctl status kube-scheduler.service
验证 kube-scheduler 是否启动成功
root@Qist:/tmp/sss# kubectl get cs
NAME STATUS MESSAGE ERROR
controller-manager Healthy ok
scheduler Healthy ok
etcd-0 Healthy {"health":"true"}
etcd-1 Healthy {"health":"true"}
etcd-2 Healthy {"health":"true"}
# 查看 kube-scheduler master 节点
root@Qist:/tmp/ipv6# kubectl -n kube-system get endpoints kube-scheduler -o yaml
apiVersion: v1
kind: Endpoints
metadata:
annotations:
control-plane.alpha.kubernetes.io/leader: ‘{"holderIdentity":"k8s-master-3_a636a9bb-4c6c-4d5b-858a-fa1c83560246","leaseDurationSeconds":15,"acquireTime":"2020-05-07T08:27:58Z","renewTime":"2020-05-07T12:15:15Z","leaderTransitions":2}‘
creationTimestamp: "2020-05-07T08:25:19Z"
managedFields:
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:control-plane.alpha.kubernetes.io/leader: {}
manager: kube-scheduler
operation: Update
time: "2020-05-07T12:15:15Z"
name: kube-scheduler
namespace: kube-system
resourceVersion: "38797"
selfLink: /api/v1/namespaces/kube-system/endpoints/kube-scheduler
uid: 7283675e-fc8a-4483-8f09-4e27841009a8
# kube-scheduler master k8s-master-3 节点
上一篇:.NET 迁移至Linux服务器
下一篇:shell脚本报错{"errcode":40035,"errmsg":"缺少参数 json"
文章标题:kubernetes v1.18.2 二进制 双栈 kube-scheduler 部署
文章链接:http://soscw.com/index.php/essay/62934.html