forked from cw-ozaki/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontainerstatus-v1.json
244 lines (244 loc) · 8.35 KB
/
containerstatus-v1.json
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
{
"description": "ContainerStatus contains details for the current status of this container.",
"required": [
"name",
"ready",
"restartCount",
"image",
"imageID"
],
"properties": {
"containerID": {
"description": "Container's ID in the format 'docker://<container_id>'.",
"type": [
"string",
"null"
]
},
"image": {
"description": "The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images",
"type": [
"string",
"null"
]
},
"imageID": {
"description": "ImageID of the container's image.",
"type": [
"string",
"null"
]
},
"lastState": {
"description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.",
"properties": {
"running": {
"description": "ContainerStateRunning is a running state of a container.",
"properties": {
"startedAt": {
"description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
"type": [
"string",
"null"
],
"format": "date-time"
}
},
"additionalProperties": false
},
"terminated": {
"description": "ContainerStateTerminated is a terminated state of a container.",
"required": [
"exitCode"
],
"properties": {
"containerID": {
"description": "Container's ID in the format 'docker://<container_id>'",
"type": [
"string",
"null"
]
},
"exitCode": {
"description": "Exit status from the last termination of the container",
"type": "integer",
"format": "int32"
},
"finishedAt": {
"description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"message": {
"description": "Message regarding the last termination of the container",
"type": [
"string",
"null"
]
},
"reason": {
"description": "(brief) reason from the last termination of the container",
"type": [
"string",
"null"
]
},
"signal": {
"description": "Signal from the last termination of the container",
"type": "integer",
"format": "int32"
},
"startedAt": {
"description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
"type": [
"string",
"null"
],
"format": "date-time"
}
},
"additionalProperties": false
},
"waiting": {
"description": "ContainerStateWaiting is a waiting state of a container.",
"properties": {
"message": {
"description": "Message regarding why the container is not yet running.",
"type": [
"string",
"null"
]
},
"reason": {
"description": "(brief) reason the container is not yet running.",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"name": {
"description": "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.",
"type": [
"string",
"null"
]
},
"ready": {
"description": "Specifies whether the container has passed its readiness probe.",
"type": "boolean"
},
"restartCount": {
"description": "The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC.",
"type": "integer",
"format": "int32"
},
"state": {
"description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.",
"properties": {
"running": {
"description": "ContainerStateRunning is a running state of a container.",
"properties": {
"startedAt": {
"description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
"type": [
"string",
"null"
],
"format": "date-time"
}
},
"additionalProperties": false
},
"terminated": {
"description": "ContainerStateTerminated is a terminated state of a container.",
"required": [
"exitCode"
],
"properties": {
"containerID": {
"description": "Container's ID in the format 'docker://<container_id>'",
"type": [
"string",
"null"
]
},
"exitCode": {
"description": "Exit status from the last termination of the container",
"type": "integer",
"format": "int32"
},
"finishedAt": {
"description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"message": {
"description": "Message regarding the last termination of the container",
"type": [
"string",
"null"
]
},
"reason": {
"description": "(brief) reason from the last termination of the container",
"type": [
"string",
"null"
]
},
"signal": {
"description": "Signal from the last termination of the container",
"type": "integer",
"format": "int32"
},
"startedAt": {
"description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
"type": [
"string",
"null"
],
"format": "date-time"
}
},
"additionalProperties": false
},
"waiting": {
"description": "ContainerStateWaiting is a waiting state of a container.",
"properties": {
"message": {
"description": "Message regarding why the container is not yet running.",
"type": [
"string",
"null"
]
},
"reason": {
"description": "(brief) reason the container is not yet running.",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/schema#",
"type": "object"
}