• Home
  • Deploy
  • Kubernetes
  • Guides
  • Metadata and automation
  • Add a custom properties file

Add a custom properties file

As part of getting started with Kubernetes monitoring, you might want to add a custom properties file.

You can add a custom properties file by providing it as a value or by referencing it from a secret.

Add the custom properties file as a value

To add the custom properties file as a value, see the example below.

yaml
customProperties: value: | [kubernetes_monitoring] ...

Reference the custom properties file from a secret

  1. Create a secret with the following content.

    The content of the secret has to be base64 encoded in order to work.

    yaml
    apiVersion: v1 kind: Secret metadata: name: <customproperties-secret> namespace: dynatrace data: customProperties: <base64 encoded properties>
  2. Add the secret to the custom properties.

    yaml
    customProperties: valueFrom: <customproperties-secret>