Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.0k views
in Technique[技术] by (71.8m points)

Kubernetes 中是否存在 WatchJob 机制?

使用场景

监听 TLS Secret,同步更新到第三方 CDN

目前的解决方案

执行一个 Deployment,利用 API 的 watch 能力完成同步与更新

期望的解决方案与思考

在 CronJob 外提供一种 WatchJob,定义好后会在指定资源更新后自动执行,这样不需要和 Deployment 一样一直占用 CPU/RAM 资源。

如果不存在这样的机制,是由于 k8s 的功能缺失还是该需求本身就是伪需求?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...