apiVersion: serving.knative.dev/v1
kind: Service
metadata:name: example-service
namespace: default
spec:...traffic:-tag: current
revisionName: example-service
percent:100-tag: latest
latestRevision:truepercent:0
Copy to ClipboardCopied!Toggle word wrapToggle overflow
다음 예제에서는 traffic 사양의 버전 목록을 확장하여 여러 버전으로 트래픽을 분할하는 방법을 보여줍니다. 이 예에서는 트래픽의 50%를 current 태그로 태그된 버전에 전송하고 트래픽의 50%를 candidate 로 태그된 버전에 보냅니다. 트래픽이 라우팅되지 않더라도 latest로 태그된 버전을 사용할 수 있습니다.