Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate configuration entries across configuration files (v6/k8s) for database access. #40

Open
hcadavid opened this issue Dec 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@hcadavid
Copy link
Collaborator

hcadavid commented Dec 5, 2024

Duplicated configurations and error-prone conventions were put in place to give the Job PODs access to the database files. This should be improved.

First, each database file path is duplicated on the vantage6 config file:

databases:
- label: default
uri: /home/hcadavid/k8s/v6-on-kubernetes-PoC/csv/employees.csv
type: csv

And on the node's volume path set on the node's YAML config file:

- name: v6-node-default-database
hostPath:
path: /home/hcadavid/k8s/v6-on-kubernetes-PoC/csv/employees.csv

Given that the mountPaths (on the POD/Container) also defined on the node's YAML file for these volumePaths are unknown by the v6-node, there is no way to inform the PODs which path they should use. As a provisional work-around, a convention was introduced: the mount path will always be /app/.databases/ followed by the same path on the host:

- name: v6-node-default-database
mountPath: /app/.databases/home/hcadavid/k8s/v6-on-kubernetes-PoC/csv/employees.csv

This may not require to be addressed if 'Sessions' in v6 remove the need for passing these values to the nodes.

@hcadavid hcadavid changed the title Duplicate configuration files for database access. Duplicate configuration entries across configuration files (v6/k8s) for database access. Dec 5, 2024
@hcadavid hcadavid added the enhancement New feature or request label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant