-
Notifications
You must be signed in to change notification settings - Fork 54
Description
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