This component needs an ELG authentication token, we can create it with the elg python client:
python3.11 -m venv .venv
source .venv/bin/activate
pip install elg
Then we run the following code:
from elg import Authentication
auth = Authentication.init(scope="offline_access")
auth.to_json("tokens.json")
This will create the authentification token that will be used by the ELG Connector Web Service.
We can now build the Docker image with:
docker build -t elg_connector_ws .
- Push the docker image to a container registry. You can use for example Github registry.
- Create a secret in the Kubernetes namespace where the ELG connector web service will be deployed.
- Check the kubernetes/elg-connector-ws.yaml file, and use the correct Docker image for the pod. Now you can deploy the ELG connector web service with:
kubectl apply -f kubernetes/elg-connector-ws.yaml