Skip to content

About

An operator for installing APME

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

APME Operator

License Tests Code of Conduct

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.

Scope (v1)

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

Quick start

Requires kubectl (or oc) and a cluster. OpenShift is the primary target (Routes); Ingress works on vanilla Kubernetes.

Install from a release (preferred)

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.yaml

Pin 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.

Build and deploy from source

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=$IMG
kubectl create namespace apme --dry-run=client -o yaml | kubectl apply -f -
kubectl apply -n apme -f config/samples/apme_v1alpha1_apme.yaml

Optionally 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 apme

CRDs only: make install. Tear down: delete the Apme CR (owned objects GC), then remove the install manifest or make undeploy / make uninstall.

Documentation

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

Contributing

See CONTRIBUTING.md and the development guide.

We ask contributors to follow the Ansible code of conduct.

Get help

About

An operator for installing APME

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages