@@ -181,6 +181,103 @@ spec:
181181 deployed klusterlet agent. It will be ignored when the PriorityClass/v1 API
182182 is not available on the managed cluster.
183183 type : string
184+ proxyConfig :
185+ description : |-
186+ ProxyConfig holds the configuration for enabling klusterlet-proxy functionality,
187+ which allows the hub cluster to access the managed cluster's API server through
188+ a gRPC-based proxy tunnel established by the klusterlet agent.
189+
190+ When configured, the klusterlet agent establishes a gRPC connection to the hub's
191+ proxy server and proxies incoming HTTP requests to the local managed cluster API server.
192+ This enables hub-to-spoke API access even when the managed cluster is not directly
193+ accessible from the hub (e.g., behind a firewall or NAT).
194+
195+ This feature requires the ClusterProxy feature gate to be enabled and corresponding
196+ GRPCConfiguration to be set in the ClusterManager on the hub side.
197+ properties :
198+ authentications :
199+ description : |-
200+ Authentications defines how the agent authenticates with the cluster.
201+ By default it is `userToken`, but it could also be `impersonation` or both.
202+ items :
203+ type : string
204+ type : array
205+ grpcEndpoint :
206+ properties :
207+ grpc :
208+ description : grpc represents the configuration for grpc endpoint.
209+ properties :
210+ hostname :
211+ description : hostname points to a fixed hostname for serving
212+ agents' handshakes.
213+ properties :
214+ caBundle :
215+ description : caBundle of the endpoint.
216+ format : byte
217+ type : string
218+ host :
219+ description : host is the host name of the endpoint.
220+ type : string
221+ required :
222+ - host
223+ type : object
224+ type :
225+ default : hostname
226+ description : |-
227+ type specifies how the endpoint is exposed.
228+ You may need to apply an object to expose the endpoint, for example: a route.
229+ enum :
230+ - hostname
231+ type : string
232+ required :
233+ - type
234+ type : object
235+ https :
236+ description : https represents the configuration for https
237+ endpoint.
238+ properties :
239+ hostname :
240+ description : hostname points to a fixed hostname for serving
241+ agents' handshakes.
242+ properties :
243+ caBundle :
244+ description : caBundle of the endpoint.
245+ format : byte
246+ type : string
247+ host :
248+ description : host is the host name of the endpoint.
249+ type : string
250+ required :
251+ - host
252+ type : object
253+ type :
254+ default : hostname
255+ description : |-
256+ type specifies how the endpoint is exposed.
257+ You may need to apply an object to expose the endpoint, for example: a route.
258+ enum :
259+ - hostname
260+ type : string
261+ required :
262+ - type
263+ type : object
264+ protocol :
265+ default : grpc
266+ description : protocol is the protocol used for the endpoint,
267+ could be https or grpc.
268+ enum :
269+ - grpc
270+ - https
271+ type : string
272+ usage :
273+ description : |-
274+ usage defines the usage of the endpoint. It could be "agentToHub" indicating the endpoint is used
275+ for communication between agent and hub, or "consumer" indicating the endpoint is used for external consumer.
276+ type : string
277+ required :
278+ - protocol
279+ type : object
280+ type : object
184281 registrationConfiguration :
185282 description : RegistrationConfiguration contains the configuration
186283 of registration
0 commit comments