k8s 安装filebeat挂载配置文件报错

1、安装filebeat挂载配置文件,报错如下

Exiting: error loading config file: config file ("/opt/filebeat/filebeat.yml") can only be writable by the owner but the permissions are "-rwxrwxrwx" (to fix the permissions use: 'chmod go-w /opt/filebeat/filebeat.yml')

2、报错是因为安全原因不要其他用户写的权限,去掉写的权限就可以了,我把777修改成755,转码后是493

  • configMap:
    items:
    • key: filebeat.yml
      mode: 484
      path: filebeat.yml
      name: kp-filebeat-master-hwkp-filebeat-configmap
      name: kp-filebeat-master-hwkp-filebeat-configmap

3、重新发布问题解决

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐