Skip to content

Deploying OpenECPDS on Kubernetes

If you have successfully built the OpenECPDS containers (see Installation) and enabled Kubernetes in Docker (see System Requirements), you can deploy OpenECPDS to a Kubernetes cluster.

Navigate to the directory where the Kubernetes Makefile is available:

cd deploy/kubernetes

Build and start the pods

To convert the deploy/kubernetes/docker-compose.yml file into Kubernetes YAML files in the k8s-configs directory and start the pods, run:

make build

Find the external ports

If successful, use the following command to get the port mappings needed to connect from outside the cluster:

make ports

If the default port for the monitoring interface has not been updated in the docker-compose.yml file, you can find the external port by checking the redirection for port 3443, for example:

3443 -> 32034/TCP

You can then use your browser to access the monitoring interface at:

https://127.0.0.1:32034

Export the full configuration

To get the YAML files for all pods, PVs, and PVCs (you can redirect the output to capture the full configuration), run:

make yaml

Tear down

To delete all Kubernetes resources and stop the pods:

make delete