Skip to content

Receiver controller is always looking receivers in default namespace #144

@sgandham123

Description

@sgandham123

Hi,
We are using thanos 0.36 version and I am trying to add receiver controller . We are using EKS cluster and deployed thanos under "test" name space. when I tried add receiver controller to the same name space by adding namespace attribute to the K8 deployment object. Now the module is deployed under the correct name space but controller is trying to look for resources in default namespace as below.

cat <<'EOF' | kubectl apply -f - apiVersion: apps/v1 kind: Deployment metadata: name: thanos-receive-controller namespace: thanosdev labels: app.kubernetes.io/name: thanos-receive-controller spec: replicas: 1 selector: matchLabels: app.kubernetes.io/name: thanos-receive-controller template: metadata: labels: app.kubernetes.io/name: thanos-receive-controller spec: containers: - args: - --configmap-name=thanos-receive - --configmap-generated-name=thanos-receive-generated - --file-name=hashrings.json image: quay.io/observatorium/thanos-receive-controller name: thanos-receive-controller EOF

Logs:

W0115 22:32:45.582644 1 reflector.go:539] /workspace/main.go:466: failed to list *v1.StatefulSet: statefulsets.apps is forbidden: User "system:serviceaccount:thanosdev:default" cannot list resource "statefulsets" in API group "apps" in the namespace "default"
E0115 22:32:45.582685 1 reflector.go:147] /workspace/main.go:466: Failed to watch *v1.StatefulSet: failed to list *v1.StatefulSet: statefulsets.apps is forbidden: User "system:serviceaccount:thanosdev:default" cannot list resource "statefulsets" in API group "apps" in the namespace "default

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