Compare commits
No commits in common. "093f8f61b2fb2c18f856cf4b1fe361b42676fc47" and "96669d539ef911885ee8059960d6d8b83f79427d" have entirely different histories.
093f8f61b2
...
96669d539e
5 changed files with 4 additions and 76 deletions
18
.goosehints
18
.goosehints
|
|
@ -129,14 +129,7 @@ before improvising a new pattern.
|
|||
centralized services."
|
||||
- `registry.host` / `registry.user` are values in the root `values.yaml` —
|
||||
reference them, don't hardcode `forge.keane.sh`/`ian` in new charts.
|
||||
- For any service whose image you personally build/push (e.g. `zoitestream`,
|
||||
`mcp-auth-proxy`, `repertory-api`) — as opposed to an official upstream
|
||||
image — set `imagePullPolicy: Always` on that container. These use
|
||||
floating `:latest` tags with no digest pinning, and this is a single-node
|
||||
cluster where Kubernetes will otherwise happily reuse a stale cached
|
||||
image after you push a new one, requiring a manual `kubectl delete pod`
|
||||
to force a repull. `imagePullPolicy: Always` makes every pod
|
||||
restart/reschedule actually check the registry.
|
||||
|
||||
## Databases
|
||||
|
||||
- One shared Postgres in the `data` group/namespace (`postgres`), used by
|
||||
|
|
@ -206,12 +199,3 @@ before improvising a new pattern.
|
|||
day-to-day ops, Makefile reference, forking/multi-environment notes. If a
|
||||
new operational gotcha is discovered (like the two-phase apply, or
|
||||
`make clean`), add it to the README, not just this file.
|
||||
|
||||
## Git
|
||||
|
||||
- **Never run `git commit` or `git push`** (in this repo, `zoitestream`,
|
||||
`repertory`, `repertory-api`, or any other repo) unless the user
|
||||
explicitly asks for it in that specific message. Staging/diffing is
|
||||
fine; committing/pushing is the user's call, always. This applies even
|
||||
after making a series of edits the user clearly wants kept — stop and
|
||||
let them commit.
|
||||
|
|
|
|||
12
Makefile
12
Makefile
|
|
@ -1,4 +1,4 @@
|
|||
.PHONY: init plan apply destroy clean kubeconfig talosconfig argocd-password bootstrap decrypt post-apply build-mcp-auth-proxy stream-url
|
||||
.PHONY: init plan apply destroy clean kubeconfig talosconfig argocd-password bootstrap decrypt post-apply build-mcp-auth-proxy
|
||||
|
||||
SECRET ?= dumpnet
|
||||
FORGEJO_REGISTRY ?= forge.keane.sh
|
||||
|
|
@ -79,16 +79,6 @@ argocd-password:
|
|||
--query SecretString --output text | python3 -c \
|
||||
"import sys,json; print(json.load(sys.stdin)['cluster']['argocd_admin_password'])"
|
||||
|
||||
# Build the current RTMP publish URL from the dumpnet secret (mediamtx.*)
|
||||
# — handy for testing without going through the IRC bot, since the
|
||||
# zoitestream API is cluster-internal only.
|
||||
stream-url:
|
||||
@aws secretsmanager get-secret-value --secret-id $(SECRET) \
|
||||
--query SecretString --output text | python3 -c \
|
||||
"import sys, json; \
|
||||
d = json.load(sys.stdin)['mediamtx']; \
|
||||
print(f\"rtmp://stream.dumpnet.chat:1935/live?user=streamer&pass={d['publish_password']}\")"
|
||||
|
||||
# Decrypt sensitive files to /tmp for one-off talosctl use
|
||||
# Files are never decrypted in the repo directory
|
||||
decrypt:
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ spec:
|
|||
containers:
|
||||
- name: mcp-auth-proxy
|
||||
image: {{ .Values.registry.host }}/{{ .Values.registry.user }}/mcp-auth-proxy:latest
|
||||
imagePullPolicy: Always
|
||||
args:
|
||||
- --external-url=https://git-mcp-oauth.dumpnet.chat
|
||||
- --no-auto-tls=true
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@ spec:
|
|||
subPath: mediamtx.yml
|
||||
- name: zoitestream
|
||||
image: "{{ .Values.registry.host }}/{{ .Values.registry.user }}/zoitestream:latest"
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: DOMAIN
|
||||
value: "stream.{{ .Values.domain }}"
|
||||
|
|
@ -100,20 +99,6 @@ spec:
|
|||
- port: 80
|
||||
targetPort: 5000
|
||||
---
|
||||
# HLS Service — MediaMTX's HTTP HLS server, for browser playback and
|
||||
# direct mpv/ffmpeg consumption of the raw .m3u8 playlist.
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mediamtx-hls
|
||||
namespace: mediamtx
|
||||
spec:
|
||||
selector:
|
||||
app: mediamtx
|
||||
ports:
|
||||
- port: 8888
|
||||
targetPort: 8888
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
|
|
@ -131,38 +116,10 @@ spec:
|
|||
- host: stream.{{ .Values.domain }}
|
||||
http:
|
||||
paths:
|
||||
- path: /api
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: zoitestream
|
||||
port:
|
||||
number: 80
|
||||
- path: /hooks
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: zoitestream
|
||||
port:
|
||||
number: 80
|
||||
- path: /health
|
||||
pathType: Exact
|
||||
backend:
|
||||
service:
|
||||
name: zoitestream
|
||||
port:
|
||||
number: 80
|
||||
- path: /
|
||||
pathType: Exact
|
||||
backend:
|
||||
service:
|
||||
name: zoitestream
|
||||
port:
|
||||
number: 80
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: mediamtx-hls
|
||||
name: zoitestream
|
||||
port:
|
||||
number: 8888
|
||||
number: 80
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ spec:
|
|||
containers:
|
||||
- name: repertory-api
|
||||
image: "{{ .Values.registry.host }}/{{ .Values.registry.user }}/repertory-api:latest"
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
envFrom:
|
||||
|
|
@ -91,7 +90,6 @@ spec:
|
|||
containers:
|
||||
- name: migrate
|
||||
image: "{{ .Values.registry.host }}/{{ .Values.registry.user }}/repertory-api:latest"
|
||||
imagePullPolicy: Always
|
||||
command: ["uv", "run", "alembic", "upgrade", "head"]
|
||||
envFrom:
|
||||
- secretRef:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue