Skip to content

fix(k8s): a manual sync of the app-of-apps drops the homelab host overrides and every public hostname returns 404 #1817

Closed

Description

@dan-petty

A manual sync of several Applications at once, from the Argo CD UI, took every public hostname offline for the homelab until devops k8s deploy-stack set the host overrides again.

Evidence

  • At 23:46 UTC on 2026-10-21 an admin session started a sync with prune on 17 Applications, among them bootstrap, cluster, ingress and devops. Every operation recorded syncOptions: None.
  • Before it, the live ingress Application held spec.source.kustomize.patches: one JSON patch per Ingress that replaces its example.com host with the homelab domain (history entries 0 to 2, the last deployed on 2026-10-13). These overrides are set by devops k8s deploy-stack from config.yaml and never enter git (k8s/argocd/bootstrap/cluster.yaml).
  • The sync's own deployment (history entry 3) has no kustomize key, so Argo CD rendered the committed placeholder hosts: the argocd-controller rewrote the rules of all 18 managed Ingresses within a second, and the public hostnames returned HTTP 404 from Traefik, which matches Hosts exactly (Host: <app>.example.com returned 200 through a port-forward, the real host 404).
  • cluster already ignores /spec/source/kustomize on ingress and devops with RespectIgnoreDifferences=true in its syncPolicy.syncOptions. That option applies to the automated syncs, which read the Application's own sync policy. A manual sync takes the options its operation carries, and these carried none.
  • devops k8s deploy-stack --stack infra --no-push-secrets --no-wait --no-configure-urls set the patches again, the ingress Application re-rendered the homelab hosts, and the public Argo CD endpoint answered 200.

Proposed remedy

State in k8s/README.md's GitOps section that cluster and bootstrap are not synced by hand from the UI without the "Respect Ignore Differences" option, and that after any manual sync of them the hosts are restored with the deploy-stack command above (which touches no Secret and no manifest). A live-only override that one click can drop is the design's weak point; if the README rule is not enough, move the override out of spec.source to a place a sync does not rewrite. The devops Application lost its overrides too and is held by #1562, so this restore leaves it alone.

Activity

  1. added
    type/bug
    scope/k8s
    priority/p1-high
    source/agent
    on Oct 22, 2026
  2. dan-petty commented on Oct 24, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

  3. added a commit that references this issue on Oct 24, 2026
    7c97467
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

    priority/p1-highscope/k8ssource/agenttype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions