Keepalived报错 default user does not exist 。。-左撇子

Windows Windows 2个月前 (08-15) 14次浏览 未收录 0个评论 扫描二维码

起因:

配置kubernetes集群master高可用期间发现keepalived 配置健康检查后,启动报错。

报错内容

Keepalived_vrrp: Registering gratuitous ARP shared channel
Keepalived_vrrp: Opening file '/etc/keepalived/keepalived.conf'

Keepalived_vrrp: WARNING - default user 'keepalived_script' for script execution does not exist - please create.

Keepalived_vrrp: Truncating auth_pass to 8 characters
Keepalived_vrrp: Unable to access script `curl`
Keepalived_vrrp: Disabling track script Check.keepalived since not found
Keepalived_vrrp: VRRP_Instance(VI_1) removing protocol VIPs.

解决办法:

配置文件添加运行健康检查脚本的用户或者组即可


global_defs {
   router_id k8s

#添加内容如下:
   script_user root
   enable_script_security 

}
喜欢 (0)
[]
分享 (0)
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址