7.promtail-ingester

configuration for promtail ingester

configuration for promtail ingester

apiVersion: apps/v1
kind: Deployment
metadata:
  name: promtail-ingester
  namespace: clymene
  labels:
    app: promtail-ingester
spec:
  selector:
    matchLabels:
      app: promtail-ingester
  replicas: 1
  template:
    metadata:
      labels:
        app: promtail-ingester
    spec:
      containers:
        - name: promtail-agent
          image: bourbonkk/promtail-ingester:latest
          imagePullPolicy: Always
          ports:
            - containerPort: 15694
          args:
            - --kafka.consumer.brokers=kafka.kafka:9092
            - --loki.client.url=http://loki.loki:3100/loki/api/v1/push
            - --es.server-urls=http://elasticsearch.es:9200
            - --log-level=info
          env:
            - name: STORAGE_TYPE
              value: loki,elasticsearch
      securityContext:
        runAsUser: 1000
Last modified August 1, 2022: update k8s example (013645e)