You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _guides/kubernetes-client.adoc
+121Lines changed: 121 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -435,6 +435,7 @@ subjects:
435
435
Replace `<applicationName>` and `<namespace>` with your values.
436
436
Have a look at https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/[Configure Service Accounts for Pods] to get further information.
437
437
438
+
[[openshift-client]]
438
439
== OpenShift Client
439
440
440
441
If the targeted Kubernetes cluster is an OpenShift cluster, it is possible to access it through
@@ -513,6 +514,126 @@ To use this feature, you have to add a dependency on `quarkus-test-kubernetes-cl
The Kubernetes and OpenShift client extensions aim to provide a great *developer experience* while enabling the client to work in *native mode*.
521
+
When building a native image, the Kubernetes Client extension will register all the accessible Kubernetes model classes for reflection.
522
+
Unfortunately, this can lead to large native image sizes and longer build times.
523
+
524
+
Once you've completed your application implementation, if you want to distribute and deploy your application as a *native image*, you should consider reducing its size by following these guidelines.
525
+
526
+
=== Use the Kubernetes Client extension
527
+
528
+
The <<openshift-client, OpenShift Client>> provides domain-specific language (DSL) accessors to common OpenShift resources.
529
+
In addition, the extension supplies the necessary project configuration to bring in the OpenShift model type modules.
530
+
531
+
In JVM mode, this works great because, as a developer, you don't need to worry about the configuration.
532
+
However, in native mode, by depending on the OpenShift extension you're bringing in many resources that your application might not need unnecessarily increasing its size.
533
+
534
+
In this context, it's better to depend only on what you need, by adding a dependency to the Kubernetes Client extension and only the minimum OpenShift model dependencies:
0 commit comments