kubernetes - how to call flush in-memory api on all kubernetes pods if user call it via loadbalancer url
问题描述
In netcore webapi application, we have used EasyCaching provider for in-memory implementation and used flushAsync feature to clear cache. We deployed this appication on kubernetes and when user calls this flush api via loadbalancer url, in-memory cache for all pods must gets cleared.
Currently, I can hit only one pod and do not have control over which pod would get hit. I want to clear cache in all the pods in my Kubernetes cluster on api calling.
If there is an alternative approach for this problem, or a way to configure kubernetes to hit all end-points for this request, sharing here would be a great help.
解决方案
推荐阅读
- webrtc - 无法连接到 Coturn 服务器
- hibernate - 在 MappedSuperClass 中自动装配存储库
- python - 构建包含不同测量值的 PyMC3 模型
- reactjs - React Hooks 状态总是落后一步
- azure - 将自定义 docker 容器部署到应用服务时,.NET 核心应用程序前面的反向代理?
- php - 如何在 Ubuntu 18.10 上使用 Laravel Homestead 设置 HTTPS
- python - 如何在每个循环中遍历不同数量的元素?
- c# - TimeZoneInfo.ConvertTimeFromUtc 没有将旧日期转换为夏令时
- asp.net-core - Swashbuckle.AspNetCore 所需的查询字符串参数
- c++ - 从 VS2015 升级到 VS2017 后编译错误