Container startup with Vault parameter retrieval
You can use Vault (CONFIGURE_MODE=Vault) as the configuration source and
set your parameters in Vault. This method is best used in a multiple tenant environment by
using an orchestration platform such as Kubernetes.
Using Vault as the configuration source allows you to set and retrieve container parameters efficiently. particularly in multi-tenant environments orchestrated by Kubernetes. This approach streamlines the configuration process by automating hostname generation and connection setups, reducing the need for manual intervention.
How Vault stores your configuration data
When you use CONFIGURE_MODE=Vault, Vault acts as the central repository for all configuration parameters. The hostnames and connections for related components are configured automatically. This eliminates the need for manual configuration and ensures consistent service naming.
Unique naming patterns in Vault
${TENANT}${ENVIRONMENT}${ENVTYPE}.${DOMAIN_NAME}For example:- Component:
ts-app - Tenant:
demo - Environment:
qa - Environment Type:
auth - Domain Name:
default.svc.cluster.local
demoqaauthts-app.default.svc.cluster.local- Structure Vault data hierarchically to represent tenants, environments, and services.
- Ensure Vault and Consul are installed and configured. For more details, refer to the Environment Data in Vault.
- By leveraging Vault, Kubernetes deployments can achieve improved automation, streamlined configuration management, and enhanced scalability for multi-tenant applications.