opencost icon indicating copy to clipboard operation
opencost copied to clipboard

Kubernetes deployment file is creating opencost namespace but not using it

Open amar-chand opened this issue 3 years ago • 1 comments

In Kubernetes deployment file, Following resources/objects are being created:

  1. opencost Namesapce
  2. opencost SA
  3. opencost ClusterRole
  4. opencost ClusterRoleBinding
  5. opencost Deployment
  6. opencost Service

All the resources/objects do not contain the namespace definition. It is pretty much confusing as we are creating namespace from inside the file, yet we are providing --namespace opencost parameter in the kubectl command, rather than defining the namespace for various resources/objects inside their definition YAMLs respectively.

Let's say user needs to change a few things, he/she will be bound to set --namespace argument all the time, and it is a bit of rework.

What can be done to fix it? We can set the namespace of all the resources/objects inside the file.

amar-chand avatar Sep 23 '22 10:09 amar-chand

Hello @amar-chand, thank you for raising this! We will consider this improvement when revisiting our Kubernetes resource definitions.

biancaburtoiu avatar Sep 23 '22 23:09 biancaburtoiu

Everything's in opencost now.

mattray avatar Aug 28 '23 05:08 mattray