02 2022 档案

摘要:更新方法syncIngress 经过前面分析,当ingress发生变更时,会回调到syncIngress方法 // syncIngress collects all the pieces required to assemble the NGINX // configuration file and 阅读全文
posted @ 2022-02-24 09:16 风中之叶0 阅读(438) 评论(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 阅读(200) 评论(0) 推荐(0) 编辑
摘要:主要结构图 主要逻辑 构建NginxController Store对Informer进行封装,用来监听ingress, ingressClass, Endpoint, Service, Secret, ConfigMap, Namespace等的变化,当发生变化时,写入到 updateCh Ngi 阅读全文
posted @ 2022-02-20 22:18 风中之叶0 阅读(430) 评论(0) 推荐(0) 编辑
摘要:k8s集群部署多Ingress Controller,deploy ingress时admission webhook报错 error when creating "demo-nginx-ingress.yaml": admission webhook "validate.nginx.ingress 阅读全文
posted @ 2022-02-15 21:40 风中之叶0 阅读(2234) 评论(0) 推荐(1) 编辑