apiVersion: apps/v1
kind: Deployment
metadata:
  name: sidekiq-deployment
  namespace: instabug
  labels:
   tier: backend


spec:
  replicas: 1

  selector:
    matchLabels:
      tier: backend
      app: sidekiq

  template:
    metadata:
      name: sidekiq-deployment
      namespace: instabug
      labels:
       tier: backend
       app: sidekiq
    spec:
      containers:
        - name: sidekiq
          image: nohierhassan/dockerizing-ruby-drkiq:v1
          command: ['bundle']
          args: ['exec', 'sidekiq']
          resources:
            requests:
              memory: "128Mi"
              cpu: "500m"
            limits:
              memory: "256Mi"
              cpu: "1000m"
          envFrom:
            - secretRef:
                name: shared-secret
            - configMapRef:
                name: shared-configmap
  

