Skip to content

[Bug] Some components are incorrectly deployed to the 'default' namespace despite specifying '--namespace sre-signoz' #819

@ylighgh

Description

@ylighgh

Issue Title

[Bug] Components incorrectly deployed to 'default' namespace despite specifying '--namespace sre-signoz'

SigNoz Version

Description

When upgrading/installing SigNoz using the Helm chart with the --namespace sre-signoz flag, the deployment exhibits inconsistent namespace behavior. While infrastructure-related components (ClickHouse operator, Zookeeper) are correctly placed in sre-signoz, the core application components (OTEL Collector, Query Service, Frontend, and Schema Migrators) are incorrectly deployed to the default namespace.

Steps to Reproduce

values.yaml

global:
  storageClass: alicloud-nas-subpath

clickhouse:
  installCustomStorageClass: true
  1. Execute the installation command:
    helm upgrade --install signoz signoz/signoz --namespace sre-signoz --create-namespace --version 0.110.0 -f values.yaml

  2. Verify resource distribution using:
    kubectl get all -n default
    kubectl get all -n sre-signoz

Actual Behavior (Deployment Logs)

The logs indicate that several resources were created in the default namespace instead of the requested sre-signoz:

Resources in default:

  • ServiceAccounts: signoz-otel-collector, signoz-schema-migrator-async, signoz
  • ConfigMaps: signoz-otel-collector
  • Services: signoz-otel-collector, signoz
  • Deployments: signoz-otel-collector
  • StatefulSets: signoz
  • Jobs: signoz-schema-migrator-async-init, signoz-schema-migrator-sync-init

Resources in sre-signoz:

  • signoz-clickhouse-operator (Deployment/Service/SA)
  • signoz-zookeeper (StatefulSet/Service)
  • Various ConfigMaps for ClickHouse and Zookeeper

Expected Behavior

Every resource defined in the Helm chart should strictly adhere to the namespace provided via the --namespace flag and be deployed exclusively to sre-signoz.

[2026-01-30 12:21:21][INFO] preparing upgrade for signoz
[2026-01-30 12:21:21][INFO] creating 1 resource(s)
[2026-01-30 12:21:21][INFO] CRD clickhouseinstallations.clickhouse.altinity.com is already present. Skipping.
[2026-01-30 12:21:21][INFO] creating 1 resource(s)
[2026-01-30 12:21:21][INFO] CRD clickhouseinstallationtemplates.clickhouse.altinity.com is already present. Skipping.
[2026-01-30 12:21:21][INFO] creating 1 resource(s)
[2026-01-30 12:21:21][INFO] CRD clickhouseoperatorconfigurations.clickhouse.altinity.com is already present. Skipping.
[2026-01-30 12:21:23][INFO] creating 1 resource(s)
[2026-01-30 12:21:23][INFO] checking 34 resources for changes
[2026-01-30 12:21:23][INFO] Created a new ServiceAccount called "signoz-clickhouse" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new ServiceAccount called "signoz-clickhouse-operator" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new ServiceAccount called "signoz-otel-collector" in default

[2026-01-30 12:21:23][INFO] Created a new ServiceAccount called "signoz-schema-migrator-async" in default

[2026-01-30 12:21:23][INFO] Created a new ServiceAccount called "signoz" in default

[2026-01-30 12:21:23][INFO] Created a new Secret called "signoz-clickhouse-operator" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new ConfigMap called "signoz-zookeeper-scripts" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new ConfigMap called "signoz-clickhouse-custom-functions" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new ConfigMap called "signoz-clickhouse-scripts" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new ConfigMap called "signoz-clickhouse-operator-etc-confd-files" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new ConfigMap called "signoz-clickhouse-operator-etc-configd-files" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new ConfigMap called "signoz-clickhouse-operator-etc-files" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new ConfigMap called "signoz-clickhouse-operator-etc-templatesd-files" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new ConfigMap called "signoz-clickhouse-operator-etc-usersd-files" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new ConfigMap called "signoz-otel-collector" in default

[2026-01-30 12:21:23][INFO] Created a new ClusterRole called "signoz-otel-collector-sre-signoz" in 

[2026-01-30 12:21:23][INFO] Created a new ClusterRoleBinding called "signoz-otel-collector-sre-signoz" in 

[2026-01-30 12:21:23][INFO] Created a new Role called "signoz-clickhouse-operator" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new Role called "signoz-schema-migrator-sre-signoz-async" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new RoleBinding called "signoz-clickhouse-operator" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new RoleBinding called "signoz-schema-migrator-sre-signoz-async" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new Service called "signoz-zookeeper-metrics" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new Service called "signoz-zookeeper-headless" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new Service called "signoz-zookeeper" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new Service called "signoz-clickhouse-operator-metrics" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new Service called "signoz-otel-collector" in default

[2026-01-30 12:21:23][INFO] Created a new Service called "signoz" in default

[2026-01-30 12:21:23][INFO] Created a new Deployment called "signoz-clickhouse-operator" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new Deployment called "signoz-otel-collector" in default

[2026-01-30 12:21:23][INFO] Created a new StatefulSet called "signoz-zookeeper" in sre-signoz

[2026-01-30 12:21:23][INFO] Created a new StatefulSet called "signoz" in default

[2026-01-30 12:21:23][INFO] Created a new Job called "signoz-schema-migrator-async-init" in default

[2026-01-30 12:21:23][INFO] Created a new Job called "signoz-schema-migrator-sync-init" in default

[2026-01-30 12:21:23][INFO] Looks like there are no changes for ClickHouseInstallation "signoz-clickhouse"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions