Update README.md with Docker build and Kubernetes debug instructions

- Added instructions for building and pushing Docker images with specific tags.
- Included steps for creating Kubernetes secrets from local .env files.
- Provided guidance on manually creating and removing a debug pod in Kubernetes.
This commit is contained in:
Zsolt Alföldi
2026-05-07 01:20:33 +02:00
parent ecea084003
commit a322af07d0
4 changed files with 126 additions and 0 deletions

43
k8s/debug-pod.yaml Normal file
View File

@@ -0,0 +1,43 @@
apiVersion: v1
kind: Pod
metadata:
name: ncore-hnr-debug
namespace: media-server
labels:
app.kubernetes.io/name: ncore-hnr-debug
spec:
restartPolicy: Never
securityContext:
fsGroup: 65532
containers:
- name: ncore-hnr-debug
image: alfonzso/ncore-hnr-debug:latest
imagePullPolicy: Always
command: ["sh", "-c", "sleep infinity"]
envFrom:
- secretRef:
name: ncore-hnr-secrets
env:
- name: QBITTORRENT_URL
value: http://ms-qbittorrent
- name: APP_DB_PATH
value: /data/ncore-hnr.sqlite
- name: DRY_RUN
value: "true"
- name: NOTIFICATION_DRY_RUN
value: "true"
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 250m
memory: 256Mi
volumeMounts:
- name: data
mountPath: /data
volumes:
- name: data
hostPath:
path: /mnt/secure/flux-at-home/ncore-hnr/data
type: DirectoryOrCreate