Giter Site home page Giter Site logo

Comments (6)

bzon avatar bzon commented on May 13, 2024 4

@stefanprodan I think it can be a good user experience to still be able to see my configs and use a secret. How about the following?

target:
  host: "172.18.7.21"
  port: 27017
  database: "test"
  username: "admin"
#  password: "secret"
  k8s_secret:
    name: mgob-secret
    key: MONGODB_PASSWORD

I can help with this one if you think it is ok.

from mgob.

ambis avatar ambis commented on May 13, 2024 1

I think the simplest way would be to support environment variable interpolation in the config files. You could then mount the secret as ENV.

Then you could do just
password: "${MONGO_BACKUP_PASSWORD}"

from mgob.

stefanprodan avatar stefanprodan commented on May 13, 2024

The mogb config files can be stored as Secrets instead of ConfigMaps.

from mgob.

CptQuint avatar CptQuint commented on May 13, 2024

The mogb config files can be stored as Secrets instead of ConfigMaps.

Can someone explain to me how this is achieved?

I've created my backup plan as a Secret so mongo connection details aren't stored as plain text within a ConfigMap but the container keeps crashing with the following error:

level=fatal msg="No backup plans found in /config

Which makes perfect sense as it's actually mounted here:

/secret/mongo-backup-conf

from mgob.

ambis avatar ambis commented on May 13, 2024

@CptQuint .. just mount it in the correct directory then?

from mgob.

CptQuint avatar CptQuint commented on May 13, 2024

@ambis I should be clear, I'm trying to use the Helm chart for deployment.

from mgob.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.