随笔分类 -  Ingress Nginx Controller源码分析

Ingress Nginx Controller源码分析
摘要:更新方法syncIngress 经过前面分析,当ingress发生变更时,会回调到syncIngress方法 // syncIngress collects all the pieces required to assemble the NGINX // configuration file and 阅读全文
posted @ 2022-02-24 09:16 风中之叶0 阅读(501) 评论(0) 推荐(0)
摘要:cmd/nginx/main.go main函数中调用ngx.Start()方法启动 ngx := controller.NewNGINXController(conf, mc) mux := http.NewServeMux() registerHealthz(nginx.HealthPath, 阅读全文
posted @ 2022-02-21 10:33 风中之叶0 阅读(242) 评论(0) 推荐(0)
摘要:主要结构图 主要逻辑 构建NginxController Store对Informer进行封装,用来监听ingress, ingressClass, Endpoint, Service, Secret, ConfigMap, Namespace等的变化,当发生变化时,写入到 updateCh Ngi 阅读全文
posted @ 2022-02-20 22:18 风中之叶0 阅读(540) 评论(0) 推荐(0)