Skip to content

Policy validation error #636

Answered by ChunyiLyu
massimogallina asked this question in Q&A
Discussion options

You must be logged in to vote

For policies, you generally do not need the x- prefix. x- are used for setting queue arguments at queue declare. Could you please try

apiVersion: rabbitmq.com/v1beta1
kind: Policy
...
spec:
  name: dih_data_rg270_modbus-policy
  pattern: "dih_data_rg270_modbus"
  applyTo: "queues"
  vhost: "/"
  priority: 0
  definition:
    max-length-bytes: 1000000000
    max-age: "14D"
...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@massimogallina
Comment options

Answer selected by massimogallina
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants