-
Notifications
You must be signed in to change notification settings - Fork 6
/
definitions.schema.yaml
110 lines (110 loc) · 3.86 KB
/
definitions.schema.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
$schema: http://json-schema.org/draft-07/schema#
title: Common Chart Configuration Definitions
description: Common chart configuration definitions
definitions:
image:
description: Docker image configuration
type: object
additionalProperties: false
required:
- repository
- pullPolicy
anyOf:
- required:
- tag
- required:
- digest
properties:
repository:
description: Docker repository
type: string
minLength: 1
maxLength: 256
tag:
description: Docker image tag
type:
- string
- "null"
pattern: ^[0-9a-zA-Z._-]+$
minLength: 1
maxLength: 256
digest:
description: Docker image digest
type:
- string
- "null"
pattern: ^sha256:[0-9a-f]{64}$
minLength: 71
maxLength: 71
pullPolicy:
description: Pull policy of Docker image
type: string
enum:
- Always
- Never
- IfNotPresent
hpa:
description: Horizontal pod autoscaler configuration
type: object
additionalProperties: false
required:
- enabled
- minReplicas
- maxReplicas
- metrics
properties:
enabled:
description: Enable horizontal pod autoscaling
type: boolean
minReplicas:
description: Minimum number of replicas
type: integer
minimum: 1
maxReplicas:
description: Maximum number of replicas
type: integer
minimum: 1
metrics:
description: List of metrics to scale on
type: array
additionalItems: false
minItems: 0
uniqueItems: true
items:
$ref: "https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.12.8-standalone-strict/_definitions.json#/definitions/io.k8s.api.autoscaling.v2beta2.MetricSpec"
replicas:
description: Number of replicas set if the horizontal pod autoscaler is disabled or malfunctioning
type: integer
minimum: 1
resources:
description: Upper- and lower-bounded resource constraints of the containers
$ref: "https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.12.8-standalone-strict/_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements"
revisionHistoryLimit:
description: Number of old replica sets to store in case of the need to rollback
type: integer
minimum: 0
strategy:
description: Update strategy
$ref: "https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.12.8-standalone-strict/_definitions.json#/definitions/io.k8s.api.apps.v1.DeploymentStrategy"
affinity:
description: Pod affinity and anti-affinity definitions
$ref: "https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.12.8-standalone-strict/_definitions.json#/definitions/io.k8s.api.core.v1.Affinity"
probe:
description: Container's readiness and liveness probe definition
$ref: "https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.12.8-standalone-strict/_definitions.json#/definitions/io.k8s.api.core.v1.Probe"
env:
description: List of additional environment variables that may be specified in the container
type: array
additionalItems: false
minItems: 0
uniqueItems: true
items:
$ref: "https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.12.8-standalone-strict/_definitions.json#/definitions/io.k8s.api.core.v1.EnvVar"
tolerations:
description: Pod tolerations to node tains
type: array
additionalItems: false
minItems: 0
uniqueItems: true
items:
$ref: "https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.12.8-standalone-strict/_definitions.json#/definitions/io.k8s.api.core.v1.Toleration"