Stage 7 of REFACTOR_PLAN.md (findings #16). Covers dashy, glances, ca-installer, authentik-proxy-outpost, jellyfin, qbittorrent/jdownloader main containers (their gluetun sidecars already had probes), and all 4 Immich Deployments -- previously none of these had any protection against one workload starving another on this fixed-capacity cluster, nor automatic restart on hang. Values are sized from live `kubectl top pod` baselines gathered this session (not guessed): e.g. Jellyfin/Immich-server were observed at ~3.1-3.3Gi resident, so their limits give headroom above that (4Gi) rather than an arbitrary round number. Used tcpSocket probes instead of httpGet wherever I wasn't certain of an app's exact health-check path (Immich, Postgres/Redis), to avoid a wrong path causing false probe failures on a live service. This is Kubernetes-native and takes effect on next pod restart, but should still be rolled out watching `kubectl top`/restart counts rather than pushed and forgotten -- limits set too low can OOMKill under real load. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
112 lines
2.4 KiB
YAML
112 lines
2.4 KiB
YAML
# Apply: kubectl apply -f manifests/core/dashy.yaml
|
|
# Delete: kubectl delete -f manifests/core/dashy.yaml
|
|
# Description: Dashy homelab dashboard with Ingress at dashy.home.arpa.
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: dashy
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: dashy-config
|
|
namespace: dashy
|
|
data:
|
|
conf.yml: |
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: dashy
|
|
namespace: dashy
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: dashy
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: dashy
|
|
spec:
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: node-role
|
|
operator: In
|
|
values:
|
|
- primary
|
|
containers:
|
|
- name: dashy
|
|
image: lissy93/dashy:latest
|
|
ports:
|
|
- containerPort: 8080
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8080
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8080
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 30
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 200m
|
|
memory: 256Mi
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /app/user-data/conf.yml
|
|
subPath: conf.yml
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: dashy-config
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: dashy
|
|
namespace: dashy
|
|
spec:
|
|
selector:
|
|
app: dashy
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8080
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: dashy
|
|
namespace: dashy
|
|
annotations:
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
|
cert-manager.io/cluster-issuer: internal-ca-issuer
|
|
spec:
|
|
ingressClassName: traefik
|
|
tls:
|
|
- secretName: dashy-tls
|
|
hosts:
|
|
- dashy.home.arpa
|
|
rules:
|
|
- host: dashy.home.arpa
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: dashy
|
|
port:
|
|
number: 80
|