apiVersion: apps/v1
kind: Deployment
metadata:
  name: rabbit
  labels:
    name: rabbit
spec:
  replicas: 1
  selector:
    matchLabels:
      app: rabbit
  template:
    metadata:
      labels:
        app: rabbit
    spec:
      containers:
        - name: rabbit
          image: rabbitmq
      restartPolicy: Always