Annotations in Managed Master Pods and Statefulsets

Issue

You would like to use annotations in Managed Masters Pods and Statefulsets

Environment

Resolution

For a single Managed Master

In the Managed Master configuration, under the Advanced configuration you can customize the items being sent to the server, using YAML.

modern-cloud-mm-config.png

modern-cloud-mm-config-yaml.png

  • For Pods annotations use:

    kind: StatefulSet
    spec:
      template:
        metadata:
            annotations:
                foo: bar
    
  • And for Statefulsets annotations:

    kind: StatefulSet
    metadata:
        annotations:
            foo: bar
    

For all the Managed Masters

The same configuration can be applied in the Operation Center under Manage Jenkins > Configure System > Kubernetes Master Provisioning > Advanced > YAML. This setting would apply to newly created master only (including Team Masters).

Tested products/plugins version

The latest update of this article was tested with:

Have more questions?

0 Comments

Please sign in to leave a comment.