13. Layer 3 Example
● 基於 IP/CIDR 或是 DNS
○ IP / CIDR (IPv4 / IPv6)
■ 有時候並不⾜夠彈性
○ DNS
■ Fully Qualified Domain Name (FQDN) / Remote / Non-Cluster
● toFQDN.matchPattern (*.cilium.io / www.*fdg.net)
■ 將經由 DNS Lookups 轉化成 IP
■ 需注意 TTL / DNS Cache 配置
● --tofqdn-min-ttl
● --tofqdn-max-ip-per-hostname (default: 50)
14. Layer 3 Example
● 基於 Label Matching
○ 基於 Endpoint Selector
○ Decoupling from IP
● 基於 Service
○ ⾃動 Apply 到 Service 後⾯的 Targets
○ Service 不由 Cilium 控制可以⽤這種⽅式 Apply
○ Decoupling from IP
15. Layer 3 Example
● 基於 Entities
○ host
■ Localhost / Host Networking Mode
○ remote-node
■ 其他 nodes
○ cluster
■ 本 cluster 的所有 endpoints
○ init
■ 還沒有被解析的 Endpoint
○ health
■ cluster health check 的 endpoint
○ unmanaged
■ 不經由 Cilium 管理的 Endpoint
○ world / all
■ 0.0.0.0/0 以及已知 cluster
○ Decoupling from IP