-
Notifications
You must be signed in to change notification settings - Fork 16
/
swagger-v1alpha1.yml
12948 lines (12831 loc) · 476 KB
/
swagger-v1alpha1.yml
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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
basePath: /seldon-deploy/api/v1alpha1
consumes:
- application/json
definitions:
AWSElasticBlockStoreVolumeSource:
description: |-
An AWS EBS disk must exist before mounting to a container. The disk
must also be in the same AWS zone as the kubelet. An AWS EBS disk
can only be mounted as read/write once. AWS EBS volumes support
ownership management and SELinux relabeling.
properties:
fsType:
description: |-
fsType is the filesystem type of the volume that you want to mount.
Tip: Ensure that the filesystem type is supported by the host operating system.
Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
TODO: how do we prevent errors in the filesystem from compromising the machine
+optional
type: string
partition:
description: |-
partition is the partition in the volume that you want to mount.
If omitted, the default is to mount by volume name.
Examples: For volume /dev/sda1, you specify the partition as "1".
Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
+optional
format: int32
type: integer
readOnly:
description: |-
readOnly value true will force the readOnly setting in VolumeMounts.
More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
+optional
type: boolean
volumeID:
description: |-
volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume).
More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
type: string
title: Represents a Persistent Disk resource in AWS.
type: object
AdvancedConfig:
description: AdvancedConfig specifies advance scaling options
properties:
horizontalPodAutoscalerConfig:
$ref: '#/definitions/HorizontalPodAutoscalerConfig'
restoreToOriginalReplicaCount:
description: +optional
type: boolean
type: object
Affinity:
properties:
nodeAffinity:
$ref: '#/definitions/NodeAffinity'
podAffinity:
$ref: '#/definitions/PodAffinity'
podAntiAffinity:
$ref: '#/definitions/PodAntiAffinity'
title: Affinity is a group of affinity scheduling rules.
type: object
AlibiExplainerType:
type: string
ApplicationLog:
description: |-
ApplicationLog represents the message and timestamp of a single
application log entry.
properties:
message:
type: string
timestamp:
format: date-time
type: string
type: object
ApplicationLogsParams:
description: |-
ApplicationLogsParams describes a set of parameters that can be
used to build a search query for an application's logs.
In most cases, only ContainerId, From, and Size are required in
order to create a search query.
properties:
container_id:
type: string
container_name:
type: string
deployment_namespace:
type: string
from:
format: int64
type: integer
pod_name:
type: string
size:
format: int64
type: integer
type: object
ApplicationLogsResponse:
description: |-
ApplicationLogsResponse represents the collection of application logs
and their total size after being parsed from their raw forms
e.g. from json strings or map[string]any types.
properties:
logs:
items:
$ref: '#/definitions/ApplicationLog'
type: array
total:
format: int64
type: integer
type: object
AuditLog:
properties:
AuthorName:
type: string
AuthorWhen:
format: date-time
type: string
CommitterName:
type: string
CommitterWhen:
format: date-time
type: string
Hash:
type: string
type: object
AzureDataDiskCachingMode:
description: +enum
type: string
AzureDataDiskKind:
description: +enum
type: string
AzureDiskVolumeSource:
properties:
cachingMode:
$ref: '#/definitions/AzureDataDiskCachingMode'
diskName:
description: diskName is the Name of the data disk in the blob storage
type: string
diskURI:
description: diskURI is the URI of data disk in the blob storage
type: string
fsType:
description: |-
fsType is Filesystem type to mount.
Must be a filesystem type supported by the host operating system.
Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+optional
type: string
kind:
$ref: '#/definitions/AzureDataDiskKind'
readOnly:
description: |-
readOnly Defaults to false (read/write). ReadOnly here will force
the ReadOnly setting in VolumeMounts.
+optional
type: boolean
title: AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
type: object
AzureFileVolumeSource:
properties:
readOnly:
description: |-
readOnly defaults to false (read/write). ReadOnly here will force
the ReadOnly setting in VolumeMounts.
+optional
type: boolean
secretName:
description: secretName is the name of secret that contains Azure Storage Account Name and Key
type: string
shareName:
description: shareName is the azure share Name
type: string
title: AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
type: object
BasicDetectorConfiguration:
properties:
drift_batch_size:
type: string
drift_type_feature:
type: boolean
env_secret_ref:
type: string
project:
type: string
storage_uri:
type: string
type: object
BatchJobDefinition:
description: BatchJobDefinition is a common interface for BatchJob v1 and v2 which specifies necessary arguments
properties:
batchDataType:
description: Batch Data Type (data, json or str)
type: string
batchInterval:
description: Interval between batches
format: double
type: number
batchMethod:
description: Batch Method (predict, feedback (for SCv1))
type: string
batchPayloadType:
description: Batch Payload Type (ndarray, tensor, tftensor, v2raw, v2binary - only if DataType=data)
type: string
batchRetries:
description: Number of retries for each instance
format: int64
type: integer
batchSize:
description: Size of the batch (number of predictions per request)
format: int64
type: integer
batchTransportProtocol:
description: Batch Transport Protocol (rest or grpc)
type: string
batchWorkers:
description: Number of batch workers
format: int64
type: integer
inputData:
description: S3 URI of input data file
type: string
limitsCpu:
description: 'Container Resources for running batch jobs: limits: CPU'
type: string
limitsMemory:
description: 'Container Resources for running batch jobs: limits: Memory'
type: string
objectStoreSecretName:
description: name of Kubernetes Secret with S3 credentials
type: string
outputData:
description: S3 URI of output data file
type: string
pvcSize:
description: Size of PVC required for the batch job
type: string
requestsCpu:
description: 'Container Resources for running batch jobs: requests: CPU'
type: string
requestsMemory:
description: 'Container Resources for running batch jobs: requests: Memory'
type: string
type: object
BatchJobDescription:
description: BatchJobDescription describes the workflow of the batch job
properties:
FinishedAt:
description: Time when job finished
type: string
StartedAt:
description: Time when job started
type: string
workflowName:
description: Name of related Argo Workflow
type: string
workflowStatus:
$ref: '#/definitions/WorkflowPhase'
workflowUID:
$ref: '#/definitions/UID'
type: object
BatchJobDescriptionList:
description: BatchJobDescriptionList is a list of BatchJobDescription
items:
$ref: '#/definitions/BatchJobDescription'
type: array
BatchJobGetResponse:
description: |-
BatchJobGetResponse represents the full description and definition of a
retrieved batch job
properties:
Definition:
$ref: '#/definitions/BatchJobDefinition'
Description:
$ref: '#/definitions/BatchJobDescription'
type: object
BatchJobPostResponse:
description: |-
BatchJobPostResponse represents the name and uid of the batch job
created after a post request
properties:
workflowName:
description: |-
Name of created Argo Workflow
in: body
type: string
workflowUID:
$ref: '#/definitions/UID'
type: object
BatchJobsListResponse:
description: |-
BatchJobsListResponse represents the list of batch descriptions and their
limit, page, and page counts.
properties:
batchJobs:
$ref: '#/definitions/BatchJobDescriptionList'
limit:
description: |-
Limit of the request
in: body
format: int64
type: integer
page:
description: |-
Returned Page (counting from 0)
in: body
format: int64
type: integer
pagesCount:
description: |-
Number of available pages (Page = 0, ..., PagesCount - 1)
in: body
format: int64
type: integer
type: object
CSIVolumeSource:
description: Represents a source location of a volume to mount, managed by an external CSI driver
properties:
driver:
description: |-
driver is the name of the CSI driver that handles this volume.
Consult with your admin for the correct name as registered in the cluster.
type: string
fsType:
description: |-
fsType to mount. Ex. "ext4", "xfs", "ntfs".
If not provided, the empty value is passed to the associated CSI driver
which will determine the default filesystem to apply.
+optional
type: string
nodePublishSecretRef:
$ref: '#/definitions/LocalObjectReference'
readOnly:
description: |-
readOnly specifies a read-only configuration for the volume.
Defaults to false (read/write).
+optional
type: boolean
volumeAttributes:
additionalProperties:
type: string
description: |-
volumeAttributes stores driver-specific properties that are passed to the CSI
driver. Consult your driver's documentation for supported values.
+optional
type: object
type: object
Capabilities:
properties:
add:
description: |-
Added capabilities
+optional
items:
$ref: '#/definitions/Capability'
type: array
drop:
description: |-
Removed capabilities
+optional
items:
$ref: '#/definitions/Capability'
type: array
title: Adds and removes POSIX capabilities from running containers.
type: object
Capability:
description: Capability represent POSIX capabilities type
type: string
CephFSVolumeSource:
description: |-
Represents a Ceph Filesystem mount that lasts the lifetime of a pod
Cephfs volumes do not support ownership management or SELinux relabeling.
properties:
monitors:
description: |-
monitors is Required: Monitors is a collection of Ceph monitors
More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
items:
type: string
type: array
path:
description: |-
path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
+optional
type: string
readOnly:
description: |-
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
the ReadOnly setting in VolumeMounts.
More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
+optional
type: boolean
secretFile:
description: |-
secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
+optional
type: string
secretRef:
$ref: '#/definitions/LocalObjectReference'
user:
description: |-
user is optional: User is the rados user name, default is admin
More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
+optional
type: string
type: object
CinderVolumeSource:
description: |-
A Cinder volume must exist before mounting to a container.
The volume must also be in the same region as the kubelet.
Cinder volumes support ownership management and SELinux relabeling.
properties:
fsType:
description: |-
fsType is the filesystem type to mount.
Must be a filesystem type supported by the host operating system.
Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
More info: https://examples.k8s.io/mysql-cinder-pd/README.md
+optional
type: string
readOnly:
description: |-
readOnly defaults to false (read/write). ReadOnly here will force
the ReadOnly setting in VolumeMounts.
More info: https://examples.k8s.io/mysql-cinder-pd/README.md
+optional
type: boolean
secretRef:
$ref: '#/definitions/LocalObjectReference'
volumeID:
description: |-
volumeID used to identify the volume in cinder.
More info: https://examples.k8s.io/mysql-cinder-pd/README.md
type: string
title: Represents a cinder volume resource in Openstack.
type: object
ClaimSource:
description: |-
Exactly one of these fields should be set. Consumers of this type must
treat an empty object as if it has an unknown value.
properties:
resourceClaimName:
description: |-
ResourceClaimName is the name of a ResourceClaim object in the same
namespace as this pod.
type: string
resourceClaimTemplateName:
description: |-
ResourceClaimTemplateName is the name of a ResourceClaimTemplate
object in the same namespace as this pod.
The template will be used to create a new ResourceClaim, which will
be bound to this pod. When this pod is deleted, the ResourceClaim
will also be deleted. The pod name and resource name, along with a
generated component, will be used to form a unique name for the
ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
This field is immutable and no changes will be made to the
corresponding ResourceClaim by the control plane after creating the
ResourceClaim.
type: string
title: ClaimSource describes a reference to a ResourceClaim.
type: object
ClientIPConfig:
properties:
timeoutSeconds:
description: |-
timeoutSeconds specifies the seconds of ClientIP type session sticky time.
The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP".
Default value is 10800(for 3 hours).
+optional
format: int32
type: integer
title: ClientIPConfig represents the configurations of Client IP based session affinity.
type: object
ClusterInfo:
properties:
Namespaces:
items:
$ref: '#/definitions/Namespace'
type: array
type: object
ClusterTrustBundleProjection:
description: |-
ClusterTrustBundleProjection describes how to select a set of
ClusterTrustBundle objects and project their contents into the pod
filesystem.
properties:
labelSelector:
$ref: '#/definitions/LabelSelector'
name:
description: |-
Select a single ClusterTrustBundle by object name. Mutually-exclusive
with signerName and labelSelector.
+optional
type: string
optional:
description: |-
If true, don't block pod startup if the referenced ClusterTrustBundle(s)
aren't available. If using name, then the named ClusterTrustBundle is
allowed not to exist. If using signerName, then the combination of
signerName and labelSelector is allowed to match zero
ClusterTrustBundles.
+optional
type: boolean
path:
description: Relative path from the volume root to write the bundle.
type: string
signerName:
description: |-
Select all ClusterTrustBundles that match this signer name.
Mutually-exclusive with name. The contents of all selected
ClusterTrustBundles will be unified and deduplicated.
+optional
type: string
type: object
Component:
properties:
component:
type: string
deployments:
$ref: '#/definitions/DeploymentList'
pods:
$ref: '#/definitions/PodList'
services:
$ref: '#/definitions/ServiceList'
type: object
ConditionStatus:
type: string
Conditions:
$ref: '#/definitions/Conditions'
title: Conditions is a simple wrapper around apis.Conditions to implement duck.Implementable.
ConfigMapEnvSource:
description: |-
The contents of the target ConfigMap's Data field will represent the
key-value pairs as environment variables.
properties:
name:
description: |-
Name of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?
+optional
type: string
optional:
description: |-
Specify whether the ConfigMap must be defined
+optional
type: boolean
title: |-
ConfigMapEnvSource selects a ConfigMap to populate the environment
variables with.
type: object
ConfigMapKeySelector:
description: +structType=atomic
properties:
key:
description: The key to select.
type: string
name:
description: |-
Name of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?
+optional
type: string
optional:
description: |-
Specify whether the ConfigMap or its key must be defined
+optional
type: boolean
title: Selects a key from a ConfigMap.
type: object
ConfigMapProjection:
description: |-
The contents of the target ConfigMap's Data field will be presented in a
projected volume as files using the keys in the Data field as the file names,
unless the items element is populated with specific mappings of keys to paths.
Note that this is identical to a configmap volume source without the default
mode.
properties:
items:
description: |-
items if unspecified, each key-value pair in the Data field of the referenced
ConfigMap will be projected into the volume as a file whose name is the
key and content is the value. If specified, the listed keys will be
projected into the specified paths, and unlisted keys will not be
present. If a key is specified which is not present in the ConfigMap,
the volume setup will error unless it is marked optional. Paths must be
relative and may not contain the '..' path or start with '..'.
+optional
items:
$ref: '#/definitions/KeyToPath'
type: array
name:
description: |-
Name of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?
+optional
type: string
optional:
description: |-
optional specify whether the ConfigMap or its keys must be defined
+optional
type: boolean
title: Adapts a ConfigMap into a projected volume.
type: object
ConfigMapVolumeSource:
description: |-
The contents of the target ConfigMap's Data field will be presented in a
volume as files using the keys in the Data field as the file names, unless
the items element is populated with specific mappings of keys to paths.
ConfigMap volumes support ownership management and SELinux relabeling.
properties:
defaultMode:
description: |-
defaultMode is optional: mode bits used to set permissions on created files by default.
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
Defaults to 0644.
Directories within the path are not affected by this setting.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set.
+optional
format: int32
type: integer
items:
description: |-
items if unspecified, each key-value pair in the Data field of the referenced
ConfigMap will be projected into the volume as a file whose name is the
key and content is the value. If specified, the listed keys will be
projected into the specified paths, and unlisted keys will not be
present. If a key is specified which is not present in the ConfigMap,
the volume setup will error unless it is marked optional. Paths must be
relative and may not contain the '..' path or start with '..'.
+optional
items:
$ref: '#/definitions/KeyToPath'
type: array
name:
description: |-
Name of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?
+optional
type: string
optional:
description: |-
optional specify whether the ConfigMap or its keys must be defined
+optional
type: boolean
title: Adapts a ConfigMap into a volume.
type: object
Container:
properties:
args:
description: |-
Arguments to the entrypoint.
The container image's CMD is used if this is not provided.
Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
of whether the variable exists or not. Cannot be updated.
More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
+optional
items:
type: string
type: array
command:
description: |-
Entrypoint array. Not executed within a shell.
The container image's ENTRYPOINT is used if this is not provided.
Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
of whether the variable exists or not. Cannot be updated.
More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
+optional
items:
type: string
type: array
env:
description: |-
List of environment variables to set in the container.
Cannot be updated.
+optional
+patchMergeKey=name
+patchStrategy=merge
items:
$ref: '#/definitions/EnvVar'
type: array
envFrom:
description: |-
List of sources to populate environment variables in the container.
The keys defined within a source must be a C_IDENTIFIER. All invalid keys
will be reported as an event when the container is starting. When a key exists in multiple
sources, the value associated with the last source will take precedence.
Values defined by an Env with a duplicate key will take precedence.
Cannot be updated.
+optional
items:
$ref: '#/definitions/EnvFromSource'
type: array
image:
description: |-
Container image name.
More info: https://kubernetes.io/docs/concepts/containers/images
This field is optional to allow higher level config management to default or override
container images in workload controllers like Deployments and StatefulSets.
+optional
type: string
imagePullPolicy:
$ref: '#/definitions/PullPolicy'
lifecycle:
$ref: '#/definitions/Lifecycle'
livenessProbe:
$ref: '#/definitions/Probe'
name:
description: |-
Name of the container specified as a DNS_LABEL.
Each container in a pod must have a unique name (DNS_LABEL).
Cannot be updated.
type: string
ports:
description: |-
List of ports to expose from the container. Not specifying a port here
DOES NOT prevent that port from being exposed. Any port which is
listening on the default "0.0.0.0" address inside a container will be
accessible from the network.
Modifying this array with strategic merge patch may corrupt the data.
For more information See https://github.com/kubernetes/kubernetes/issues/108255.
Cannot be updated.
+optional
+patchMergeKey=containerPort
+patchStrategy=merge
+listType=map
+listMapKey=containerPort
+listMapKey=protocol
items:
$ref: '#/definitions/ContainerPort'
type: array
readinessProbe:
$ref: '#/definitions/Probe'
resizePolicy:
description: |-
Resources resize policy for the container.
+featureGate=InPlacePodVerticalScaling
+optional
+listType=atomic
items:
$ref: '#/definitions/ContainerResizePolicy'
type: array
resources:
$ref: '#/definitions/ResourceRequirements'
restartPolicy:
$ref: '#/definitions/ContainerRestartPolicy'
securityContext:
$ref: '#/definitions/SecurityContext'
startupProbe:
$ref: '#/definitions/Probe'
stdin:
description: |-
Whether this container should allocate a buffer for stdin in the container runtime. If this
is not set, reads from stdin in the container will always result in EOF.
Default is false.
+optional
type: boolean
stdinOnce:
description: |-
Whether the container runtime should close the stdin channel after it has been opened by
a single attach. When stdin is true the stdin stream will remain open across multiple attach
sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
first client attaches to stdin, and then remains open and accepts data until the client disconnects,
at which time stdin is closed and remains closed until the container is restarted. If this
flag is false, a container processes that reads from stdin will never receive an EOF.
Default is false
+optional
type: boolean
terminationMessagePath:
description: |-
Optional: Path at which the file to which the container's termination message
will be written is mounted into the container's filesystem.
Message written is intended to be brief final status, such as an assertion failure message.
Will be truncated by the node if greater than 4096 bytes. The total message length across
all containers will be limited to 12kb.
Defaults to /dev/termination-log.
Cannot be updated.
+optional
type: string
terminationMessagePolicy:
$ref: '#/definitions/TerminationMessagePolicy'
tty:
description: |-
Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
Default is false.
+optional
type: boolean
volumeDevices:
description: |-
volumeDevices is the list of block devices to be used by the container.
+patchMergeKey=devicePath
+patchStrategy=merge
+optional
items:
$ref: '#/definitions/VolumeDevice'
type: array
volumeMounts:
description: |-
Pod volumes to mount into the container's filesystem.
Cannot be updated.
+optional
+patchMergeKey=mountPath
+patchStrategy=merge
items:
$ref: '#/definitions/VolumeMount'
type: array
workingDir:
description: |-
Container's working directory.
If not specified, the container runtime's default will be used, which
might be configured in the container image.
Cannot be updated.
+optional
type: string
title: A single application container that you want to run within a pod.
type: object
ContainerPort:
properties:
containerPort:
description: |-
Number of port to expose on the pod's IP address.
This must be a valid port number, 0 < x < 65536.
format: int32
type: integer
hostIP:
description: |-
What host IP to bind the external port to.
+optional
type: string
hostPort:
description: |-
Number of port to expose on the host.
If specified, this must be a valid port number, 0 < x < 65536.
If HostNetwork is specified, this must match ContainerPort.
Most containers do not need this.
+optional
format: int32
type: integer
name:
description: |-
If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
named port in a pod must have a unique name. Name for the port that can be
referred to by services.
+optional
type: string
protocol:
$ref: '#/definitions/Protocol'
title: ContainerPort represents a network port in a single container.
type: object
ContainerResizePolicy:
properties:
resourceName:
$ref: '#/definitions/ResourceName'
restartPolicy:
$ref: '#/definitions/ResourceResizeRestartPolicy'
title: ContainerResizePolicy represents resource resize policy for the container.
type: object
ContainerResourceMetricSource:
description: |-
ContainerResourceMetricSource indicates how to scale on a resource metric known to
Kubernetes, as specified in requests and limits, describing each pod in the
current scale target (e.g. CPU or memory). The values will be averaged
together before being compared to the target. Such metrics are built in to
Kubernetes, and have special scaling options on top of those available to
normal per-pod metrics using the "pods" source. Only one "target" type
should be set.
properties:
container:
description: container is the name of the container in the pods of the scaling target
type: string
name:
$ref: '#/definitions/ResourceName'
target:
$ref: '#/definitions/MetricTarget'
type: object
ContainerRestartPolicy:
description: This may only be set for init containers and only allowed value is "Always".
title: ContainerRestartPolicy is the restart policy for a single container.
type: string
ContainerState:
description: |-
Only one of its members may be specified.
If none of them is specified, the default one is ContainerStateWaiting.
properties:
running:
$ref: '#/definitions/ContainerStateRunning'
terminated:
$ref: '#/definitions/ContainerStateTerminated'
waiting:
$ref: '#/definitions/ContainerStateWaiting'
title: ContainerState holds a possible state of container.
type: object
ContainerStateRunning:
properties:
startedAt:
description: |-
Time at which the container was last (re-)started
+optional
type: string
title: ContainerStateRunning is a running state of a container.
type: object
ContainerStateTerminated:
properties:
containerID:
description: |-
Container's ID in the format '<type>://<container_id>'
+optional
type: string
exitCode:
description: Exit status from the last termination of the container
format: int32
type: integer
finishedAt:
description: |-
Time at which the container last terminated
+optional
type: string
message:
description: |-
Message regarding the last termination of the container
+optional
type: string
reason:
description: |-
(brief) reason from the last termination of the container
+optional
type: string
signal:
description: |-
Signal from the last termination of the container
+optional
format: int32
type: integer
startedAt:
description: |-
Time at which previous execution of the container started
+optional
type: string
title: ContainerStateTerminated is a terminated state of a container.
type: object
ContainerStateWaiting:
properties:
message:
description: |-
Message regarding why the container is not yet running.
+optional
type: string
reason:
description: |-
(brief) reason the container is not yet running.
+optional
type: string
title: ContainerStateWaiting is a waiting state of a container.
type: object
ContainerStatus:
properties:
allocatedResources:
$ref: '#/definitions/ResourceList'
containerID:
description: |-
ContainerID is the ID of the container in the format '<type>://<container_id>'.
Where type is a container runtime identifier, returned from Version call of CRI API
(for example "containerd").
+optional
type: string
image:
description: |-
Image is the name of container image that the container is running.
The container image may not match the image used in the PodSpec,
as it may have been resolved by the runtime.
More info: https://kubernetes.io/docs/concepts/containers/images.
type: string
imageID:
description: |-
ImageID is the image ID of the container's image. The image ID may not
match the image ID of the image used in the PodSpec, as it may have been
resolved by the runtime.
type: string
lastState:
$ref: '#/definitions/ContainerState'
name:
description: |-
Name is a DNS_LABEL representing the unique name of the container.
Each container in a pod must have a unique name across all container types.
Cannot be updated.
type: string
ready: