forked from knative/operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path300-serving.yaml
238 lines (237 loc) · 9.61 KB
/
300-serving.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
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
# Copyright 2020 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: knativeservings.operator.knative.dev
labels:
operator.knative.dev/release: devel
spec:
additionalPrinterColumns:
- JSONPath: .status.version
name: Version
type: string
- JSONPath: .status.conditions[?(@.type=="Ready")].status
name: Ready
type: string
- JSONPath: ".status.conditions[?(@.type==\"Ready\")].reason"
name: Reason
type: string
group: operator.knative.dev
names:
kind: KnativeServing
listKind: KnativeServingList
plural: knativeservings
singular: knativeserving
preserveUnknownFields: false
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
type: object
description: Schema for the knativeservings 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/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/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: Spec defines the desired state of KnativeServing
properties:
version:
description: The version of Knative Serving to be installed
type: string
manifests:
description: A list of serving manifests, which will be installed by the operator
type: array
items:
type: object
properties:
URL:
description: The link of the manifest URL
type: string
config:
additionalProperties:
additionalProperties:
type: string
type: object
description: A means to override the corresponding entries in the upstream
configmaps
type: object
knative-ingress-gateway:
description: A means to override the knative-ingress-gateway
type: object
properties:
selector:
description: The selector for the ingress-gateway.
type: object
additionalProperties:
type: string
cluster-local-gateway:
description: A means to override the cluster-local-gateway
type: object
properties:
selector:
description: The selector for the ingress-gateway.
type: object
additionalProperties:
type: string
registry:
description: A means to override the corresponding deployment images in the upstream.
This affects both apps/v1.Deployment and caching.internal.knative.dev/v1alpha1.Image.
type: object
properties:
default:
description: The default image reference template to use for all knative images.
Takes the form of example-registry.io/custom/path/${NAME}:custom-tag
type: string
override:
description: A map of a container name or image name to the full image location of the individual knative image.
type: object
additionalProperties:
type: string
imagePullSecrets:
description: A list of secrets to be used when pulling the knative images. The secret must be created in the
same namespace as the knative-serving deployments, and not the namespace of this resource.
type: array
items:
type: object
properties:
name:
description: The name of the secret.
type: string
controller-custom-certs:
description: Enabling the controller to trust registries with self-signed certificates
type: object
properties:
type:
description: One of ConfigMap or Secret
type: string
enum:
- ConfigMap
- Secret
- ""
name:
description: The name of the ConfigMap or Secret
type: string
high-availability:
description: Allows specification of HA control plane
type: object
properties:
replicas:
description: The number of replicas that HA parts of the control plane will be scaled to
type: integer
minimum: 1
resources:
description: A mapping of deployment name to resource requirements
type: array
items:
type: object
properties:
container:
description: The name of the container
type: string
requests:
type: object
properties:
memory:
type: string
pattern: ^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$
cpu:
type: string
pattern: ^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$
storage:
type: string
pattern: ^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$
ephemeral-storage:
type: string
pattern: ^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$
limits:
type: object
properties:
memory:
type: string
pattern: ^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$
cpu:
type: string
pattern: ^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$
storage:
type: string
pattern: ^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$
ephemeral-storage:
type: string
pattern: ^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$
type: object
status:
description: Status defines the observed state of KnativeServing
properties:
observedGeneration:
description: The generation last processed by the controller
type: integer
conditions:
description: The latest available observations of a resource's current
state.
items:
properties:
lastTransitionTime:
description: LastTransitionTime is the last time the condition
transitioned from one status to another. We use VolatileTime
in place of metav1.Time to exclude this from creating equality.Semantic
differences (all other things held constant).
type: string
message:
description: A human readable message indicating details about
the transition.
type: string
reason:
description: The reason for the condition's last transition.
type: string
severity:
description: Severity with which to treat failures of this type
of condition. When this is not specified, it defaults to Error.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of condition.
type: string
required:
- type
- status
type: object
type: array
version:
description: The version of the installed release
type: string
manifests:
description: The list of serving manifests, which have been installed by the operator
type: array
items:
type: string
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true