How to completely disable swap

Documentation doesn’t explain how one disables swap permanently for maas, which is a requirement for some kubernetes implementations?

The following did not work in curtin_userdata:

  - swapoff -a

The following seemed not to work:

  filename: swap
  size: 0
  maxsize: 0

Is there a best practice or way to accomplish this goal?