您当前的位置: 首页 >  kubernetes

暂无认证

  • 0浏览

    0关注

    92582博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Easypack: Kubernetes 1.17.2 设定选项更新:Kubelet

发布时间:2020-02-01 21:52:56 ,浏览量:0

在这里插入图片描述 以目前最新的稳定版本1.17.2,总结一下Kubelet设定选项更新内容。

版本
[root@host131 ansible]# kubectl get node -o wide
NAME              STATUS   ROLES    AGE     VERSION   INTERNAL-IP       EXTERNAL-IP   OS-IMAGE                KERNEL-VERSION          CONTAINER-RUNTIME
192.168.163.131   Ready4m19s   v1.17.2   192.168.163.131CentOS Linux 7 (Core)   3.10.0-957.el7.x86_64   docker://19.3.5
[root@host131 ansible]#
问题与对应

如下选项已过时,删除:

  • –event-qps={{ var_kubelet_opt_event_qps }} \
  • –kube-api-qps={{ var_kubelet_opt_kpi_qps }} \
  • –kube-api-burst={{ var_kubelet_opt_api_brust }} \
  • –registry-qps={{ var_kubelet_opt_reg_qps }} \
swap设定:
  • –fail-swap-on=False \

  • 错误提示信息如下所示:

Flag --fail-swap-on has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
  • 对应方法 在config指定的配置文件中添加如下内容:
failSwapOn: False
  • 重启后确认
[root@host131 k8s]# systemctl status kubelet -l
● kubelet.service - Kubernetes Kubelet Service
   Loaded: loaded (/usr/lib/systemd/system/kubelet.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2020-01-31 15:08:38 EST; 7s ago
     Docs: https://github.com/GoogleCloudPlatform/kubernetes
 Main PID: 31508 (kubelet)
    Tasks: 8
   Memory: 11.1M
   CGroup: /system.slice/kubelet.service
           └─31508 /usr/local/bin/kubelet --logtostderr=False --v=2 --log-dir=/var/log/kubernetes --root-dir=/var/lib/kubelet --cert-dir=/etc/ssl/k8s --hostname-override=192.168.163.131 --bootstrap-kubeconfig=/etc/ssl/k8s/bootstrap.kubeconfig --kubeconfig=/etc/k8s/kubelet.kubeconfig --config=/etc/k8s/kubelet-config.yaml --pod-infra-container-image=gcr.io/google_containers/pause-amd64:3.1 --image-pull-progress-deadline=30m

Jan 31 15:08:38 host131 systemd[1]: Stopped Kubernetes Kubelet Service.
Jan 31 15:08:38 host131 systemd[1]: Started Kubernetes Kubelet Service.
[root@host131 k8s]#
地址
  • https://github.com/liumiaocn/easypack/tree/master/k8s/ansible
关注
打赏
1653961664
查看更多评论
立即登录/注册

微信扫码登录

0.3530s