-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Add k8s recommended labels #34735
Add k8s recommended labels #34735
Conversation
I think it is necessary to differentiate |
How about we name each resource like e.g. |
I think it would be helpful to refer to the prometheus helm chart. (not only |
@kimminw00 Thanks. I've examined the 6 k8s recommended labels in the prometheus chart and I find that there's a difference for the labels In prometheus chart, these 2 labels are set as default For the other 4 labels ( |
And please take a close look at how each object(secret, pv, ingress etc.) is labeled in prometheus helm chart too! |
Hi @kimminw00, thank you for your comments. I've gone through the Prometheus helm chart as you suggested. While I tried to grasp the key points, I'm keen to ensure I address your concerns accurately. If there are areas you feel could benefit from closer alignment with the Prometheus helm chart, I'd appreciate any additional insights you might share. Thanks for your understanding and assistance! |
Prometheus and alertmanager are different apps. So they have different Ariflow, pgbouncer, redis, and statsd(may be there is more apps!) need to have different And you have to tests if app name is not longer than 63 chars. |
Thanks @kimminw00. Yes it makes sense to me. Different apps should have different names for differentiation. I've customized the yaml files to have different I also put webserver, scheduler, dag processor, triggerer, worker to have similar app name (i.e. I also added a new test to check if the Let me know your thought on this. |
If I think it is better to open another PR which fixes |
Thanks. I've applied the fix here to truncate |
@jedcunningham @hussein-awala Can I seek your feedback for this PR also ? Thanks |
I think you should also have to consider |
You mean add the newly created labels inside |
This means replacing the previous labels with the K8S recommended labels in Please add recommemded labels to the Thank you for going above and beyond! |
No problem =). Added recommended labels to |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
fixes #34048
As per the discussion, this PR modifes all existing yaml files inside airflow helm chart to include the recommended k8s labels. See this for more details
A lot of files are being affected but in short
kubernetes_recommended_labels
is added into_helpers.yaml
app.kubernetes.io/component
(with the value being the same ascomponent
if the resource was originally labeled withcomponent