---
title: VolumeMounts Configuration
description: Provides support for mounting secret or configMap volumes on a workload container.
component: helm
page_id: helm::configs/volumemounts
canonical_url: https://developer.pingidentity.com/helm/configs/volumemounts.html
section_ids:
  globalproduct-section: Global/Product Section
---

# VolumeMounts Configuration

Provides support for mounting secret or configMap volumes on a workload container.

## Global/Product Section

Adds ability to use **secret** and **configMap** data in a container via a VolumeMount. A common use for this configuration is bringing product licenses or scripts into the container.

**Example of creating two volume mounts in container from secret and configMap:**

```yaml
pingfederate-admin:
   enabled: true
   volumes:
     - name: pf-props
       configMap:
         name: pingfederate-props
     - name: pf-license
       secret:
         secretName: pingfederate-license
   volumeMounts:
     - mountPath: /opt/in/etc/pingfederate.properties
       name: pf-props
     - mountPath: /opt/in/instance/server/default/conf/pingfederate.lic
       name: pf-license
```

|   |                                                                                                                                                                                                                                             |
| - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | [Secrets](https://kubernetes.io/docs/tasks/configmap-secret/managing-secret-using-kubectl) and [ConfigMaps](https://kubernetes.io/docs/concepts/configuration/configmap/) must be created in the cluster prior to deploying the helm chart. |

In this case, a secret (called `pingfederate-license`) and configMap (called `pingfederate-props`) will bring in a couple of key values (license, hello) and (pf-props) into the container as specific files. The resulting object will look like this:

**Example of kubectl describe of pingfederate-admin container**

```yaml
Containers:
  pingfederate-admin:
    Mounts:
      /opt/in/etc/pingfederate.properties from pingfederate-props (ro,path="pingfederate.properties")
      /opt/in/instance/server/default/conf/pingfederate.lic from pingfederate-license (ro,path="pingfederate.lic")
Volumes:
  pingfederate-license:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  pingfederate-license
    Optional:    false
  pingfederate-props:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      pingfederate-props
    Optional:  false
```
