apiVersion: apps/v1
kind: Deployment
metadata:
  name: authaudit-logger-v1
spec:
  selector:
    matchLabels:
      app: authaudit-logger
      version: v1
  replicas: 1
  template:
    metadata:
      annotations:
        sidecar.istio.io/inject: "true"
      labels:
        app: authaudit-logger
        version: v1
    spec:
      containers:
      - name: authaudit-logger
        image: docker.io/spotify/kafka:latest
        command:
        - /opt/kafka_2.11-0.10.1.0/bin/kafka-console-consumer.sh
        - --bootstrap-server=kafka:9092
        - --topic=authaudit
