You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just want to deploy multiple instances of a simple ServiceMonitor resource on a kubernetes cluster with different namespaces.
all I want to do is just modifying the namespace and adding a namespaceSelector field for each.
So I created a common Service monitor on a base directory and tried to modify the namespace of it and add namespaceSelector for each namespace under overlay directories.
But the fleet(especially the rancher GUI) just shows as if there are 3 service monitors created for each namespace(default, namespaceA, namespaceB) by the GitRepo and what is even more confusing is that there is actually only 1 service monitor with the default namespace in a cluster.
Expected Behavior
What I expected is, and it should be working as,
There is 1 service monitor deployed for each namespace, so 2 service monitors in total in a cluster with the resource yaml like below(example for namespaceA, and the service monitor on namespaceB will have its own namespace information, respectively),
Is there an existing issue for this?
Current Behavior
I just want to deploy multiple instances of a simple ServiceMonitor resource on a kubernetes cluster with different namespaces.
all I want to do is just modifying the namespace and adding a namespaceSelector field for each.
So I created a common Service monitor on a base directory and tried to modify the namespace of it and add namespaceSelector for each namespace under overlay directories.
The direcotry hierarchy is like below.
fleet.yaml
base-manifest/service-monitor.yaml
overlays/namespaceA/kustomization.yaml
overlays/namespaceA/service-monitor-patch.yaml
But the fleet(especially the rancher GUI) just shows as if there are 3 service monitors created for each namespace(default, namespaceA, namespaceB) by the GitRepo and what is even more confusing is that there is actually only 1 service monitor with the default namespace in a cluster.
Expected Behavior
What I expected is, and it should be working as,
There is 1 service monitor deployed for each namespace, so 2 service monitors in total in a cluster with the resource yaml like below(example for namespaceA, and the service monitor on namespaceB will have its own namespace information, respectively),
Steps To Reproduce
No response
Environment
Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: