...
1---
2apiVersion: apiextensions.k8s.io/v1
3kind: CustomResourceDefinition
4metadata:
5 name: servers.policy.linkerd.io
6 annotations:
7 {{ include "partials.annotations.created-by" . }}
8 labels:
9 helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
10 linkerd.io/control-plane-ns: {{.Release.Namespace}}
11spec:
12 group: policy.linkerd.io
13 names:
14 kind: Server
15 plural: servers
16 singular: server
17 shortNames: [srv]
18 scope: Namespaced
19 versions:
20 - name: v1alpha1
21 served: true
22 storage: false
23 deprecated: true
24 deprecationWarning: "policy.linkerd.io/v1alpha1 Server is deprecated; use policy.linkerd.io/v1beta1 Server"
25 schema:
26 openAPIV3Schema:
27 type: object
28 required: [spec]
29 properties:
30 spec:
31 type: object
32 required:
33 - podSelector
34 - port
35 properties:
36 podSelector:
37 type: object
38 description: >-
39 Selects pods in the same namespace.
40 oneOf:
41 - required: [matchExpressions]
42 - required: [matchLabels]
43 properties:
44 matchLabels:
45 type: object
46 x-kubernetes-preserve-unknown-fields: true
47 matchExpressions:
48 type: array
49 items:
50 type: object
51 required: [key, operator]
52 properties:
53 key:
54 type: string
55 operator:
56 type: string
57 enum: [In, NotIn, Exists, DoesNotExist]
58 values:
59 type: array
60 items:
61 type: string
62 port:
63 description: >-
64 A port name or number. Must exist in a pod spec.
65 x-kubernetes-int-or-string: true
66 proxyProtocol:
67 description: >-
68 Configures protocol discovery for inbound connections.
69
70 Supersedes the `config.linkerd.io/opaque-ports` annotation.
71 type: string
72 default: unknown
73 - name: v1beta1
74 served: true
75 storage: false
76 deprecated: true
77 deprecationWarning: "policy.linkerd.io/v1alpha1 Server is deprecated; use policy.linkerd.io/v1beta2 Server"
78 schema:
79 openAPIV3Schema:
80 type: object
81 required: [spec]
82 properties:
83 spec:
84 type: object
85 required:
86 - podSelector
87 - port
88 properties:
89 podSelector:
90 type: object
91 description: >-
92 Selects pods in the same namespace.
93
94 The result of matchLabels and matchExpressions are ANDed.
95 Selects all if empty.
96 properties:
97 matchLabels:
98 type: object
99 x-kubernetes-preserve-unknown-fields: true
100 matchExpressions:
101 type: array
102 items:
103 type: object
104 required: [key, operator]
105 properties:
106 key:
107 type: string
108 operator:
109 type: string
110 enum: [In, NotIn, Exists, DoesNotExist]
111 values:
112 type: array
113 items:
114 type: string
115 port:
116 description: >-
117 A port name or number. Must exist in a pod spec.
118 x-kubernetes-int-or-string: true
119 proxyProtocol:
120 description: >-
121 Configures protocol discovery for inbound connections.
122
123 Supersedes the `config.linkerd.io/opaque-ports` annotation.
124 type: string
125 default: unknown
126 additionalPrinterColumns:
127 - name: Port
128 type: string
129 description: The port the server is listening on
130 jsonPath: .spec.port
131 - name: Protocol
132 type: string
133 description: The protocol of the server
134 jsonPath: .spec.proxyProtocol
135 - name: v1beta2
136 served: true
137 storage: true
138 schema:
139 openAPIV3Schema:
140 type: object
141 required: [spec]
142 properties:
143 spec:
144 type: object
145 required:
146 - port
147 oneOf:
148 - required: [podSelector]
149 - required: [externalWorkloadSelector]
150 properties:
151 podSelector:
152 type: object
153 description: >-
154 Selects pods in the same namespace.
155
156 The result of matchLabels and matchExpressions are ANDed.
157 Selects all if empty.
158 properties:
159 matchLabels:
160 type: object
161 x-kubernetes-preserve-unknown-fields: true
162 matchExpressions:
163 type: array
164 items:
165 type: object
166 required: [key, operator]
167 properties:
168 key:
169 type: string
170 operator:
171 type: string
172 enum: [In, NotIn, Exists, DoesNotExist]
173 values:
174 type: array
175 items:
176 type: string
177 externalWorkloadSelector:
178 type: object
179 description: >-
180 Selects ExternalWorkloads in the same namespace.
181
182 The result of matchLabels and matchExpressions are ANDed.
183 Selects all if empty.
184 properties:
185 matchLabels:
186 type: object
187 x-kubernetes-preserve-unknown-fields: true
188 matchExpressions:
189 type: array
190 items:
191 type: object
192 required: [key, operator]
193 properties:
194 key:
195 type: string
196 operator:
197 type: string
198 enum: [In, NotIn, Exists, DoesNotExist]
199 values:
200 type: array
201 items:
202 type: string
203 port:
204 description: >-
205 A port name or number. Must exist in a pod spec.
206 x-kubernetes-int-or-string: true
207 proxyProtocol:
208 description: >-
209 Configures protocol discovery for inbound connections.
210
211 Supersedes the `config.linkerd.io/opaque-ports` annotation.
212 type: string
213 default: unknown
214 additionalPrinterColumns:
215 - name: Port
216 type: string
217 description: The port the server is listening on
218 jsonPath: .spec.port
219 - name: Protocol
220 type: string
221 description: The protocol of the server
222 jsonPath: .spec.proxyProtocol
View as plain text