여러 프로바이더 (Multiple Providers)
어떤 이유로든 North-South와 West-East 트래픽 라우팅에 서로 다른 프로바이더를 써야 하거나, 여러 프로바이더가 필요한 다른 하이브리드 아키텍처인 경우를 다루기 위한 기능이에요.
출처: 문서
본문
참고 (Note)
multiple trafficRouting은 Argo Rollouts v1.2부터 사용할 수 있어요.
여러 프로바이더의 사용은, 어떤 이유로든 North-South와 West-East 트래픽 라우팅에 서로 다른 프로바이더를 써야 하거나 여러 프로바이더가 필요한 다른 하이브리드 아키텍처 같은 시나리오를 다루려는 목적이에요.
여러 프로바이더를 사용할 수 있는 예시 (Examples of when you can use multiple providers)
Ingress 컨트롤러에 사이드카 주입 피하기 (Avoid injecting sidecars on your Ingress controller)
이건 서비스 메시의 흔한 요구사항이에요. 여러 trafficRouting을 쓰면 North-South 트래픽 시프팅은 NGiNX에, West-East 트래픽 시프팅은 SMI에 맡겨서 Ingress 컨트롤러를 메시 안에 추가할 필요를 피할 수 있어요.
Ingress에서 host 헤더 조작 피하기 (Avoid manipulation of the host header at the Ingress)
Ingress 컨트롤러 일부를 메시에 추가할 때 생기는 또 다른 흔한 부작용이에요. 라우팅을 위해 메시의 host 헤더가 메시 hostname을 가리키도록 쓰는 데서 비롯돼요.
빅뱅(Big-Bang) 피하기 (Avoid Big-Bang)
이건 다운타임이 매우 적거나 거의 불가능한 기존 플릿(fleet)에서 필요한 상황이에요. 빅뱅 방식의 채택을 피하려면 여러 프로바이더를 써서 팀이 새 기술을 점진적으로 도입하기 쉽게 만들 수 있어요. 예를 들어 Ambassador 같은 프로바이더를 이미 North-South 방식의 카나리아에 쓰고 있는 기존 플릿이, Istio나 SMI 같은 추가 프로바이더를 점진적으로 도입할 수 있는 식이에요.
하이브리드 시나리오 (Hybrid Scenarios)
이 경우도 빅뱅 피하기와 비슷해요. 플랫폼 로드맵의 일부든 아키텍처의 새 설계든, 여러 trafficRouting을 쓸 수 있는 능력이 매우 필요한 시나리오가 많아요. 점진적 도입, 아키텍처 롤백의 용이성, 심지어 폴백(fallback)까지요.
요구사항 (Requirements)
여러 프로바이더를 쓰려면 두 프로바이더가 각자의 최소 요구사항을 독립적으로 충족해야 해요. 예를 들어 NGiNX와 SMI를 쓰려면 SMI와 NGiNX를 모두 갖추고 두 프로바이더 모두에 대한 rollout 구성을 만들어야 해요.
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: rollouts-demo
spec:
strategy:
canary:
# Reference to a Service which the controller will update to point to the canary ReplicaSet
canaryService: rollouts-demo-canary
# Reference to a Service which the controller will update to point to the stable ReplicaSet
stableService: rollouts-demo-stable
trafficRouting:
nginx:
# Reference to an Ingress which has a rule pointing to the stable service (e.g. rollouts-demo-stable)
# This ingress will be cloned with a new name, in order to achieve NGINX traffic splitting.
stableIngress: rollouts-demo-stable
smi: {}