[Feature] Server image: map server.urls_to_pd and server.deploy_in_k8s from the environment, and stop editing conf files in place
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- docker, helm, java, kubernetes
- Ambito
- backend, databases, infrastructure
Direzione di ricerca
Start with hugegraph-server/hugegraph-dist/docker/docker-entrypoint.sh, especially the existing HG_SERVER_* mappings and set_prop_encoded; then inspect the Helm wrapper in helm/hugegraph/templates/server-deployment.yaml and the read-only filesystem constraint in _helpers.tpl. The work includes adding both environment mappings and rendering effective configuration without modifying the image's conf/; verify the chart can rely on the entrypoint rather than its wrapper. The issue notes this is not proposed for 1.8.0.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Feature Description (功能描述)
The Server image entrypoint maps a set of environment variables onto the conf files (docker-entrypoint.sh:161-172), but two keys a Server on PD needs in Kubernetes have no mapping:
server.urls_to_pd: the URL the Server registers with PDserver.deploy_in_k8s
The Helm chart therefore wraps the entrypoint and rewrites rest-server.properties itself before execing it (server-deployment.yaml:161-232).
The entrypoint also edits the conf files in place: set_prop_encoded runs sed -ri on the file under conf/ (docker-entrypoint.sh:65-66). The image's conf/ must be writable, so the chart refuses readOnlyRootFilesystem for Server (_helpers.tpl:838-839).
Proposal:
- Map
HG_SERVER_URLS_TO_PDtoserver.urls_to_pdandHG_SERVER_DEPLOY_IN_K8Stoserver.deploy_in_k8s, next to the existingHG_SERVER_*mappings. - Render the effective conf into a writable directory (a copy of
conf/under a data or temp path) and start the Server from it. The image's ownconf/is then never modified, andreadOnlyRootFilesystembecomes possible once #3211 (non-root image) also lands. #3253 makes the conf path overridable, which this step could build on.
With both, the chart can drop its wrapper. The TODO at docker-entrypoint.sh:156 (from #3260) points here.
Not proposed for 1.8.0: the chart's wrapper covers it.
- Lingua principale
- Java
- Stelle
- 3.2k
- Fork
- 640
- Merge medio
- 2g 9h
- PR unite (30g)
- 26
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/hugegraph
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
apache/hugegraph#3231 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] Prometheus metrics format bugForse di nuovo libera @cui2022 l’ha presa 58 giorni fa e non c’è nessuna pull request aperta. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
apache/hugegraph#3142 · 7 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[Feature] Let the Server take the initial admin password without a properties-file round tripAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug] Basic auth decodes the credential as ASCII and splits on every colon: a non-ASCII password answers 401, a password with ':' answers 400Forse già presa @arshilkxwork l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 35/100
apache/hugegraph#3284 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di apache/hugegraph
Issue simili
-
status: team-only type: dependency-upgrade
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
spring-projects/spring-boot#52099 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
tchiotludo/akhq#3307 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
status: waiting-for-triage type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
spring-projects/spring-security#19847 ·
I maintainer di solito rispondono entro 1 giorno
-
architecture
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
DiegoMicali/MovieFlix#16 ·
-
Bug Unverified
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
cgeo/cgeo#18734 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno