Repository navigation
Modernize Docker and cluster deployment for the gRPC samples - #1797
Merged
Merged
Conversation
Use native ARM64/AMD64 Temurin images with the generated non-root launcher. Trust the bundled development certificate explicitly so the HTTP controller can call the gRPC service in the packaged application, and document Docker startup. Enable native access explicitly for the packaged JVM because gRPC's Netty transport intentionally loads native libraries on Java 25.
Use current Deployment and Ingress APIs, generated image entrypoints, application Secrets, startup/readiness probes and Kustomize overlays. Bind HTTP and HTTPS to 0.0.0.0 so both Service traffic and kubectl port-forward can reach the samples. Set non-root security contexts, disable privilege escalation, drop Linux capabilities and use the runtime's default seccomp profile. Leave the UID unspecified in the manifests so OpenShift can assign it. Keep OpenShift hostname settings in an overlay-only deployment patch and document Minikube image loading and OpenShift registry setup.
Contributor
|
This pull request is merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Run both gRPC samples in Java 25 Temurin containers on Ubuntu 26.04, using sbt-native-packager's generated non-root launcher. This replaces the old Alpine/Bash workaround and explicitly trusts the existing bundled development certificate so the HTTP controller can call the gRPC service over TLS. Enable native access for the packaged JVM's Netty transport.
Update the Docker, Kubernetes and OpenShift guides together with their manifests:
0.0.0.0so Service traffic andkubectl port-forwardboth work.Validation
Both Java and Scala samples were checked locally on Linux ARM64:
1000770000:0, with capabilities dropped and privilege escalation disabled for the arbitrary-UID runs.After adding the native-access setting, rebuilt both images and repeated all four default/arbitrary-UID HTTP/HTTPS cases. The running JVM receives the option and the Netty native-access warning is gone; Guice's Unsafe warning remains visible.
Actual OpenShift deployment remains untested. Temporary clusters, containers, images and tooling were cleaned up; validation receipts and logs are retained locally.