当前位置: 首页 > news >正文

中心网站设计sem优化推广

中心网站设计,sem优化推广,Wordpress已有数据库表,宜选科技就是帮人做网站Filebeat收集容器日志,其中NODE_NAME配置,是将node信息添加到日志中,所以需要serviceAccount权限,如果不需要配置NODE信息,可以不创建serviceAccount,其他内容可根据实际情况修改 apiVersion: v1 kind: Ser…

Filebeat收集容器日志,其中NODE_NAME配置,是将node信息添加到日志中,所以需要serviceAccount权限,如果不需要配置NODE信息,可以不创建serviceAccount,其他内容可根据实际情况修改

apiVersion: v1
kind: ServiceAccount
metadata:
  name: filebeat
  namespace: elk
  labels:
    app: filebeat
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: filebeat-clusterrole
  labels:
    app: filebeat
rules:
- apiGroups: [""]
  resources:
  - nodes
  - namespaces
  - pods
  verbs:
  - watch
  - get
  - list
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: filebaet-clusterrolebinding
  labels:
    app: filebeat
subjects:
- kind: ServiceAccount
  name: filebeat
  namespace: elk
roleRef:
  kind: ClusterRole
  name: filebeat-clusterrole
  apiGroup: rbac.authorization.k8s.io
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: filebeat
  namespace: elk 
data:
  filebeat.yml: |-
    filebeat.inputs:
    - type: container 
      paths:
      - /var/log/containers/*.log
      processors:
        - add_kubernetes_metadata:
            in_cluster: true
            host: ${NODE_NAME}
        - add_fields:
            fields:
              node_name: ${NODE_NAME}

    output.elasticsearch:
      hosts: ["http://elasticsearch:9200"]
      indices:
        - index: "containers_log"
    setup.template.name: "containers"
    setup.template.pattern: "containers-*"
    setup.ilm.enabled: false
---
apiVersion: apps/v1
kind: DaemonSet 
metadata:
  name: filebeat 
  namespace: elk 
spec:
  selector:
    matchLabels:
      app: filebeat-log
  template:
    metadata:
      labels:
        app: filebeat-log
    spec:
      serviceAccount: filebeat
      containers:
        - args:
            - -c
            - /config/filebeat.yml 
          env:
            - name: NODE_NAME
              valueFrom:
                fieldRef:
                  fieldPath: spec.nodeName
          image: docker.elastic.co/beats/filebeat:8.5.0
          imagePullPolicy: Always
          name: container-log
          volumeMounts:
          - mountPath: /config/filebeat.yml
            name: filebeat-conf
            subPath: filebeat.yml
          - mountPath: /var/log/containers
            name: containerslog
          - mountPath: /var/log/pods 
            name: pods
      volumes:
        - name: filebeat-conf
          configMap:
            name: filebeat
        - name: containerslog
          hostPath: 
            path: /var/log/containers
        - name: pods
          hostPath:
            path: /var/log/pods

http://www.ritt.cn/news/16536.html

相关文章:

  • wordpress vue 关系百家号seo怎么做
  • 怎么做简单网站廊坊优化技巧
  • 总代理大型网站建设做百度推广员赚钱吗
  • 类似一起做网店的网站经典软文案例
  • 五华区网站百度怎么发布自己的广告
  • 安徽工程信息网人员查询seo排名哪家公司好
  • 海山网站建设开鲁网站seo
  • 商务网站建设难不难seo引擎优化外包
  • wordpress 页面和文章武汉seo主管
  • 中国建设银行密码重置网站外贸网站建设推广
  • 秀屿网站建设淘宝运营一般要学多久
  • 收录查询代码湖南优化电商服务有限公司
  • 网站诊断及优化方案电商自学网
  • 90自己做网站seo概念的理解
  • 网站设置仅某浏览器武汉seo计费管理
  • 网站做app用什么语言百度搜索推广的定义
  • 校园类网站模板宁波seo教程行业推广
  • 自己怎么做直播网站武汉seo软件
  • 辽宁建设厅投诉网站免费的网站域名查询565wcc
  • 三河建设厅公示网站十八未成年禁用免费app
  • 北京高端定制网站建设手机百度经验首页登录官网
  • 做网站微信支付多少钱安卓手机优化软件排名
  • 网站建设数据安全分析公司企业网站建设
  • 网站建设多少钱明细网络广告策划案例
  • 做网站能赚能去什么公司厦门seo专业培训学校
  • 免费观看视频的软件哪个好百度优化服务
  • 创业网站平台排名腾讯企点怎么注册
  • 东莞微信网站建设北京推广服务
  • 湖南省金力电力建设有限公司 网站网络营销以什么为中心
  • 做网站用什么格式的图片中国十大网络销售公司