ambassador 学习六 Module说明
模块允许给与特定的mapping 或者整体添加特定的行为,方便进行系统的控制。
当前的module 定义主要是系统级别的
当前系统主要的配置
---
apiVersion: ambassador/v0
kind: Module
name: ambassador
config:
# 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/v0
kind: Module
name: tls
config:
server:
enabled: True
redirect_cleartext_from: 80
参考资料
分类:
docker
, kubernetes
, k8s
, api gateway
, envoy
, cloud native
, 云运维&&云架构
, service mesh
, ambassador
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
2017-07-06 Serf 了解
2017-07-06 Nomad 了解