doukuibi9631 2019-09-19 11:50
浏览 220

golang在kubernetes上创建监视程序/控制器,以将sidecar容器附加到具有PVC附件的任何pod /部署中

I'm a go newbie and trying to get the above done . what is the simplest way to go about it ? What i'm looking for is:
1- A watcher for deployments
2- On update/delete/add deployment a sidecar will be attached (patch the deployment)
3- Something to control feedback from that sidecar.

Any reference would be helpful

  • 写回答

1条回答

  • doutan8506 2019-09-19 13:28
    关注

    I would advise you look at webhooks instead so you don't reinvent the wheel. Webhooks can be used to intercept resources (including deployments) update/deletion/creation requests to the API server. Those requests can then be modified, or rejected depending on your goals.

    评论

报告相同问题?

悬赏问题

  • ¥30 vmware exsi重置后登不上
  • ¥15 易盾点选的cb参数怎么解啊
  • ¥15 MATLAB运行显示错误,如何解决?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题
  • ¥20 yolov5自定义Prune报错,如何解决?
  • ¥15 电磁场的matlab仿真
  • ¥15 mars2d在vue3中的引入问题
  • ¥50 h5唤醒支付宝并跳转至向小荷包转账界面