Appendix H: OpenShift Local
The outbox order-service, Strimzi and CloudNativePG on OpenShift Local: operators at pinned versions, an image built with buildah and copied with skopeo, an order that reaches Kafka through a verified Route, and a teardown that leaves nothing behind.
examples/ah-openshift-local/ installs two operators from OpenShift’s catalogs, builds the unchanged order-service image with buildah, copies it into the cluster’s registry with skopeo and deploys it by digest behind an edge-TLS Route. It accompanies Appendix H.
It is shell scripts and kustomize manifests, with no Java and no pom. The application is the outbox order-service, built from its own Containerfile. The Kafka and PostgreSQL manifests are the minikube ones with a different namespace.
cd examples/ah-openshift-local
./install.sh && ./build-and-copy.sh && ./deploy.sh
./verify.sh
./teardown.sh
What to observe
- Pinned operators. Each Subscription waits for an approval, and only the plan for the named version is approved.
- One digest. The image built on the host and the image in the cluster’s
ImageStreamhave the same manifest digest, and the Deployment references it. - Admission. Every running pod except the Connect build pod runs under
restricted-v2with a user from the project’s range, and a privileged Deployment is refused. - Verified TLS. The Route answers with a certificate checked against the cluster’s ingress CA, and no step turns verification off.
- A clean teardown. The inventory afterwards lists no namespace, CRD, ClusterRole, volume or image of the example.
Infrastructure
An OpenShift Local instance that is running, with the context crc-admin; oc, buildah, skopeo, podman, jq, curl and docker on the host (podman only for rmi, docker only for the stack guard). The cluster must have no other Strimzi or CloudNativePG install. No Docker Compose project and no minikube node may be running.