apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
  namespace: gallifrey
  name: logstash
spec:
  selector:
    matchLabels:
      app: logstash
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: logstash
    spec:
      containers:
      - name: logstash
        # Pulls the default logstash image from Docker Hub
        image: nicokahlert/gallifrey-logstash-mysql-exporter@sha256:5688665e93214efb97e93c33d271c454613b87ab7088123e015d02a720ac3c98
        args:
        - -f
        - /usr/share/logstash/pipeline/logstash.conf
        resources:
          limits:
            cpu: 50m
            memory: 50Mi
          requests:
            cpu: 10m
            memory: 10Mi
        ports:
        - name: logstash
          containerPort: 5044
          protocol: TCP
