0

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

Gordon
  • 312,688
  • 75
  • 539
  • 559
Faraz
  • 6,025
  • 5
  • 31
  • 88
  • share the yaml of instana agent. How did you install the agent? – Arghya Sadhu May 26 '20 at 03:30
  • I just included it in the question. – Faraz May 26 '20 at 03:41
  • What is the version of your kubernetes cluster? Is it pretty old? share output of kubectl api-resources – Arghya Sadhu May 26 '20 at 03:56
  • I updated it under edit2. – Faraz May 26 '20 at 04:13
  • Your linked file "instana-agent-operator.yaml" contains the necessary `ClusterRole` and `ClusterRoleBinding`, so in theory the `instana-agent-operator` ServiceAccount should have the permissions. Can you add the output for `oc get ServiceAccount, Deployment -n instana-agent -o yaml`, `oc get ClusterRoleBinding instana-agent-operator` and `oc get ClusterRole instana-agent-operator -n instana-agent`? This should show us if the resources were applied correctly. – Simon May 26 '20 at 20:16
  • @Simon I will do that in a bit. However, I see that you answer both Openshift questions and Kubernetes questions. Do you recommend any book to read to get solid understanding of both or either? And, what should I learn first? – Faraz May 26 '20 at 20:56
  • @Faraz OpenShift is the Red Hat distribution of Kubernetes, so OpenShift IS Kubernetes. So any good Kubernetes book / reading will do, however I found the Red Hat Learnings to be quite good: https://learn.openshift.com – Simon May 27 '20 at 17:23

0 Answers0