Skip to content

(计算机)Ingress

Chen Xiaojie edited this page Dec 18, 2022 · 1 revision

Ingressegress 的中文意思分别为 进入出去。[^1]

在 AWS 云服务中,Ingress 指 inbound traffic (进入流量), egress 指 outbound traffic (出去流量)。AWS 中可以指定 ingress 和 egress 的规则。[^2]

在 K8s 中,Ingress 是指一个 API资源。Ingress 使得 cluster外部 能访问 内部的 HTTP 和 HTTPS routes路由器,并且 Ingress 定义了 流量路由 (Traffic routing) 的规则。[^3][^4] 换言之,k8s 的 Ingress 包含的内容以及范围比 AWS 中的 ingress 要大。

<style>#mermaid-1627814261068{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-1627814261068 .error-icon{fill:#552222;}#mermaid-1627814261068 .error-text{fill:#552222;stroke:#552222;}#mermaid-1627814261068 .edge-thickness-normal{stroke-width:2px;}#mermaid-1627814261068 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-1627814261068 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-1627814261068 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-1627814261068 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-1627814261068 .marker{fill:#333333;stroke:#333333;}#mermaid-1627814261068 .marker.cross{stroke:#333333;}#mermaid-1627814261068 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-1627814261068 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaid-1627814261068 .cluster-label text{fill:#333;}#mermaid-1627814261068 .cluster-label span{color:#333;}#mermaid-1627814261068 .label text,#mermaid-1627814261068 span{fill:#333;color:#333;}#mermaid-1627814261068 .node rect,#mermaid-1627814261068 .node circle,#mermaid-1627814261068 .node ellipse,#mermaid-1627814261068 .node polygon,#mermaid-1627814261068 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-1627814261068 .node .label{text-align:center;}#mermaid-1627814261068 .node.clickable{cursor:pointer;}#mermaid-1627814261068 .arrowheadPath{fill:#333333;}#mermaid-1627814261068 .edgePath .path{stroke:#333333;stroke-width:1.5px;}#mermaid-1627814261068 .flowchart-link{stroke:#333333;fill:none;}#mermaid-1627814261068 .edgeLabel{background-color:#e8e8e8;text-align:center;}#mermaid-1627814261068 .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-1627814261068 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-1627814261068 .cluster text{fill:#333;}#mermaid-1627814261068 .cluster span{color:#333;}#mermaid-1627814261068 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80,100%,96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-1627814261068:root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;}#mermaid-1627814261068 .plain > *{fill:#ddd !important;stroke:#fff !important;stroke-width:4px !important;color:#000 !important;}#mermaid-1627814261068 .plain tspan{fill:#000 !important;}#mermaid-1627814261068 .k8s > *{fill:#326ce5 !important;stroke:#fff !important;stroke-width:4px !important;color:#fff !important;}#mermaid-1627814261068 .k8s tspan{fill:#fff !important;}#mermaid-1627814261068 .cluster > *{fill:#fff !important;stroke:#bbb !important;stroke-width:2px !important;color:#326ce5 !important;}#mermaid-1627814261068 .cluster tspan{fill:#326ce5 !important;}#mermaid-1627814261068 flowchart{fill:apa;}</style>
cluster
Ingress-managed
load balancer
routing rule
Ingress
Pod
Service
Pod
client

参考 References

[^1]: ingress - Weblio英和辞書 [^2]: [[AWS::EC2::SecurityGroup Ingress - AWS CloudFormation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule-1.html#:~:text=Specifies an inbound rule for,with the specified security group.) [^3]: Kubernetes Ingress with AWS ALB Ingress Controller [^4]: Kubernetes Ingress

Clone this wiki locally