Kubernetes is running the RPC server as a statefulSet
which is pulled from a
container image on a registry. This means that (local) changes to the RPC
server are not reflected on the RPC server when running in Kubernetes,
unless you also push an updated image to a registry and update the
Kubernetes config files.
To help with this a helper script is provided: build-k8s-rpc.sh.
This script can be run in the following way:
DOCKER_REGISTRY=bitcoindevproject/warnet-rpc TAG=0.1 ./scripts/build-k8s-rpc.sh Dockerfile_rpc
You can optionally specify LATEST=1
to also include the latest
tag on docker hub.
Once a new image has been pushed, it should be referenced in warnet-rpc-statefulset.yaml in the image
field.