A Kubernetes operator for deploying and managing APME on OpenShift, built with Operator SDK / Kubebuilder (Go).
The operator reconciles a namespaced Apme custom resource into the Simple all-in-one topology (Gateway and UI share the engine Deployment), with Postgres-only persistence — either a managed single-replica StatefulSet or an external connection Secret. Operands default to NetworkPolicies and restricted SCC–friendly pod specs.
| Included | Not in v1 |
|---|---|
Simple topology (status.topology: Simple) |
Split / Gateway-outside topology |
| Managed or external Postgres | Backup / Restore CRDs |
| OpenShift Routes (default) and optional Ingress | Multi-replica Simple deployments |
Requires kubectl (or oc) and a cluster. OpenShift is the primary target (Routes); Ingress works on vanilla Kubernetes.
Release images are multi-arch (linux/amd64 + linux/arm64). Prefer this path on any cluster architecture.
kubectl apply -f https://github.com/ansible/apme-operator/releases/latest/download/install.yaml
kubectl create namespace apme --dry-run=client -o yaml | kubectl apply -f -
kubectl apply -n apme -f https://raw.githubusercontent.com/ansible/apme-operator/main/config/samples/apme_v1alpha1_apme.yamlPin a version with …/releases/download/vX.Y.Z/install.yaml. See the user guide.
If you mirror the operator image to a private registry, copy the full multi-arch index (all platforms), not a single platform digest — an amd64-only retag CrashLoops on ARM nodes with exec format error.
make docker-build produces a single-arch image for the host (or PLATFORM). For ARM or mixed clusters, publish a multi-arch tag with docker-buildx instead:
export IMG=quay.io/$USER/apme-operator:dev
# Multi-arch (amd64 + arm64) — required when the cluster arch may differ from the build host:
make docker-buildx IMG=$IMG
make deploy IMG=$IMG
# Or single-arch (BuildKit) only when every node shares one arch,
# e.g. amd64 host building for an all-ARM single-arch cluster:
# make docker-build PLATFORM=linux/arm64 docker-push deploy IMG=$IMGkubectl create namespace apme --dry-run=client -o yaml | kubectl apply -f -
kubectl apply -n apme -f config/samples/apme_v1alpha1_apme.yamlOptionally set spec.exposure.route.host in the sample to a custom hostname (requires routes/custom-host on the operator SA, which the install manifests grant). Omit host to use the OpenShift default.
Check status:
kubectl get apme -n apme
kubectl get pods -n apmeCRDs only: make install. Tear down: delete the Apme CR (owned objects GC), then remove the install manifest or make undeploy / make uninstall.
| Doc | Contents |
|---|---|
| User guide | CR fields, database modes, exposure, samples |
| Development | Prerequisites, make targets, layout, tests |
| Contributing | PR workflow and quality gates |
| Security | Vulnerability reporting |
See CONTRIBUTING.md and the development guide.
We ask contributors to follow the Ansible code of conduct.
- Issues: github.com/ansible/apme-operator/issues
- Forum: forum.ansible.com
- APME product: github.com/ansible/apme