-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing labels on kubecostChecks #761
Comments
If it's not too much to ask, it would be really valuable to be able to define arbitrary labels and annotations to all possible pods that should be launched. |
This seems like a straightforward addition. Any blockers that you see @AjayTripathy? |
No, we can add this. |
Went ahead and did #777 @pierluigilenoci to support additional labels on all pods created by kubecost-- the subcharts should already support these options. Let us know what you think! |
@AjayTripathy I am very pleased that you have provided the possibility to add custom labels and annotations. But I think following the recommendations [1] is still a good thing. [1] https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/ |
@AjayTripathy what do you think about this? #761 (comment)
|
@AjayTripathy this is still not working because commonLabels and additionalLabels are in the wrong manifest level. To make the pod inherit them, they must be put at this level: |
@dwbrown2 @AjayTripathy any news on this topic? |
Should be done in #827 |
Actually, checks pod will get deprecated in 1.79.0, so we may just close this. |
Note this functionality will be moved into the core kubecost pod. |
Describe the bug
The pods of the kubecostCheck cronjob don't have unique labels that allow them to be identified.
It is therefore difficult to create NetworkPolicy with the pods.
Ref: #743
To Reproduce
Deploy the package with NP enabled with a policy like this:
Try to create a Network Policy to allow kubecostCheck to reach other Kubecost pods.
Example:
Expected behavior
The pod is launched with proper labels.
Example:
The text was updated successfully, but these errors were encountered: