-
Notifications
You must be signed in to change notification settings - Fork 2
/
vegeta.kaidotdev.github.io_attacks.yaml
171 lines (170 loc) · 7.7 KB
/
vegeta.kaidotdev.github.io_attacks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.9
creationTimestamp: null
name: attacks.vegeta.kaidotdev.github.io
spec:
group: vegeta.kaidotdev.github.io
names:
kind: Attack
listKind: AttackList
plural: attacks
singular: attack
scope: Namespaced
versions:
- name: v1
schema:
openAPIV3Schema:
description: Attack is the schema for the attacks API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: AttackSpec defines the desired state of Attack
properties:
attackContainerSpec:
description: Additional Spec for attack container.
properties:
resources:
description: 'Compute Resources required by this container. More
info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
properties:
limits:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Limits describes the maximum amount of compute
resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
type: object
requests:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Requests describes the minimum amount of compute
resources required. If Requests is omitted for a container,
it defaults to Limits if that is explicitly specified, otherwise
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
type: object
type: object
type: object
option:
description: VegetaOption defines the vegeta options
properties:
connections:
description: 'Max open idle connections per target host (default
10000) More info: https://github.com/tsenart/vegeta#usage-manual'
minimum: 1
type: integer
duration:
default: 10s
description: 'Duration of the test [0 = forever] More info: https://github.com/tsenart/vegeta#usage-manual'
pattern: ^\d+s$
type: string
format:
description: 'Targets format [http, json] (default "http") More
info: https://github.com/tsenart/vegeta#usage-manual'
enum:
- http
- json
type: string
keepalive:
default: true
description: 'Use persistent connections (default true) More info:
https://github.com/tsenart/vegeta#usage-manual'
type: boolean
rate:
description: 'Number of requests per time unit [0 = infinity]
(default 50/1s) More info: https://github.com/tsenart/vegeta#usage-manual'
minimum: 1
type: integer
timeout:
description: 'Requests timeout (default 30s) More info: https://github.com/tsenart/vegeta#usage-manual'
pattern: ^\d+s$
type: string
workers:
description: 'Initial number of workers (default 10) More info:
https://github.com/tsenart/vegeta#usage-manual'
minimum: 1
type: integer
type: object
output:
default: text
enum:
- text
- json
type: string
parallelism:
default: 1
description: Parallelism of Attack
format: int32
minimum: 1
type: integer
scenario:
description: 'Scenario of Attack More info: https://github.com/tsenart/vegeta#http-format'
type: string
template:
description: Template defines the pod template generated by job
properties:
metadata:
description: 'Standard object''s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata'
type: object
x-kubernetes-preserve-unknown-fields: true
spec:
description: Spec defines the additional pod spec generated by
job
properties:
hostAliases:
description: HostAliases is an optional list of hosts and
IPs that will be injected into the pod's hosts file if specified.
This is only valid for non-hostNetwork pods.
items:
description: HostAlias holds the mapping between IP and
hostnames that will be injected as an entry in the pod's
hosts file.
properties:
hostnames:
description: Hostnames for the above IP address.
items:
type: string
type: array
ip:
description: IP address of the host file entry.
type: string
type: object
type: array
type: object
type: object
required:
- scenario
type: object
status:
description: AttackStatus defines the observed state of Attack
type: object
type: object
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []