|NO.Z.00350|——————————|CloudNative|——|KuberNetes&运维.V66|——|IngressNginx.v02|部署|

一、安装Ingress
### --- Ingress安装说明

~~~     推荐使用:DaemonSet
~~~     # 条件允许:最好找几台专门的服务器进行配置ingress:
~~~     这几台服务器制作Ingress,不做其它的使用
~~~     因为Ingress是整个集群的入口,
~~~     可以让整个Ingress独占资源,若是挂了服务访问会出现问题
~~~     # 若是没有服务器:QoS:尽量保障Ingress不受影响
~~~     # hostNetwork: true:为什么不适用notepod,因为notepod性能没有hostNetwork高
~~~     这样其实使用宿主机的网络,这样网络消耗比nodepod要好一些
~~~     因为nodepod使用的性能没有那么高
二、annotations和configmap
### --- annotations和configmap

~~~     # annotations:
~~~     更改配置文件之后立马就生效;不用滚动更新nginx-ingress的那个pod;
~~~     针对某个Ingress来配置使用annotations
~~~     # configmap:
~~~     更改了它的配置,需要把nginx-ingress滚动更新后才可以生效;
~~~     一般用到全局的配置参数之中:比如配置日志中心,超时,上传文件大小。

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

 

posted on 2022-04-01 13:21  yanqi_vip  阅读(31)  评论(0)    收藏  举报

导航