mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-08 07:44:42 +02:00
fix(stt): imagePullSecret ghcr-pull pour l'image privée ghcr (#5)
* fix(stt): imagePullSecret ghcr-pull pour l'image privée Le Deployment référence un secret de pull ghcr-pull (ns ai) — image ghcr privée. Secret créé manuellement (même pratique que ghostfolio-secret, non versionné). Doc d'install dans stt/README.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013FmcxGsyXZXogiAHQLjnZT * fix(stt): securityContext conforme PodSecurity restricted (ns ai) runAsNonRoot + runAsUser 1000 + seccompProfile RuntimeDefault (pod), allowPrivilegeEscalation false + drop ALL caps (conteneur). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013FmcxGsyXZXogiAHQLjnZT --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
e390ddef12
commit
35f37bd293
2 changed files with 23 additions and 0 deletions
|
|
@ -13,9 +13,23 @@ spec:
|
|||
labels:
|
||||
app: stt-server
|
||||
spec:
|
||||
# Image privée sur ghcr → secret de pull créé manuellement dans le ns ai
|
||||
# (cf. README : kubectl create secret docker-registry ghcr-pull ...)
|
||||
imagePullSecrets:
|
||||
- name: ghcr-pull
|
||||
# Conformité PodSecurity "restricted" (namespace ai)
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
containers:
|
||||
- name: stt-server
|
||||
image: ghcr.io/alkatrazz24/funk-stt-server:latest
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -39,6 +39,15 @@ Prérequis poste : micro, Piper + voix dans `~/.local/share/piper/`, `aplay` (al
|
|||
Tant que ce n'est pas mergé sur `main`, le cluster ne le prend pas.
|
||||
3. Le serveur joint LiteLLM (s01, hors cluster) via le Service `litellm-ext`
|
||||
(Endpoints manuel → `192.168.10.1:4000`).
|
||||
4. **Image privée** : le Deployment référence un `imagePullSecret` `ghcr-pull`.
|
||||
À créer une fois dans le ns `ai` (même pratique que `ghostfolio-secret`, non versionné) :
|
||||
```bash
|
||||
kubectl create secret docker-registry ghcr-pull \
|
||||
--docker-server=ghcr.io \
|
||||
--docker-username=Alkatrazz24 \
|
||||
--docker-password=<PAT_ghcr_read:packages> \
|
||||
-n ai
|
||||
```
|
||||
|
||||
## Structure
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue