Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Inject configuration with Config Maps and Secrets

Sumit Rawal answered on May 14, 2023 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers

  • kubectl configmap from file create
  • github action evaluate dynamic secrets variable
  • ConfigMap - Secret
  • configmaps and secrets
  • key-value pairs in a ConfigMap as container environment variables
  • config-server-secrets
  • What are ConfigMaps and Secrets?
  • How to use ConfigMaps and Secrets in Kubernetes?

  • Inject configuration with Config Maps and Secrets

    0

    When using Spring Cloud the most obvious choice for realizing distributed configuration in your system is Spring Cloud Config. With Kubernetes, you can use the Config Map. It holds key-value pairs of configuration data that can be consumed in pods or used to store configuration data. It is used for storing and sharing non-sensitive, unencrypted configuration information. To use sensitive information in your clusters, you must use Secrets. Any usage of both these Kubernetes objects can be perfectly demonstrated based on the example of MongoDB connection settings. Inside the Spring Boot application, we can easily inject it using environment variables. Here’s a fragment of application.yml file with URI configuration.

    Popularity 3/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 14 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.