[
https://issues.apache.org/jira/browse/FLINK-29391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17608778#comment-17608778
]
Gyula Fora commented on FLINK-29391:
------------------------------------
you can use the following built in Flink configs:
kubernetes.jobmanager.labels
kubernetes.taskmanager.labels
kubernetes.jobmanager.annotations
kubernetes.taskmanager.annotations
> Add option to set labels and annotations in kubernetes deployment
> -----------------------------------------------------------------
>
> Key: FLINK-29391
> URL: https://issues.apache.org/jira/browse/FLINK-29391
> Project: Flink
> Issue Type: Improvement
> Components: Kubernetes Operator
> Reporter: Barisa
> Priority: Major
>
> Using
> [https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-main/docs/custom-resource/pod-template/,|https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-main/docs/custom-resource/pod-template/]
> , it is quite easy to to set any configuration, containers, volumes in the
> pods.
>
> However, I have a requirement to be able to set annotations and labels
> directly on the kubernetes deployments, which manage taskamanger/jobmanager
> pods.
>
> In example
> {noformat}
> kc describe deployment basic-example
> Name: basic-example
> Namespace: zonda
> CreationTimestamp: Thu, 22 Sep 2022 10:54:30 +0100
> Labels: app=basic-example
> component=jobmanager
> type=flink-native-kubernetes
> Annotations: deployment.kubernetes.io/revision: 1
> flinkdeployment.flink.apache.org/generation: 2
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)