Skip to content

fix(k8s): delete the CoreDNS files that k3s never applies #4996

Closed

Description

@dan-petty

Problem Description

Git says that CoreDNS runs at 200m CPU and 384Mi memory. The live Deployment is the k3s packaged manifest, with a 170Mi limit and 1 replica. The files in k8s/coredns/ never apply, so a reader of git gets the wrong limit. This item is rank 6 of the cluster integration plan #4989. It is a configuration fix that ships now and needs no owner step.

Reproduction Steps

  1. kubectl -n kube-system get deployment coredns -o jsonpath='{.spec.replicas} {.spec.template.spec.containers[0].resources}'
  2. kubectl -n kube-system get helmchart
  3. Compare with k8s/coredns/helmchartconfig.yaml, deployment-patch.yaml and values.yaml.

Expected vs Actual Behavior

Expected: the CoreDNS values in git are the live values.

Actual: the only HelmChart in kube-system is gateway-api-crd, so the HelmChartConfig has no target. No command applies the patch. The live limit is 170Mi with 1 replica. The 7 d peak is 114 MiB (67 %).

Proposed Fix

Option (b), with no owner step:

  1. Delete k8s/coredns/helmchartconfig.yaml, deployment-patch.yaml and values.yaml.
  2. Remove their entry in tests/invariants/test_k8s_manifests.py (_TOKEN_EXCEPTIONS, line 450).
  3. Correct k8s/README.md (lines 460 and 1171).
  4. Let ContainerMemoryNearLimit of dan-petty/homelab#344 watch CoreDNS.

Option (a) is an optional owner decision on #4989: run CoreDNS from its Helm chart with 2 replicas and a larger limit. It is a host change (k3s --disable=coredns, or a .skip file for the packaged manifest). The recommended answer is not now.

Environment Diagnostics

Homelab k3s cluster with the packaged CoreDNS. Study: read-only kubectl get and Prometheus, 7 d to 2026-11-12.

Acceptance Criteria

  • git ls-files k8s/coredns is empty, and no test or document names the deleted files.
  • k8s/README.md states the live CoreDNS limit and its source, the k3s packaged manifest.
  • tests/invariants/test_k8s_manifests.py passes.

Dependencies

None.

Source: #4989

Activity

  1. added
    source/agent
    on Nov 12, 2026
  2. added
    type/bug
    scope/k8s
    status/new
    value/low
    effort/low
    on Nov 12, 2026
  3. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
    • Priority: P3-Low. Deleting unused files that mislead readers; no runtime impact.
    • Related: feat(k8s): coredns metrics and a coredns dashboard #822, which asks for a different change. Both touch CoreDNS configuration in the repo; dan-petty/devops-cli#822 adds metrics scraping while this candidate deletes files that k3s never applies.
  4. added
    priority/p3-low
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 12, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 12, 2026
  6. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-12 15:46 UTC

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

    effort/lowpriority/p3-lowscope/k8ssource/agenttype/bugvalue/low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions