apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: rabbitmq
  name: rabbitmq
spec:
  replicas: 1
  selector:
    matchLabels:
      app: rabbitmq
  template:
    metadata:
      labels:
         app: rabbitmq
    spec:
      containers:
      - image: pliljenberg/rabbitmq
        name: rabbitmq
        resources:
          requests:
            memory: 200Mi
          limits:
            memory: 300Mi
        ports:
        - name: management
          containerPort: 15672
        - name: rabbit
          containerPort: 5672
        env:
          - name: RABBITMQ_DEFAULT_USER
            value: user
          - name: RABBITMQ_DEFAULT_PASS
            value: password
