elastalert部署yaml

明月清风 2020-07-27 55浏览 0条评论
首页/正文
分享到: / / / /

https://hub.docker.com/r/anjia0532/elastalert-docker 

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: elastalert
  name: elastalert
  namespace: public-service
spec:
  selector:
    matchLabels:
      app: elastalert
  template:
    metadata:
      labels:
        app: elastalert
    spec:
      containers:
      - env:
        - name: CONTAINER_TIMEZONE
          value: Asia/Shanghai
        - name: ELASTICSEARCH_HOST
          value: elasticsearch-master.elasticsearch.svc.cluster.local
        - name: ELASTICSEARCH_PASSWORD
          value: qdZ7q2kuW21Qpzd3
        - name: ELASTICSEARCH_PORT
          value: "9200"
        - name: ELASTICSEARCH_USER
          value: elastic
        - name: TZ
          value: Asia/Shanghai
        image: elastalert-docker:v0.2.4
        imagePullPolicy: IfNotPresent
        name: elastalert
        volumeMounts:
        #告警规则挂载于NFS
        - mountPath: /opt/elastalert/rules/
          name: rules
          subPath: elastalert/rules/
      volumes:
      - flexVolume:
          driver: alicloud/nas
          options:
            options: nolock,tcp,noresvport
            path: /share
            server: nfs-server
            vers: "3"
        name: rules

 

最后修改:2020-07-27 15:58:49 © 著作权归作者所有
如果觉得我的文章对你有用,请随意赞赏
扫一扫支付

上一篇
登录即可评论哦~

评论列表

还没有人评论哦~赶快抢占沙发吧~