- Shell 93.1%
- Dockerfile 6.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| .gitignore | ||
| Dockerfile | ||
| entrypoint.sh | ||
| LICENSE | ||
| README.md | ||
om3 relay
An OpenSVC agent configured as a heartbeat relay, in a container.
A relay is usually deployed on a third site. A two-nodes OpenSVC cluster stretched over 2 datacenters, configured to use a 3rd site relay, avoids the split brain situation when the communication between the nodes is broken, as the relay heartbeat is still operational. A relay can serve several clusters.
Image
The image is built by the forge workflow and served by the package registry of the forge:
docker pull forge.opensvc.com/opensvc/relay3:latest
latestis the image of the last commit ofmain.<version>, as3.0.0-rc48, is the image of a tag, or of a commit ofmain, the versiongit describesays.
The om binary is the one of the ghcr.io/opensvc/om image of the release
the OM_IMAGE argument of the Dockerfile names.
Configuration
The relay configures itself from /config at its first start:
users/<name>: the password of a user allowed to send heartbeats to the relay. The relay follows the changes of this directory while it runs: a user added, a password changed or a user removed applies within seconds, with no restart.ssl/<key>: the keys of the certificate of the relay listener, asprivate_keyandcertificate_chain. Unset, the relay makes its own.cluster/<keyword>: a cluster keyword of the relay agent, aslistener.port.
The relay-v3 template
deploys the relay as an OpenSVC service, /config installed from a sec.
Build
Clone this repository, then run the following command in the project directory:
docker buildx build -t relay3 .
Signing
The images of the forge registry are not signed: the keyless signing of Cosign rests on the OIDC identity of the CI, which Forgejo Actions does not provide.
The images previously published to ghcr.io/opensvc/relay3 by the GitHub
workflow are signed with Cosign, using
the keyless signing of Sigstore via GitHub Actions OIDC. To verify one:
cosign verify \
--certificate-oidc-issuer=https://token.actions.githubusercontent.com \
--certificate-identity-regexp='^https://github.com/opensvc/docker_osvc_relay_v3/.github/workflows/docker-publish.yml@' \
ghcr.io/opensvc/relay3:TAG
Replace TAG with the version (e.g., 3.0.0-rc1).