Skip to content

[BUG] Cluster domain assumed to be cluster.local in helmcharts etc #1767

Closed

Description

@ivucica

📋 Prerequisites

  • I have searched the existing issues to avoid creating a duplicate
  • By submitting this issue, you agree to follow our Code of Conduct
  • I am using the latest version of the software
  • I have tried to clear cache/cookies or used incognito mode (if ui-related)
  • I can consistently reproduce this issue

🎯 Affected Service(s)

Multiple services / System-wide issue

🚦 Impact/Severity

Minor inconvenience

🐛 Bug Description

I'm configuring my k3s setup with mycluster.k8s.somedomain.net as my cluster-domain.

This means servicename.somenamespace.svc.cluster.local does not resolve, but servicename.somenamespace.svc.mycluster.k8s.somedomain.net and servicename.somenamespace.svc do.

In a minimal deployment from Helm chart, I manually edited the resulting Deployments and removed cluster.local in NEXT_PUBLIC_BACKEND_URL and POSTGRES_DATABASE_URL. This complicates pushes, and would require hacks upon an automated push such as via ArgoCD.

Ideally either the helmcharts would expose the clusterdomain in values yaml, or they'd omit it and depend on search-domains being set up correctly in CoreDNS (as I did above).

I did not yet get to a functioning system, and I'll postpone it for later, so I don't know if this assumption about cluster-domain propagated anywhere else, but a quick search revealed at least one yaml file in tools dir to mention cluster.local.

🔄 Steps To Reproduce

apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
  namespace: kagent
  name: kagent-crds
spec:
  targetNamespace: kagent
  createNamespace: true
  version: "0.9.0"  # https://github.com/kagent-dev/kagent/pkgs/container/kagent%2Fhelm%2Fkagent-crds
  repo: ghcr.io/kagent-dev
  chart: kagent/helm/kagent-crds
  valuesContent: |
    # n/a

---

apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
  namespace: kagent
  name: kagent
spec:
  targetNamespace: kagent
  createNamespace: true
  version: "0.9.0"  # https://github.com/kagent-dev/kagent/pkgs/container/kagent%2Fhelm%2Fkagent
  repo: ghcr.io/kagent-dev
  chart: kagent/helm/kagent
  valuesContent: |
    providers:
      default: ollama
      # default: openAI
      openAI:
        apiKey: 12345
      # gemini, anthropic, azureOpenAI

    controller:
      env: {}
      # envFrom: [ { secretRef: { name: controller-secrets } } ]

    ipv6:
      enabled: true

Note, this is actually processed by ArgoCD appset, but applying on k3s with kubectl apply -f should have a comparable result. As noted, k3s has been initialized with a custom cluster-domain.

🤔 Expected Behavior

No response

📱 Actual Behavior

No response

💻 Environment

No response

🔧 CLI Bug Report

No response

🔍 Additional Context

No response

📋 Logs

📷 Screenshots

No response

🙋 Are you willing to contribute?

  • I am willing to submit a PR to fix this issue

Activity

  1. added theissue type on Apr 28, 2026
  2. RustyCoderX commented on Apr 28, 2026

    @RustyCoderX

    Fixed this by removing hardcoded cluster.local and adding configurable support—please check the PR.

  3. CatRass commented on May 11, 2026

    @CatRass

    This would be extremely useful if implemented and pushed to main. Currently encountering an issue where the default k8s toolserver cannot access a cluster's api endpoint, as it is external to the cluster.

    It would be great if this was configurable in the helm chart, as it would avoid needing to patch the chart with a custom template.

  4. shekhargit1912 commented on Jul 11, 2026

    @shekhargit1912
    Contributor

    I'd like to work on this - I have a fix that adds a clusterDomain value to the Helm chart. Could you assign it to me?

  5. shekhargit1912 commented on Jul 11, 2026

    @shekhargit1912
    Contributor

    /assign

  6. added a commit that references this issue on Jul 15, 2026
    87b5df3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions