How to manage services with Kubernetes CI/CD


I have started using CI/CD with a GitLab managed Kubernetes cluster. I am however having issues with my pipelines that require services (like postgres, mongo, dind). When I run such jobs, they all fail because they can’t connect to the related service. Couldn’t find any documentation on how to handle these type of services. Any help would be appreciated.