You would like to use annotations in Managed controllers Pods and Statefulsets
In the Managed controller configuration, under the Advanced configuration you can customize the items being sent to the server, using YAML.
kind: StatefulSet spec: template: metadata: annotations: foo: bar
kind: StatefulSet metadata: annotations: foo: bar
The same configuration can be applied in the Operation Center under Manage Jenkins > Configure System > Kubernetes controller Provisioning > Advanced > YAML. This setting would apply to newly created controller only (including Team controllers).
The latest update of this article was tested with: