This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
стратегии_деплоя_в_kubernetes [2026/04/05 11:49] val [Установка Istio] |
стратегии_деплоя_в_kubernetes [2026/04/05 12:01] (current) val [Пример Gateway] |
||
|---|---|---|---|
| Line 237: | Line 237: | ||
| <code> | <code> | ||
| kubectl -n istio-system edit service istio-ingressgateway | kubectl -n istio-system edit service istio-ingressgateway | ||
| + | </code><code> | ||
| + | ... | ||
| kind: Service | kind: Service | ||
| metadata: | metadata: | ||
| Line 242: | Line 244: | ||
| metallb.universe.tf/ip-allocated-from-pool: first-pool | metallb.universe.tf/ip-allocated-from-pool: first-pool | ||
| metallb.universe.tf/loadBalancerIPs: 192.168.X.Y | metallb.universe.tf/loadBalancerIPs: 192.168.X.Y | ||
| + | ... | ||
| </code> | </code> | ||
| ==== Пример Gateway ==== | ==== Пример Gateway ==== | ||
| Line 265: | Line 268: | ||
| kube1# kubectl -n my-ns get gtw my-gateway | kube1# kubectl -n my-ns get gtw my-gateway | ||
| my-gateway istio 192.168.13.66 True 113m | my-gateway istio 192.168.13.66 True 113m | ||
| + | </code> | ||
| + | |||
| + | |||
| + | * Если [[Система Kubernetes#MetalLB]] с autoAssign: false | ||
| + | |||
| + | <code> | ||
| + | kubectl patch svc my-gateway-istio -n my-ns -p '{"metadata":{"annotations":{"metallb.universe.tf/loadBalancerIPs":"192.168.X.N"}}}' | ||
| </code> | </code> | ||
| ==== Пример HTTPRoute ==== | ==== Пример HTTPRoute ==== | ||