Intermittent DNS issues on Gitlab runners: Could not resolve host: gitlab.com

Gitlab runners are showing intermittent DNS resolution error

Eg:

Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/prod/dashboard/.git/
Created fresh repository.
fatal: unable to access 'https://gitlab.com/prod/dashboard.git/': Could not resolve host: gitlab.com
Cleaning up file based variables
00:00
ERROR: Job failed: command terminated with exit code 1

Deployed using Helm chart:

  chart:
    repository: https://charts.gitlab.io
    name: gitlab-runner
    version: 0.26.0