博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ambassador 学习六 Module说明
阅读量:7007 次
发布时间:2019-06-28

本文共 1539 字,大约阅读时间需要 5 分钟。

模块允许给与特定的mapping 或者整体添加特定的行为,方便进行系统的控制。

当前的module 定义主要是系统级别的

当前系统主要的配置

---apiVersion: ambassador/v0kind:  Modulename:  ambassadorconfig:  # If present, service_port will be the port Ambassador listens  # on for microservice access. If not present, Ambassador will  # use 443 if TLS is configured, 80 otherwise.  # service_port: 80  # diag_port is the port where Ambassador will listen for requests  # to the diagnostic service.  # diag_port: 8877  # admin_port is the port where Ambassador's Envoy will listen for  # low-level admin requests. You should almost never need to change  # this.  # admin_port: 8001  # liveness probe defaults on, but you can disable it.  # liveness_probe:  #   enabled: false  # readiness probe defaults on, but you can disable it.  # readiness_probe:  #   enabled: false  # use_proxy_protocol controls whether Envoy will honor the PROXY  # protocol on incoming requests.  # use_proxy_proto: false  # use_remote_address controls whether Envoy will trust the remote  # address of incoming connections or rely exclusively on the   # X-Forwarded_For header.   #  # The current default is not to include any use_remote_address setting,  # but THAT IS LIKELY TO CHANGE SOON.  # use_remote_address: false

几个配置的说明

  • use_remote_address
用户请求的原地址的处理,当前为false,具体的可以参考envoy 的配置文档
  • use_proxy_proto
proxy  协议的说明
  • Probes
探针配置支持liveness  readiness 支持进行修改,可以支持prefix  rewite  service  和mapping 使用类似
  • tls 模块
    参考配置
---apiVersion: ambassador/v0kind:  Modulename:  tlsconfig:  server:    enabled: True    redirect_cleartext_from: 80

参考资料

 
 
 
 

转载地址:http://axjtl.baihongyu.com/

你可能感兴趣的文章
python常用模块目录
查看>>
Linux nohup命令
查看>>
IOS 本地通知
查看>>
Android Studio 使用笔记:记录使用Gradle配置AndroidAnnotations
查看>>
HTML5 + AJAX ( 原生JavaScript ) 异步多文件上传
查看>>
陶哲轩实分析 习题 13.5.1
查看>>
域上多项式的带余除法
查看>>
获取计算机以及本机信息API
查看>>
《结对-贪吃蛇游戏-测试过程》
查看>>
【trie树】HDU1251统计难题
查看>>
微软职位内部推荐-Sr DEV Lead, Bing Search Relevance
查看>>
[转]相频响应与群延迟
查看>>
python-函数
查看>>
Django form组件
查看>>
【转载】SQLITE3 使用总结
查看>>
mysql 原理 ~ 临时表
查看>>
后缀数组
查看>>
记忆化搜索(DFS+DP) URAL 1223 Chernobyl’ Eagle on a Roof
查看>>
Git 常用命令
查看>>
Windows消息机制详解
查看>>