Use cases to define additionalMounts

Refer to these use cases of mounting additional resources to either service pods or truststore pods or both.

Adding additionalMounts to service pods and truststore pods

Option 1
Define additionalMounts without matchLabels. As a result, mounts are applied to all the pods, including service and truststore pods.
Option 2
Define additionalMounts with matchLabels.
  1. Define all the matching labels as podLabels in the SIPEnvironment.
  2. Ensure that none of the podLabels in the matchLabels of additionalMounts are overridden in the service group or server.

Adding additionalMounts to only service pods

  1. Define additionalMounts with matchLabels that targets only service pods.
  2. Set matching labels as podLabels in the service group.
  3. Ensure that none of the podLabels in the matchLabels of additionalMounts are overridden in the server.

    As a result, truststore pods are excluded because they inherit only the labels from the SIPEnvironment.

Adding additionalMounts to only truststore pods

  1. Define additionalMounts with matchLabels that targets only truststore pods.
  2. Define all matching labels as podLabels in the SIPEnvironment. The truststore pods inherit only the labels from the SIPEnvironment. Hence, the mounts are applied only to truststore pods.
  3. To exclude service pods, override at least one label present in the matchLabels in the service group or server to prevent a label match.

Adding different mounts to service pods and truststore pods

Define separate additionalMounts for each type with distinct matchLabels.

Service pods
  1. Set matching labels as podLabels in the service group to target service pods.
  2. Ensure that none of the podLabels in the matchLabels of additionalMounts are overridden in the server.
Truststore pods
  1. Define all the matching labels as podLabels in the SIPEnvironment.
  2. To exclude service pods, override at least one label in the matchLabels in the service group or server.

Adding additionalMounts to only specific service pods

  1. Define additionalMounts with matchLabels that target only specific service pods.
  2. Define all matching labels as podLabels in the server to apply mounts only to those specific pods.