43. Traffic Splitting with Native Kubernetes
Beginner Mode
Start your terminal to use beginner mode.
Scenario
Your team has a stable deployment app-v1 running in namespace canary. They want to test a new version (v2) with approximately 1/3 of traffic going to v2 and 2/3 remaining on v1.
Task
Implement canary traffic splitting between both versions using only native Kubernetes resources.
| Property | Value |
|---|---|
| Namespace | canary |
| Existing deployment | app-v1 |
| Canary deployment | app-v2 |
| Canary image | nginx:1.25 |
| Service name | my-app-svc |
| Service port | 80 |
A reference deployment file is available at /home/interview/deployment.yaml.
Terminal requires a larger screen
Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.
Kubernetes Environment
Launch a live cluster to solve this challenge.
Essential
Linux 0/29
AWS 0/10
Kubernetes 0/15
CI/CD 0/5
Networking 0/9
Need more practice in this area? Explore more questions →
Adobe
Accenture
Coinbase
EPAM
Twitch
Amazon
Kayak
Autodesk
Lyft
Revolut
RedHat
Bloomberg
Datadog
Palantir
TCS
HashiCorp
Google
DeutscheBank
GitHub
Apple
Cloudflare
Stripe
Microsoft
NVIDIA
GoDaddy
X
SAP
Spotify
Airbnb
Meta
Reddit
Yelp
Okta
Dropbox
Slack
ActivisionBlizzard
Zscaler
Uber
IBM
DeliveryHero
Robinhood
GitLab
Shopify
Samsung
Elastic
Twilio
Netflix
CrowdStrike
Ubisoft
Anthropic
Capital One
Splunk
Intel
AMD
Databricks