当前位置:网站首页>Automatic reconstruction of pod after modifying resource object
Automatic reconstruction of pod after modifying resource object
2022-06-24 12:25:00 【Honest1y】
1 background
User defined Kubernetes Resource object ( for example Deployment、Daemonset etc. ), Profile to configmap Definition , adopt Volumemounts Mount To Pod in , After the configuration file is modified , The service can automatically reload Load update configuration .
2 Solution
- Limiting conditions :Kubernetes Version in 1.9 And above
- Cluster installation
reloader - By adding comments
annotationThe way to achieve
kubectl apply -f https://raw.githubusercontent.com/stakater/Reloader/master/deployments/kubernetes/reloader.yaml
overall situation configmap Trigger update
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: filebeat
namespace: log
labels:
k8s-app: filebeat
annotations:
reloader.stakater.com/auto: "true"As specified configmap Changes automatically trigger configuration updates for resource objects
- single ConfigMap to update
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: filebeat
namespace: log
labels:
k8s-app: filebeat
annotations:
configmap.reloader.stakater.com/reload: "filebeat-config"- many configmap, Multiple... With commas configmap In isolation
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: filebeat
namespace: log
labels:
k8s-app: filebeat
annotations:
configmap.reloader.stakater.com/reload: "filebeat-config,foo-config"边栏推荐
- Tools and methods - use code formatting tools in source insight
- 怎么申请打新债 开户是安全的吗
- 广发证券靠谱吗?开证券账户安全吗?
- [206] use PHP language to generate the code of go language
- 电商红包雨是如何实现的?拿去面试用(典型高并发)
- Install MySQL in docker and modify my CNF profile
- Jenkins performance test
- 【云驻共创】解读HarmonyOS 应用与服务生态
- GTest从入门到入门
- FreeRTOS overview and experience
猜你喜欢

FreeRTOS overview and experience

How to write controller layer code gracefully?

计组-总复习

Ten thousand campus developers play AI in a fancy way. It's enough to see this picture!

Opencv learning notes - Discrete Fourier transform
![[go language questions] go from 0 to entry 4: advanced usage of slice, elementary review and introduction to map](/img/7a/16b481753d7d57f50dc8787eec8a1a.png)
[go language questions] go from 0 to entry 4: advanced usage of slice, elementary review and introduction to map

GLOG从入门到入门

如何优雅的写 Controller 层代码?

电商红包雨是如何实现的?拿去面试用(典型高并发)

Opencv learning notes -- Separation of color channels and multi-channel mixing
随机推荐
Jenkins performance test
Clickhouse uses distributed join of pose series
计组-总复习
Continuous testing | test process improvement: practice continuous testing within iterations in coding
深圳市人民医院程立新课题组提出多组学数据在肝细胞癌的诊断与预后分析的新方法meGPS
[day ui] alert component learning
Tencent cloud and the ICT Institute launched the preparation of the "cloud native open source white paper" to deeply interpret cloud native
VaR in PHP_ export、print_ r、var_ Differences in dump debugging
深度学习~11+高分疾病相关miRNA研究新视角
Opencv learning notes - regions of interest (ROI) and image blending
Tsingsee green rhino video "cloud side end" +ai intelligent security system is integrated into the mainstream development trend
QT -- the qtabwidget supports dragging tabbar items
Identification of new prognostic DNA methylation features in uveal melanoma by 11+ based on methylation group and transcriptome analysis~
10 zeros of D
Axi low power interface
Embedded must learn! Detailed explanation of hardware resource interface - based on arm am335x development board (Part 2)
如何优雅的写 Controller 层代码?
Linker --- linker
Chenglixin research group of Shenzhen People's hospital proposed a new method of multi group data in the diagnosis and prognosis analysis of hepatocellular carcinoma megps
单基因泛癌+简单实验就能发表7分+