Skip to content

How can i apply the split_client module in a kubernetes-ingress? #2607

Answered by jasonwilliams14
jeffny2015 asked this question in Q&A
Discussion options

You must be logged in to vote

@jovankricka
Here is a simple example of using split with our virtualServer CRD:

apiVersion: k8s.nginx.org/v1
kind: VirtualServer
metadata:
  name: cafe
spec:
  host: cafe.example.com
  upstreams:
  - name: coffee-v1
    service: coffee-v1-svc
    port: 80
  - name: coffee-v2
    service: coffee-v2-svc
    port: 80
  routes:
  - path: /coffee
    splits:
    - weight: 90
      action:
        pass: coffee-v1
    - weight: 10
      action:
        pass: coffee-v2

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jovankricka
Comment options

@jasonwilliams14
Comment options

Answer selected by brianehlert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants