rabbitmq-dep.yaml 946 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: rabbitmq
  6. labels:
  7. name: rabbitmq
  8. spec:
  9. replicas: 1
  10. selector:
  11. matchLabels:
  12. name: rabbitmq
  13. template:
  14. metadata:
  15. labels:
  16. name: rabbitmq
  17. annotations:
  18. prometheus.io/scrape: "false"
  19. spec:
  20. containers:
  21. - name: rabbitmq
  22. image: rabbitmq:3.6.8-management
  23. ports:
  24. - containerPort: 15672
  25. name: management
  26. - containerPort: 5672
  27. name: rabbitmq
  28. securityContext:
  29. capabilities:
  30. drop:
  31. - all
  32. add:
  33. - CHOWN
  34. - SETGID
  35. - SETUID
  36. - DAC_OVERRIDE
  37. readOnlyRootFilesystem: true
  38. - name: rabbitmq-exporter
  39. image: kbudde/rabbitmq-exporter
  40. ports:
  41. - containerPort: 9090
  42. name: exporter
  43. nodeSelector:
  44. beta.kubernetes.io/os: linux