Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

216
Visualizações
storing some application values in kubernetes etcd?

I have application that have some user settings and it runs on kubernetes cluster. I would like the user settings to survive application crash/pod restart.

I was thinking first about having a DB instance for keeping it outside of kubernetes. Then I thought, maybe I could just abuse etcd to store small amount of custom data. Is it a good approach to keep things simple?

Another options I see:

  1. separate db instance outside of kubernetes(overkill)
  2. some json file on PV volume in kubernetes being constantly re-read.
  3. perhaps use hashicorp vault?

What would you use? Its very small amount of data

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

you can use Persistent Volume and Persistent Volume claim. pvc or Persistent Volume claim will keep data incase of pod restart or pod crash. this the best way i think to store user data. you can have the suitable storage type and resource size as per your requirement. you can look into official doc. Ref

over 4 years ago · Santiago Trujillo Relatório

0

If you want to use etcd, a Kubernetes built-in database, it's not really suited for this purpose and shouldn't be used in practice. App shouldn't know about Kubernetes. You need to use DB or PVC to store app related objects in a disk (for example json, yaml or other files).

over 4 years ago · Santiago Trujillo Relatório

0

You could use etcd, however it's likely overkill for the requirements you outlined above. If you are sure you want to store stateful information in k8s, I'd suggest mounting a persistent volume to your deployment and then using a filestore such as BoltDB (https://github.com/boltdb/bolt) to interface with it.

That being said, I think running a simple SQL database outside of k8s is the simplest overall solution. Anything stateful is never simple with kubernetes and this way you can easily administer the database.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda