How to set proper permissions for statefulsets resource in Kubernete?

5/26/2020

I am running a Instana Agent on minishift. I see these logs:

 oc logs -f pod/instana-agent-dg5lt

2020-05-26T03:10:58.763+00:00 | WARN | nstana-sensor-scheduler-thread-1 | Kubernetes | com.instana.sensor-kubernetes - 1.2.106 | Instana agent does not have permission to watch for statefulsets changes. Kubernetes sensor will not work properly without this permission. Please ensure proper permissions for statefulsets resource.

How to set proper permissions for statefulsets resource in Kubernete?

edit

I used 2 yaml files. I used this yaml file to install operator ditto as is without any change: https://github.com/instana/instana-agent-operator/releases/latest/download/instana-agent-operator.yaml

And I used this custom resource yaml file https://github.com/instana/instana-agent-operator/blob/master/deploy/instana-agent.customresource.yaml with just two changes: I added size: 1 under spec key and replaced replace-me with proper agent key.

edit2

I used oc api-resources as that's how I created the project and deployed definition files. Result can be found here -> https://pastebin.com/A6zRRReS

-- Faraz
kubernetes
minishift
openshift

0 Answers