# Passing Configs and Secrets

There are many ways to pass configurations to containers at run-time. Although simple to set up, using Environmental Variables can become complex if there are too many configurations, especially files and certificates. In Kubernetes, you also have the option to populate environment variables from [Config Maps](/docs/automation-platform/kubernetes-overview/configs-and-secrets/mounting-config-as-files.md#creating-a-kubernetes-configmap) or [Secrets](/docs/automation-platform/kubernetes-overview/configs-and-secrets/setting-kubernetes-secrets.md#setting-kubernetes-secrets).

There are several methods for passing configurations to containers during runtime:.

1. **Environment Variables**: A simple method for passing configuration data, but it can become cumbersome when dealing with many configurations or sensitive data like certificates and keys.
2. **ConfigMaps and Secrets in Kubernetes**: For more structured management of configuration data, Kubernetes offers ConfigMaps for non-sensitive data and Secrets for sensitive data (e.g., passwords, tokens). These can be injected into containers at runtime, providing a cleaner and more secure way to manage configurations.
   * [Learn more about using ConfigMaps and Secrets in Kubernetes.](/docs/automation-platform/kubernetes-overview/configs-and-secrets.md)
3. **Azure Key Vault**: For Azure users, **Azure Key Vault** is an option to securely store and manage sensitive configurations and secrets outside of your application, reducing the complexity of handling sensitive data.
   * [Learn more about Azure Key Vault for secrets management.](/docs/automation-platform/overview-2/azure-services/key-vault.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplocloud.com/docs/automation-platform/overview-2/azure-services/containers-and-services/passing-config-and-secrets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
