Skip to content

Commit

Permalink
istio other crd
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueHorn07 committed Mar 23, 2024
1 parent dcb76e5 commit e5dc721
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ toc: true
toc_sticky: true
categories: ["Kubernetes", "Istio"]
excerpt: "Auth์™€ Authz๋ฅผ istio ์ธํ”„๋ผ ๋ ˆ๋ฒจ์—์„œ ๊ตฌํ˜„ํ•˜๊ธฐ!"
last_modified_at: 2024-03-15
last_modified_at: 2024-03-23
---

![](/images/meme/dump-head.png){: .align-center style="max-width: 400px" }

istio๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด Authentication๊ณผ Authorization์„ Envoy Proxy ๋ ˆ๋ฒจ์—์„œ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ๋‹ค. ์ด๊ฑด Auth & Authz ๋กœ์ง์„ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์—์„œ ๊ตฌํ˜„์ด ์—†์–ด๋„ ์›Œํฌ๋กœ๋“œ๋ฅผ ๋ณดํ˜ธํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋Š” ๊ธฐ๋Šฅ ๊ฐ™๋‹ค!!
istio๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด Authentication๊ณผ Authorization์„ Envoy Proxy ๋ ˆ๋ฒจ์—์„œ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ๋‹ค. ์ด๊ฑด AuthN & AuthZ ๋กœ์ง์„ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์—์„œ ๊ตฌํ˜„์ด ์—†์–ด๋„ ์›Œํฌ๋กœ๋“œ๋ฅผ ๋ณดํ˜ธํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋Š” ๊ธฐ๋Šฅ ๊ฐ™๋‹ค!!

# ์‚ฌ์ „ ์ค€๋น„: helloworld ์˜ˆ์ œ

Istio ์˜ˆ์ œ๋กœ ์ œ๊ณต๋˜๋Š” helloworld ์˜ˆ์ œ๋ฅผ ํ™œ์šฉํ•ด์„œ Istio์˜ Auth&Authz์„ ๊ฒ€์ฆํ•ด๋ณด์ž. ์ž์„ธํ•œ ์˜ˆ์ œ๋Š” ์ด์ „์— ์ ์–ด๋‘” [Istio 'helloworld' ๋ฐ๋ชจ](https://bluehorn07.github.io/2024/02/05/istio-helloworld-demo/) ํฌ์ŠคํŠธ์—์„œ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.
Istio ์˜ˆ์ œ๋กœ ์ œ๊ณต๋˜๋Š” helloworld ์˜ˆ์ œ๋ฅผ ํ™œ์šฉํ•ด์„œ Istio์˜ AuthN&AuthZ์„ ๊ฒ€์ฆํ•ด๋ณด์ž. ์ž์„ธํ•œ ์˜ˆ์ œ๋Š” ์ด์ „์— ์ ์–ด๋‘” [Istio 'helloworld' ๋ฐ๋ชจ](https://bluehorn07.github.io/2024/02/05/istio-helloworld-demo/) ํฌ์ŠคํŠธ์—์„œ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.

์ผ๋‹จ ์œ„์˜ ๋ช…๋ น์–ด๋กœ ์›Œํฌ๋กœ๋“œ๋ฅผ ๋„์šฐ๊ณ 

Expand Down Expand Up @@ -72,10 +72,13 @@ spec:
rules:
- from:
- source:
# format: issuer/subject
requestPrincipals: ["[email protected]/[email protected]"]
EOF
```

์ด๋•Œ "issuer"๋Š” ํ† ํฐ์„ ๋ฐœ๊ธ‰ํ•œ ์ฃผ์ฒด(์ธ์ฆ์„œ๋ฒ„), "subject"๋Š” ํ† ํฐ์„ ๋ฐœ๊ธ‰๋ฐ›์€ ์ฃผ์ฒด(์‚ฌ์šฉ์ž, ์„œ๋น„์Šค๊ณ„์ •)์„ ํ‘œํ˜„ํ•œ๋‹ค.

## JWT ์‹ค์–ด์„œ ์š”์ฒญ ๋ณด๋‚ด๊ธฐ

`RequestAuthentication`๊ณผ `AuthorizationPolicy` ๋ฆฌ์†Œ์Šค๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ  ๋‚œ ๋’ค์— ์š”์ฒญ์„ ๋ณด๋‚ด๋ฉด, ์•„๋ž˜์™€ ๊ฐ™์ด ์š”์ฒญ์ด ๊ฑฐ๋ถ€ ๋œ๋‹ค.
Expand Down
41 changes: 39 additions & 2 deletions _posts/development/istio/2024-03-22-istio-memo-collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ https://istio.io/latest/docs/reference/config/networking/virtual-service/
- Retry Policy ์„ธํŒ… ๊ฐ€๋Šฅ
- ???: ์‚ผ์„ธ๋ฒˆ์€ ๋ด์ค€๋‹ค
- `DR`์—๋Š” outlier detection์ด ์žˆ๋‹ค.
- Fault Injection
- delay
- abort
- CORS Policy ์„ธํŒ… ๊ฐ€๋Šฅ

ํ•˜์ง€๋งŒ ๋ชจ๋‘ K8s Service๋กœ ์กด์žฌํ•˜๋Š” ์›Œํฌ๋กœ๋“œ, ๋˜๋Š” ์—”๋“œํฌ์ธํŠธ๊ฐ€ ๋ช…ํ™•ํ•œ ํƒ€๊นƒ(`naver.com`)์„ ๋Œ€์ƒ์œผ๋กœ๋งŒ ํ•  ์ˆ˜ ์žˆ๋‹ค.
Expand Down Expand Up @@ -127,7 +130,7 @@ spec:
host: productpage.nsA.svc.cluster.local
```
# ๋™์ผ host์— 2๊ฐœ VirtualService๊ฐ€ ์žˆ๋Š” ๊ฒฝ์šฐ
## ๋™์ผ host์— 2๊ฐœ VirtualService๊ฐ€ ์žˆ๋Š” ๊ฒฝ์šฐ
```yaml
# duplicate-host-vs.yaml
Expand Down Expand Up @@ -193,7 +196,8 @@ Envoy์— `gRPC` Access Log๋ฅผ ํ™œ์„ฑํ™” ํ•˜๋ ค๋ฉด ์ผœ๋Š” ์˜ต์…˜์ด๋ผ๊ณ  ํ•œ๋‹ค.
Istio ๋ฉ”์‰ฌ ์ „์ฒด์— ํŠธ๋ž˜ํ”ฝ ๊ทœ์น™์„ ์ ์šฉํ•˜๋Š”๊ฒŒ ๊ฐ€๋Šฅํ•˜๋‹ค!! ์•„๋ž˜ ๋ฆฌ์†Œ์Šค๋“ค์„ istio ๋ฉ”์‰ฌ์˜ root namespace, ๋ณดํ†ต `istio-system`์— ์ƒ์„ฑํ•˜๋ฉด ๋ฉ”์‰ฌ์˜ ๋ชจ๋“  ์›Œํฌ๋กœ๋“œ์— ํ•ด๋‹น ๊ทœ์น™์ด ์ ์šฉ๋œ๋‹ค!

- `DestinationRule`
- ...
- `EnvoyFilter`
- `ProxyConfig`

์ด๋•Œ, ๋ฆฌ์†Œ์Šค๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์ˆœ์„œ๋Š” ๋ณดํ†ต ์›Œํฌ๋กœ๋“œ๊ฐ€ ๋– ์žˆ๋Š” ๊ณณ์˜ ๋„ค์ž„์ŠคํŽ˜์ด์Šค์— ์กด์žฌํ•˜๋Š” Istio ๋ฆฌ์†Œ์Šค์Šค๋ฅผ ๋จผ์ € ํ™•์ธํ•˜๊ณ , ๊ทธ๊ฒŒ ์—†์œผ๋ฉด root ns์˜ Istio ๋ฆฌ์†Œ์Šค๋ฅผ ๋ณด๊ฒŒ ๋œ๋‹ค๊ณ  ํ•œ๋‹ค.

Expand Down Expand Up @@ -239,6 +243,18 @@ root ๋„ค์ž„์ŠคํŽ˜์ด์Šค์— ์ •์˜ํ•œ DR๊ณผ ์›Œํฌ๋กœ๋“œ ๋„ค์ž„์ŠคํŽ˜์ด์Šค์—

TODO: ...

# Merged Prometheus telemetry

https://istio.io/latest/docs/ops/integrations/prometheus/#option-1-metrics-merging

Istio์˜ Envoy Proxy๋“ค์€ ๊ทธ๋“ค์˜ metric์„ ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค metric ํ˜•์‹์œผ๋กœ ๋…ธ์ถœํ•จ. Envoy Proxy์˜ ๋ฉ”ํŠธ๋ฆญ์€ Pod์˜ `15090` ํฌํŠธ๋กœ ๋…ธ์ถœ๋จ.

๊ทธ๋Ÿฐ๋ฐ ์–ด๋–ค Pod๋“ค์€ isito proxy๋ฅผ ๋„์ž…ํ•˜๊ธฐ ์ด์ „๋ถ€ํ„ฐ ์ž์ฒด์ ์œผ๋กœ Prometheus ๋ฉ”ํŠธ๋ฆญ์„ ๋…ธ์ถœํ•˜๊ณ  ์žˆ์—ˆ์„ ์ˆ˜๋„ ์žˆ์Œ. ๊ทธ๋ ‡๊ฒŒ ๋˜๋ฉด, istio proxy์˜ ๋ฉ”ํŠธ๋ฆญ๋„ ๋…ธ์ถœ๋˜๊ณ  App์ด ์›๋ž˜ ๋…ธ์ถœํ•˜๋˜ ๋ฉ”ํŠธ๋ฆญ๋„ ๊ฐ™์ด ์žˆ๊ฒŒ ๋จ. (์ด๋ ‡๊ฒŒ ๋˜๋ฉด ๋ญ”๊ฐ€ ๊ฐ„์„ญ์ด ์žˆ๋‚˜๋ด„??)

๊ทธ๋ž˜์„œ istio๋Š” ์นœ์ ˆํ•˜๊ฒŒ๋„(?) ๊ธฐ์กด App์ด ๋…ธ์ถœํ•˜๋Š” ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค ๋ฉ”ํŠธ๋ฆญ์ด ์žˆ๋‹ค๋ฉด ๊ทธ๊ฑธ ๋ณ‘ํ•ฉ(merge)ํ•ด์„œ "merged prometheus telemtry"์˜ ํฌํŠธ์ธ `15020`์— ์ด์ค€๋‹ค๊ณ  ํ•จ.

์ด๋ ‡๊ฒŒ ๋‘ ํ”„๋ฉ” ๋ฉ”ํŠธ๋ฆญ์„ ๋ณ‘ํ•ฉํ•˜๋Š” ์˜ต์…˜์€ IstioOp๋ฅผ ์„ค์น˜ํ•  ๋•Œ `meshConfig.enablePrometheusMerge` ์˜ต์…˜์— ์˜ํ•ด ์„ค์ •๋˜๋Š”๋ฐ, ๊ธฐ๋ณธ๊ฐ’์ด `true`๋ผ์„œ Istio proxsy๊ฐ€ ์ฃผ์ž…๋˜์—ˆ๋‹ค๋ฉด ๊ธฐ์กด App ๋ฉ”ํŠธ๋ฆญ์ด ๋ณ‘ํ•ฉ๋˜๊ฒŒ ๋  ๊ฒƒ์ž„. ๊ทธ๋ฆฌ๊ณ  ์œ„์˜ ์˜ต์…˜์— ๋”ฐ๋ผ istio proxy๊ฐ€ ์ฃผ์ž…๋œ Pod์€ ํ”„๋ฉ” Scrape์„ ์œ„ํ•œ `prometheus.io/xxx` annot์ด ์ด๊ฒƒ์ €๊ฒƒ ๋ถ™๊ฒŒ ๋œ๋‹ค๊ณ  ํ•จ. ๋งŒ์•ฝ, ๊ธฐ์กด์— ์ด๋ฏธ `prometheus.io/xxx` annot์ด ์žˆ์—ˆ๋‹ค๋ฉด overwrite ๋จ.... ใ…‹ใ…‹

# Istio Ingress Controller

https://istio.io/latest/docs/tasks/traffic-management/ingress/kubernetes-ingress/
Expand Down Expand Up @@ -282,6 +298,27 @@ K8s Gateway API๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ, istio ๋ฆฌ์†Œ์Šค๋ฅผ ์–ด๋–ป๊ฒŒ ํ˜ธํ™˜ ์‹œ์ผœ์•ผ

TODO: ์š”๊ฑด ์•„์ง K8s ํ‘œ์ค€ API๊ฐ€ ์•„๋‹Œ ๊ฒƒ ๊ฐ™์•„์„œ ICA ์‹œํ—˜์— ์•ˆ ๋‚˜์˜ฌ ๊ฒƒ ๊ฐ™์Œ ใ…‹ใ…‹ใ…‹ ๋‚˜์ค‘์— ๋‹ค์‹œ ์ฐพ์•„๋ณด๋Š” ๊ฑธ๋กœ!

# Istio Reserved Ports

https://istio.io/latest/docs/ops/deployment/requirements/

์™ธ๋ถ€๋กœ ์ง์ ‘ ๋…ธ์ถœ๋œ port๋งŒ ์ ์Œ. internal port๋Š” ์ƒ๋žต! ๋Œ€๋ถ€๋ถ„์ด `150xx` ํฌํŠธ์ž„.

## Envoy Proxy

- `15001`: Envoy outbound
- `15006`: Envoy inbound
- `15021`: Health checks
- `15020`: Merged Prometheus telemetry from Istio agent, Envoy, and application
- ์™œ ํ”„๋ฉ” ๋ฉ”ํŠธ๋ฆญ์„ ๋ณ‘ํ•ฉ(?)ํ•œ ํฌํŠธ๊ฐ€ ์žˆ๋Š”์ง€๋Š” ์š” ํฌ์ŠคํŠธ์˜ ์œ„์ชฝ์— ๋ฌธ๋‹จ์— ์ ์–ด๋‘ !
- `15090`: Envoy Prometheus telemetry

## Istiod

- `15014`: Control plane monitoring
- `15017`: Webhook container port
- `15010`, `15012`: XDS and CA services

# Istio ControlZ

![](https://istio.io/latest/docs/ops/diagnostic-tools/controlz/ctrlz.png)
Expand Down
86 changes: 86 additions & 0 deletions _posts/development/istio/2024-03-23-istio-crd-others-memo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
title: "Istio CRD ์ค‘์— ์ง€์—ฝ์ ์ธ ๋‚˜๋จธ์ง€ ๊ฒƒ๋“ค ์ •๋ฆฌ"
toc: true
toc_sticky: true
categories: ["Kubernetes", "Istio"]
excerpt: "์•„๋‹ˆ Istio์— ์ด๋Ÿฐ ๋ฆฌ์†Œ์Šค๋„ ์žˆ์—ˆ์–ด ์‹ถ์€ ๊ฒƒ๋“ค์„ ์•„์ฃผ ๊ฐ„๋‹จํžˆ ์ •๋ฆฌํ•ด๋ดค๋‹ค: "
last_modified_at: 2024-03-23
---

```bash
$ kubectl get crd | grep istio
authorizationpolicies.security.istio.io 2024-03-22T07:07:06Z
destinationrules.networking.istio.io 2024-03-22T07:07:07Z
envoyfilters.networking.istio.io 2024-03-22T07:07:07Z
gateways.networking.istio.io 2024-03-22T07:07:07Z
istiooperators.install.istio.io 2024-03-22T07:07:07Z
peerauthentications.security.istio.io 2024-03-22T07:07:07Z
proxyconfigs.networking.istio.io 2024-03-22T07:07:07Z
requestauthentications.security.istio.io 2024-03-22T07:07:07Z
serviceentries.networking.istio.io 2024-03-22T07:07:07Z
sidecars.networking.istio.io 2024-03-22T07:07:07Z
telemetries.telemetry.istio.io 2024-03-22T07:07:07Z
virtualservices.networking.istio.io 2024-03-22T07:07:07Z
wasmplugins.extensions.istio.io 2024-03-22T07:07:07Z
workloadentries.networking.istio.io 2024-03-22T07:07:07Z
workloadgroups.networking.istio.io 2024-03-22T07:07:07Z
```

ICA ์‹œํ—˜ ์ค€๋น„ํ•  ๋•Œ, ์œ„์˜ ๋ช…๋ น์–ด๋ฅผ ์ณ์„œ ๋‚˜์˜จ Istio ๋ฆฌ์†Œ์Šค๋“ค์„ ๋ชจ๋‘ ๊ณต๋ถ€ํ•˜๊ฒ ๋‹ค๋Š” ๋‹ค์ง์„ ํ–ˆ๋‹ค ใ…‹ใ…‹ใ…‹ `VirtualService` `DestinationRule`, `Gateway`์€ Istio๋ฅผ ์ฒ˜์Œ ๊ณต๋ถ€ํ•  ๋•Œ๋ถ€ํ„ฐ ๋ดค๋˜ ๊ฒƒ๋“ค์ด๊ณ , `IstioOperator`๋Š” istio ์„ค์น˜๋ž‘ Mesh Config ์‚ดํŽด๋ณด๋ฉด์„œ ๊นŠ๊ฒŒ ๊ณต๋ถ€ ํ–ˆ๊ณ , `ServiceEntry`๋Š” Egress Gateway ๋•Œ ๊ณต๋ถ€ํ–ˆ๊ณ , `AuthorizationPolicy`, `PeerAuthentication`, `RequestAuthentication`, `Sidecar`๋Š” Istio์˜ Security ๊ด€๋ จํ•ด์„œ ๊ณต๋ถ€ํ•  ๋•Œ ์‚ดํŽด๋ดค๋‹ค.

์ด์ œ ๋‚˜๋จธ์ง€ ๋‚จ์€ ๊ฒƒ๋“ค์€ ์ง„์งœ์ง„์งœ ์ ‘ํ•  ๊ธฐํšŒ๋„ ๊ฑฐ์˜ ์—†์—ˆ๊ณ , Istio ๊ณต๋ถ€ํ•˜๋ฉด์„œ ๋ณธ ํ…Œํฌ ์˜์ƒ์ด๋‚˜ ๋ธ”๋กœ๊ทธ์—์„œ ๊ฑฐ์˜ ๋“ฑ์žฅ ์•ˆ ํ•˜๋˜ ๊ฒƒ๋“ค์ด๋‹ค. ๊ทธ๋Ÿฐ๋ฐ ์‹œํ—˜์—๋Š” ๋ญ๊ฐ€ ๋‚˜์˜ฌ์ง€ ๋ชจ๋ฅด๋‹ˆ... ์ผ๋‹จ ๊ณต๋ถ€๋Š” ๋‹ค ํ•ด๋ดค๋‹ค... (์žฅํ•˜๋‹ค ๋‚˜ ์ž์‹ ...)

์ด๋ฏธ ์‚ดํŽด๋ณธ ๊ฒƒ๋“ค์€
- `VirtualService`, `DestinnationRule`, `Gateway`
- `IstioOperator`
- `ServiceEntry`
- `AuthorizationPolicy`, `PeerAuthentication`, `RequestAuthentication`, `Sidecar`

์ง„์งœ ์ฉŒ๋ฆฌ๋“ค๋กœ ICA ์‹œํ—˜์— ์•ˆ ๋‚˜์˜ฌ ๊ฒƒ ๊ฐ™์€ ๊ฒƒ๋“ค...

- `WorkloadGroup`, `WorkloadEntry`
- `Telemtry`
- `WasmPlugin`
- `EnvoyFilter`
- `ProxyConfig`

๊ทธ๋ž˜๋„ ํ•œ๋ฒˆ์”ฉ ๋ฌธ์„œ๋Š” ๋‹ค ์‚ดํŽด๋ดค์œผ๋‹ˆ!! ๊ณต๋ถ€ํ•œ๊ฒŒ ์•„๊นŒ์›Œ์„œ๋ผ๋„ ์—ฌ๊ธฐ์— ์ •๋ฆฌํ•ด๋‘๊ฒ ๋‹ค!! โค๏ธโ€๐Ÿ”ฅ

# WorkloadGroup & WorkloadEntry`

์š”๊ฑด Istio์˜ [Virtual Machine Archtecture](https://bluehorn07.github.io/2024/03/23/istio-virtual-machine-architecture/) ์‚ดํŽด๋ณด๋ฉด์„œ ๊ณต๋ถ€ํ•˜๊ณ  ์ •๋ฆฌ ํ•ด๋’€๋‹ค ใ…Žใ…Ž

# Telemtry

TODO...

# WasmPlugin

https://istio.io/latest/docs/reference/config/proxy_extensions/wasm-plugin/

WebAssembly ํ”Œ๋Ÿฌ๊ทธ์ธ?์ด๋ผ๋Š”๋ฐ, WebAssembly๋Š” ์•„์ง ๋ญ”์ง€๋„ ์ž˜ ๋ชจ๋ฅด๊ณ  ์จ๋ณธ ์ ๋„ ์—†์–ด์„œ WASM์„ ๊ณต๋ถ€ํ–ˆ์Œ ใ…‹ใ…‹

[๋‹ˆ์ฝ”์Œค์˜ WASM ์„ค๋ช…](https://youtu.be/KjgDxBLv0bM?si=9In7rTUrV6FAE3TQ)

# EnvoyFilter

https://istio.io/latest/docs/reference/config/networking/envoy-filter/

Istio Pilot์ด ๋งŒ๋“  Envoy Configuration์„ ์ปค์Šคํ…€ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฆฌ์†Œ์Šค. ๋‹จ, ์ž˜๋ชป ๊ฑด๋“œ๋ฆฌ๋ฉด ์žฌ์•™์ด ๋ฒŒ์–ด์งˆ ์ˆ˜๋„ ์žˆ์œผ๋‹ˆ ์ฃผ์˜ํ•  ๊ฒƒ!

![](https://miro.medium.com/v2/resize:fit:2000/format:webp/0*RM-Rif51UiVlZmYC)

์ด๋•Œ, "filter"๋Š” Envoy์—์„œ ์œ ๋ž˜๋งŒ ์šฉ์–ด๋กœ Envoy๊ฐ€ ํŠธ๋ž˜ํ”ฝ์„ ์ฒ˜๋ฆฌํ•˜๋Š” ํ”„๋กœ์„ธ์Šค ์ค‘ ํ•˜๋‚˜๋ฅผ ์ผ์ปซ๋Š”๋‹ค. Envoy ์•ˆ์— filter๋Š” ์—ฌ๋Ÿฌ๊ฐœ๊ฐ€ ์กด์žฌํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ ์ด๋“ค์€ ์ˆœ์„œ๋Œ€๋กœ ์ฒ˜๋ฆฌ๋œ๋‹ค. ๊ทธ๋ž˜์„œ filter chain๋ผ๊ณ  ๋ถ€๋ฅธ๋‹ค.

# ProxyConfig

https://istio.io/latest/docs/reference/config/networking/proxy-config/

์š”๊ฑด Envoy Proxy ๊ด€๋ จํ•ด ๋ช‡๊ฐ€์ง€ ์ปค์Šคํ…€์„ ํ•  ์ˆ˜ ์žˆ๋Š”๋ฐ, ์ปค์Šคํ…€ ํ•˜๋Š” ๊ฒƒ๋“ค์ด ๋‹จ์ˆœํ•ด์„œ ์ดํ•ด๋Š” ์‰ฝ๋‹ค ใ…‹ใ…‹

`concurrency`๋ฅผ ์กฐ์ •ํ•ด Envoy Proxy๊ฐ€ ๋ช‡๊ฐœ์˜ thread๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์„์ง€ ์ปค์Šคํ…€. ๊ธฐ๋ณธ๊ฐ’์€ `2`, 2๊ฐœ ์“ฐ๋ ˆ๋“œ๋‹ค.

`environmentVariables`๋Š” Envoy Porxy์— ์ถ”๊ฐ€ Env Variable๋ฅผ ์ •์˜ํ•  ์ˆ˜ ์žˆ๋Š” ํ•„๋“œ.

`image`๋Š” Envoy Proxy์˜ ์ด๋ฏธ์ง€ ํƒ€์ž…์„ ๋ช…์‹œํ•˜๋Š” ๋ถ€๋ถ„์ž„. `default` ๊ฐ’์—์„œ `distroless`, `debug` ๋“ฑ์œผ๋กœ ๋ฐ”๊ฟ€ ์ˆ˜ ์žˆ๋‹ค. ์ฐธ๊ณ ๋กœ `distroless`๋Š” ๋ฆฌ๋ˆ…์Šค ๋ฐฐํฌํŒ(distribution, distro)์— ํฌํ•จ๋˜๋Š” ์†Œํ”„ํŠธ์›จ์–ด๊ฐ€ ํฌํ•จ๋˜์ง€ ์•Š์€ ์ด๋ฏธ์ง€์ž„. ๊ทธ๋ž˜์„œ ์™„์ „ ์ดˆ-๊ฒฝ๋Ÿ‰์ž„!!

0 comments on commit e5dc721

Please sign in to comment.