Change Kubernetes service name with Auto DevOps

Hello eveyone.

I’m currently trying out GitLab CI with a Kubernetes cluster and so far I have no problems with Auto DevOps, but I want to deploy some projects in the same namespace to reference each other with their service name instead of their FQDN or external URL.
I looked up what service name was assigned for each project in their own namespaces, but they were the same: production-auto-deploy.

I was wondering if I could add or update any existing configuration in my .gitlab-ci.yml file to give each of my projects a custom service name so I can deploy them in the same namespace.

My current .gitlab-ci.yml:

include:
  - template: Auto-DevOps.gitlab-ci.yml
    
  production:
    environment:
      name: production
      url: https://...
      kubernetes:
        namespace: example-production
  
  staging:
    environment:
      name: staging
      url: https://...
      kubernetes:
        namespace: example-staging

I’m on GitLab CE 13.1.4.

Is there any way to achieve what I’m looking for? It’d be a lot more convinient for me to use their service names only, so I wouldn’t have to specify a URL per environment, but instead resolve the instance depending on what namespace they are.

Thanks in advance. :slight_smile: