apiVersion: v1
kind: Pod
metadata:
  name: kafdrop
spec:
  containers:
    - name: kafdrop
      image: obsidiandynamics/kafdrop:3.28.0
      imagePullPolicy: IfNotPresent
      env:
        - name: KAFKA_BROKERCONNECT
          value: kafka:9092
      ports:
        - name: http
          containerPort: 9000
          hostPort: 9000
      startupProbe:
        httpGet:
          path: /actuator/health
          port: http
        initialDelaySeconds: 5
        periodSeconds: 1
        successThreshold: 1
        failureThreshold: 55
      readinessProbe:
        httpGet:
          path: /actuator/health
          port: http
      livenessProbe:
        httpGet:
          path: /actuator/health
          port: http
      securityContext:
        runAsUser: 10001
        runAsGroup: 10001
        readOnlyRootFilesystem: true
      volumeMounts:
        - name: tmp
          mountPath: /tmp
  automountServiceAccountToken: false
  terminationGracePeriodSeconds: 0
  volumes:
    - name: tmp
      emptyDir: {}
