Last active
April 26, 2021 15:15
-
-
Save mitch-seymour/1bfbd5b73279058000a30cb668cd867e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apiextensions.k8s.io/v1 | |
kind: CustomResourceDefinition | |
metadata: | |
name: trafficsplits.split.smispec.io | |
spec: | |
group: split.smispec.io | |
scope: Namespaced | |
names: | |
kind: TrafficSplit | |
listKind: TrafficSplitList | |
shortNames: | |
- ts | |
plural: trafficsplits | |
singular: trafficsplit | |
versions: | |
- name: v1alpha4 | |
served: true | |
storage: true | |
additionalPrinterColumns: | |
- name: Service | |
type: string | |
description: The apex service of this split. | |
jsonPath: .spec.service | |
schema: | |
openAPIV3Schema: | |
type: object | |
properties: | |
spec: | |
type: object | |
required: | |
- service | |
- backends | |
properties: | |
service: | |
description: The apex service of this split. | |
type: string | |
matches: | |
description: The HTTP route groups that this traffic split should match. | |
type: array | |
items: | |
type: object | |
required: ['kind', 'name'] | |
properties: | |
kind: | |
description: Kind of the matching group. | |
type: string | |
enum: | |
- HTTPRouteGroup | |
name: | |
description: Name of the matching group. | |
type: string | |
backends: | |
description: The backend services of this split. | |
type: array | |
items: | |
type: object | |
required: ['service', 'weight'] | |
properties: | |
service: | |
description: Name of the Kubernetes service. | |
type: string | |
weight: | |
description: Traffic weight value of this backend. | |
type: number |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment