apiVersion: apps/v1
kind: Deployment
metadata:
  name: rabbitmq
spec:
  selector:
      matchLabels:
        app: rabbitmq
  replicas: 1
  template:
      metadata:
        labels:
            app: rabbitmq
      spec:
        containers:
        - name: rabbitmq
          image: rabbitmq:3-management
          imagePullPolicy: IfNotPresent          
          ports:
            - name: http
              containerPort: 5672
              protocol: TCP