TypechoJoeTheme

院长技术

统计
登录
用户名
密码
/
注册
用户名
邮箱
搜索到 288 篇与 虚拟化 的结果
2021-04-17

K8s设置Master可调度与不可调度

K8s设置Master可调度与不可调度
查看master节点,默认是不可调度[root@k8s-master ~]# kubectl describe nodes k8s-master Name: k8s-master Roles: master Labels: beta.kubernetes.io/arch=amd64 beta.kubernetes.io/os=linux kubernetes.io/arch=amd64 kubernetes.io/hostname=k8s-master kubernetes.io/os=linux node-role.kubernetes.io/master= type=k8s-master Annotations: flannel.alpha.core...
admin
2021-04-17

虚拟化,Kubernetes

13 阅读
0 评论
2021年04月17日
13 阅读
0 评论
2021-04-17

Kubeadm初始化报错Swap解决

Kubeadm初始化报错Swap解决
Kubeadm初始化时报错Swap,详细报错内容如下:[ERROR Swap]: running with swap on is not supported. Please disable swap [preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`这是因为swap导致的,两种解决办法:一、关闭swapswapoff -a sed -ri 's/.*swap.*/#&/' /etc/fstab二、通过参数忽略swap报错在kubeadm初始化时增加--ignore-preflight-errors=Swap参数,注意Swap中S要大写 kubeadm init --ignore-preflight-errors=Swap另外还要设置/etc/sysconfig/kubelet参数sed -i 's/KUBELET_EXTRA_ARGS=/KUBELET_EXTRA_ARGS="--fail-...
admin
2021-04-17

虚拟化,Kubernetes

13 阅读
0 评论
2021年04月17日
13 阅读
0 评论
2021-04-17

K8s高可用集群,Keepalived日志报错---IPVS (cmd 1159, errno 2): No such file or directory

K8s高可用集群,Keepalived日志报错---IPVS (cmd 1159, errno 2): No such file or directory
各master报错如下:[root@master1 ~]#systemctl status keepalived ● keepalived.service - LVS and VRRP High Availability Monitor Loaded: loaded (/usr/lib/systemd/system/keepalived.service; enabled; vendor preset: disabled) Active: active (running) since Wed 2021-04-14 15:32:46 CST; 2 days ago Process: 1297 ExecStart=/usr/sbin/keepalived $KEEPALIVED_OPTIONS (code=exited, status=0/SUCCESS) Main PID: 1307 (keepalived) Tasks: 3 Memory: 5.9M CGroup: /system.slice/keepalived.service ...
admin
2021-04-17

Linux,虚拟化,Kubernetes,DevOps,Keepalived

12 阅读
0 评论
2021年04月17日
12 阅读
0 评论
2021-04-16

kubeadm init 遇到Docker告警问题-[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd".

kubeadm init 遇到Docker告警问题-[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd".
报错信息[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/解决方案vim /usr/lib/systemd/system/docker.service修改成如下内容ExecStart=/usr/bin/dockerd --exec-opt native.cgroupdriver=systemd重载配置文件并重启服务systemctl daemon-reload && systemctl restart docker
admin
2021-04-16

虚拟化,Docker,Kubernetes

10 阅读
0 评论
2021年04月16日
10 阅读
0 评论