This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
forked from TJCSec/klodd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ddolk-crd.yaml
109 lines (109 loc) · 4.29 KB
/
ddolk-crd.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
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: challenges.ddolk.4ts.fr
spec:
group: ddolk.4ts.fr
names:
kind: Challenge
listKind: ChallengeList
plural: challenges
singular: challenge
scope: Namespaced
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
description: >-
Challenge defines a per-team instanced challenge.
properties:
spec:
type: object
properties:
name:
type: string
description: >-
Name is the name displayed on the frontend.
timeout:
type: integer
description: >-
Timeout is the time, in milliseconds, before each instance is automatically stopped.
pods:
type: array
description: >-
Pods defines the pods that will run.
minItems: 1
items:
type: object
properties:
name:
type: string
description: >-
Name is a unique name for this pod. It is also the pod's hostname. Note that,
because pods are created using Deployments, the actual pod name will differ
from this value.
ports:
type: array
description: >-
Ports is an array of ports on this pod that will be accessible from other pods.
This is used to create services. It must include the exposed port.
minItems: 1
items:
type: object
properties:
port:
type: integer
description: >-
Port is the port number. It must be a valid port number (1-65535, inclusive).
minimum: 1
maximum: 65535
protocol:
type: string
enum: [TCP, UDP, SCTP]
description: >-
Protocol is the IP protocol for this port. Defaults to TCP.
required:
- port
egress:
type: boolean
description: >-
Egress controls whether or not this pod can access
the internet. Defaults to false.
spec:
type: object
description: >-
Spec is the PodSpec that will be used to create the pod.
x-kubernetes-preserve-unknown-fields: true
required: [name, ports, spec]
expose:
type: object
description: >-
Expose defines which pod competitors can access.
properties:
kind:
type: string
enum: [tcp, http]
pod:
type: string
description: >-
Pod is the name of the pod that will be exposed.
port:
type: integer
minimum: 1
maximum: 65535
description: >-
Port is the port that will be exposed. It must be a
valid port number (1-65535, inclusive).
required: [kind, pod, port]
middlewares:
type: array
description: >-
Middlewares defines additional middlewares to be added to each instance.
items:
type: object
x-kubernetes-preserve-unknown-fields: true
required: [name, timeout, pods, expose]
required: [spec]