it_worker365

   ::  ::  ::  ::  :: 管理

2021年10月21日

摘要: 从入口来看下 cmd/nginx/main.go 初始化各种逻辑,开启监控数据收集,初始化web服务,初始化Nginx等 func main() { ... kubeClient, err := createApiserverClient(conf.APIServerHost, conf.RootC 阅读全文
posted @ 2021-10-21 10:31 it_worker365 阅读(194) 评论(0) 推荐(0) 编辑

摘要: 1、从配置看 http_listen: ":8080" # the HTTP Server listen address, default is ":8080" enable_profiling: true # enable profiling via web interfaces # host:p 阅读全文
posted @ 2021-10-21 10:31 it_worker365 阅读(238) 评论(0) 推荐(0) 编辑

摘要: 1、普通创建 kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.0.4/deploy/static/provider/cloud/deploy.yaml 2、下载不下来的 阅读全文
posted @ 2021-10-21 10:30 it_worker365 阅读(44) 评论(0) 推荐(0) 编辑

摘要: 1、代码结构 .├── ingress-nginx # k8s ingress-nginx源码│ ├── build # 构建相关│ ├── charts # helm打包编排│ ├── cmd # 命令行,初始化等│ ├── deploy # yaml构建相关支持│ ├── hack # 构建底层 阅读全文
posted @ 2021-10-21 10:30 it_worker365 阅读(235) 评论(0) 推荐(0) 编辑

摘要: 1、编译可执行类 make 根据 Makefile 的描述找到build脚本 # Copyright 2017 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # 阅读全文
posted @ 2021-10-21 10:29 it_worker365 阅读(74) 评论(0) 推荐(0) 编辑

摘要: https://www.taohui.org.cn/2021/08/10/%E5%BC%80%E6%BA%90%E7%BD%91%E5%85%B3APISIX%E6%9E%B6%E6%9E%84%E5%88%86%E6%9E%90/#more Nginx采用了epoll + nonblock soc 阅读全文
posted @ 2021-10-21 10:29 it_worker365 阅读(136) 评论(0) 推荐(0) 编辑

摘要: 1、安装 docker run -d --name etcd-server --publish 2379:2379 --publish 2380:2380 --env ALLOW_NONE_AUTHENTICATION=yes --env ETCD_ADVERTISE_CLIENT_URLS=htt 阅读全文
posted @ 2021-10-21 10:29 it_worker365 阅读(131) 评论(0) 推荐(0) 编辑

摘要: apisix-admin如何支持http到etcd 动态模板 ngx_tpl.lua content_by_lua_block { apisix.http_admin() } apisix/init.lua function _M.http_admin() if not router then ro 阅读全文
posted @ 2021-10-21 10:28 it_worker365 阅读(287) 评论(0) 推荐(0) 编辑

摘要: Nginx 动态化实现难点 1、 nginx路由匹配是基于静态的Trie前缀树、哈希表、正则数组实现的,一旦server_name、location变动,不执行reload就无法实现配置的动态变更; 2、master+n worker中如何同步获取配置 以下只讨论apisix系列、k8s-ingre 阅读全文
posted @ 2021-10-21 10:26 it_worker365 阅读(598) 评论(0) 推荐(0) 编辑