The bundled Helm chart's web pod has no way to address the registry

Aperta Adatta ai principianti
#175 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
docker, helm, kubernetes, typescript

Direzione di ricerca

Inizia da deploy/kubernetes/helm/mpak/templates/web-deployment.yaml e values.yaml; confronta il nome del Service generato con l’URL del registro del pod web per un nome di release diverso da quello predefinito. Aggiungi l’URL dell’issue e aggiorna i valori obsoleti del contesto di sicurezza affinché corrispondano all’immagine Node eseguita come uid 1000. Verifica che il chart generato funzioni con un nome di release personalizzato e che il pod web possa raggiungere il proprio registro.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

deploy/kubernetes/helm/mpak/templates/web-deployment.yaml sets no env, and values.yaml has no web.env. The web pod's registry address therefore comes entirely from the image default, http://mpak-registry:3200.

That happens to be correct for helm install mpak …, the command in README.md, because mpak.fullname resolves to mpak and the Service is mpak-registry. Any other release name breaks it: helm install foo … renders foo-mpak-registry, the default still points at mpak-registry, and every server-rendered route 503s while /health stays green — it deliberately does not touch the registry, so the rollout looks healthy.

A self-hoster has no values knob to correct it.

Fix — derive the address from the template that names the Service:

env:
  - name: MPAK_API_URL
    value: http://{{ include "mpak.fullname" . }}-registry:{{ .Values.registry.service.port }}

That makes the chart correct for any release name and stops the image default being load-bearing for anyone, at which point the ENV line in apps/web/Dockerfile can go.

While in there: the same chart's web.podSecurityContext.runAsUser: 101 # nginx-unprivileged UID and readOnlyRootFilesystem: false # nginx needs to write tmp files describe a runtime that no longer exists — the web image has been a Node server running as USER node (uid 1000) since #164.

Found while reviewing #173.

Lingua principale
TypeScript
Stelle
14
Fork
13
Merge medio
16m
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NimbleBrainInc/mpak

Tutte le issue di NimbleBrainInc/mpak

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.