We have a requirement to store key value pairs (KVP) in Kubernetes and looking for possible options here. The requirements are as below:
- KVP are small sized - 200 characters together.
- KVP are short lived - 5 mins max, we don't need it beyond and thus clean it up.
- KVP written from one node, retrieved on a different one. Once read, its job is done and hence deleted from retrieving node.
- At peak, write/read rate may raise to 1000/s.
- At any point, may assume the total number of KVPs to not exceed 25k.
- 50% of it contain sensitive info. Which is preferred - application encryption it or K8s encryption?
- Trying to avoid third party like Redis.
When attempted to use ConfigMap (though need to work around its size limitations), found that the speed of writing reduces when the number of entries increase - as the writes are performed with PATCH requests.
Wanted to know if any alternatives suggested to explore.