apiVersion: apps/v1
kind: Deployment
metadata:
  name: kubemq-producer
  annotations:
    reloader.stakater.com/auto: "true"
spec:
  replicas: 1
  selector:
    matchLabels:
      app: kubemq-producer
  template:
    metadata:
      labels:
        app: kubemq-producer
    spec:
      terminationGracePeriodSeconds: 15
      containers:
        - name: kubemq-producer
          image: bygui86/kubemq-producer:v1.0.0
          imagePullPolicy: Always
          envFrom:
            - configMapRef:
                name: kubemq-producer
          ports:
            - name: metrics
              containerPort: 9090
            # - name: probes
            #   containerPort: 9091
          resources:
            requests:
              cpu: 100m
              memory: 64Mi
            limits:
              cpu: 100m
              memory: 128Mi
          # livenessProbe:
          #   httpGet:
          #     path: /live
          #     port: probes
          #   initialDelaySeconds: 30
          #   periodSeconds: 5
          #   timeoutSeconds: 3
          #   successThreshold: 1
          #   failureThreshold: 3
          # readinessProbe:
          #   httpGet:
          #     path: /ready
          #     port: probes
          #   initialDelaySeconds: 10
          #   periodSeconds: 5
          #   timeoutSeconds: 3
          #   successThreshold: 1
          #   failureThreshold: 3
