Container platforms
Questions about Kubernetes, OpenShift, Docker, and more.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Tags for kubernetes workloads

gurugogi
Helper

Hi All,

Please let me know whether it is possible to create auto-tags at k8s workload level by leveraging the Labels and Annotations available at each workloads.

 

7 REPLIES 7

Peter_Youssef
Leader

Hello @gurugogi 

It's configurable, you can create automatically applied tags for K8s related entities through the UI.

  • Manage > Settings > Automatically applied tags.

    2024-10-11_18h56_01.png

2024-10-11_18h57_55.png

2024-10-11_19h00_05.png

2024-10-11_19h01_49.png

2024-10-11_19h03_21.png

2024-10-11_19h05_47.png

Or 

  • You create it directly though the entity selector.

Both options are available.

KR, 

Peter.

Peter_Youssef
Leader

Hi @gurugogi 

You have another option through Dynakube.yaml if you have direct access to the yaml file or ask the K8s admin to action it, you can configure it as per attached screenshot.

2024-10-11_19h11_33.png

KR, 

Peter.

gurugogi
Helper

@Peter_Youssef Thanks , I was able to create Tags at Host level using kubenetes labels at worker nodes, I used AwsAvailabilityZone to create auto tags to show availability zone.

Hi @gurugogi 

Glad to know , keep it UP 👨‍💻😉

BR,

Peter

nicolasT123
Frequent Guest

Hello, sorry to keep this old post up.

 

I simply don't get how it can work... And to me it cannot for multiple reason :

- There is no way to apply tagging rule directly on workload

- If you set an entity selector instead, you won't be able to apply a placeholder to inherit a pod label/annotation values as this is not translated.

- Annotations and labels are not directly set to tag for workloads and namespaces

 

So to me, this is simply not possible, if you want something dynamic and not one rule per possible key/value tag values.  

If you work with key values tags, then you will have to create as many tagging rules as possible values.

Hi All,

Exactly, this is my situation; I need to create dynamic tag rules using workload labels, but there are no placeholders for these values.



This is exactly our dilemna, there is no Kubernetes labels placeholders/regex to add certain unique identifiers like an application id to each workload, k8 service, or other Kubernetes entities. I wish this option was there to organize our rnvironment better and use it for other things like application based filtered dashboards on unique identifier tag.

Featured Posts