The Scotland international moves to Turf Moor as a free agent after his deal at former club Blackpool expired.
Gilks made his debut for Blackpool in January 2009 and soon secured the number one spot.
The 32-year-old helped the team achieve promotion to the top flight in 2010 and made over 200 appearances during his time at Bloomfield Road.
He is set to compete with regular first choice Tom Heaton for a spot in Burnley's starting XI next season.
The deal represents manager Sean Dyche's second foray in the transfer market during the present window, after winger Michael Kightly signed a three-year deal on Sunday following a successful loan stint last term.
Burnley's season begins with a home match against Chelsea on August 16.
Thank you for reading 5 articles this month* Join now for unlimited access
Enjoy your first month for just £1 / $1 / €1
*Read 5 free articles per month without a subscription
Join now for unlimited access
Try first month for just £1 / $1 / €1
Get daily World Cup 2022 news, updates and other football frolics to your inbox
Thank you for signing up to Four Four Two. You will receive a verification email shortly.
There was a problem. Please refresh the page and try again.