In a large saucepan, combine vinegar, water, salt, and sugar.
Add garlic, chili flakes, mustard seeds, peppercorns, and bay leaves.
Bring to a boil, stirring until salt and sugar dissolve.
Remove from heat and let cool slightly.
Pour the hot brine over the vegetables, leaving about ½ inch of headspace at the top.