How far does a grounding rod need to be from a trench that has a waterline and or gas line?

Placing 2 grounding rods outside of newly built detached garage. On outside of building where the ground rod would go is about 1 foot from trenches containing gas and water lone. Is this ok?
Update: Forgot to add.. the water and gas lines are both something I (professional plumber friend) is running.
6 answers 6