fix paper and traeffik
This commit is contained in:
parent
5f8ee80cf3
commit
fca3c066db
21 changed files with 89 additions and 16 deletions
14
README.md
14
README.md
|
|
@ -182,17 +182,9 @@ kubectl apply --server-side -k argocd-install/
|
|||
kubectl -n argocd rollout status deploy/argocd-server
|
||||
kubectl apply -f bootstrap/root.yaml
|
||||
```
|
||||
Argo CD UI: https://argocd.un-oeil.fr, admin laptop only. The Caddy vhost
|
||||
allows `10.10.10.2` and answers 403 to every other WireGuard peer:
|
||||
```
|
||||
argocd.un-oeil.fr {
|
||||
@admin remote_ip 10.10.10.2
|
||||
handle @admin {
|
||||
reverse_proxy 10.0.0.141:80 10.0.0.142:80 10.0.0.143:80
|
||||
}
|
||||
respond 403
|
||||
}
|
||||
```
|
||||
Argo CD UI: https://argocd.un-oeil.fr through Caddy, behind Argo's own login.
|
||||
Caddy can't restrict it to the admin laptop: the WireGuard hub masquerades
|
||||
every peer as `10.0.0.250`, so `remote_ip` never sees `10.10.10.2`.
|
||||
Without Caddy: `kubectl -n argocd port-forward svc/argocd-server 8080:80`.
|
||||
Longhorn UI: `kubectl -n longhorn-system port-forward svc/longhorn-frontend 8081:80`
|
||||
(or the same Caddy pattern with a `longhorn.un-oeil.fr` Ingress).
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@ spec:
|
|||
labels:
|
||||
app: firefly
|
||||
spec:
|
||||
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
||||
# PAPERLESS_PORT as their own setting and crash.
|
||||
enableServiceLinks: false
|
||||
securityContext:
|
||||
# The image runs as www-data (33).
|
||||
fsGroup: 33
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@ spec:
|
|||
labels:
|
||||
app: freshrss
|
||||
spec:
|
||||
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
||||
# PAPERLESS_PORT as their own setting and crash.
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: freshrss
|
||||
image: freshrss/freshrss:1.30.1
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@ spec:
|
|||
labels:
|
||||
app: hedgedoc
|
||||
spec:
|
||||
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
||||
# PAPERLESS_PORT as their own setting and crash.
|
||||
enableServiceLinks: false
|
||||
securityContext:
|
||||
fsGroup: 10000
|
||||
containers:
|
||||
|
|
|
|||
|
|
@ -13,6 +13,14 @@
|
|||
type: uptimekuma
|
||||
url: https://status.un-oeil.fr
|
||||
slug: homelab
|
||||
- Argo CD:
|
||||
href: https://argocd.un-oeil.fr
|
||||
siteMonitor: https://argocd.un-oeil.fr/healthz
|
||||
icon: argo-cd.svg
|
||||
widget:
|
||||
type: uptimekuma
|
||||
url: https://status.un-oeil.fr
|
||||
slug: k3s
|
||||
- Pelican:
|
||||
href: https://pelican.un-oeil.fr
|
||||
siteMonitor: https://pelican.un-oeil.fr
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@ spec:
|
|||
labels:
|
||||
app: homepage
|
||||
spec:
|
||||
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
||||
# PAPERLESS_PORT as their own setting and crash.
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: homepage
|
||||
image: ghcr.io/gethomepage/homepage:v2.5.0
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@ spec:
|
|||
labels:
|
||||
app: it-tools
|
||||
spec:
|
||||
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
||||
# PAPERLESS_PORT as their own setting and crash.
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: it-tools
|
||||
image: corentinth/it-tools:2024.10.22-7ca5933
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@ spec:
|
|||
labels:
|
||||
app: linkwarden
|
||||
spec:
|
||||
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
||||
# PAPERLESS_PORT as their own setting and crash.
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: linkwarden
|
||||
image: ghcr.io/linkwarden/linkwarden:v2.16.3
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@ spec:
|
|||
labels:
|
||||
app: n8n
|
||||
spec:
|
||||
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
||||
# PAPERLESS_PORT as their own setting and crash.
|
||||
enableServiceLinks: false
|
||||
securityContext:
|
||||
# The image runs as node (1000).
|
||||
fsGroup: 1000
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@ spec:
|
|||
labels:
|
||||
app: ntfy
|
||||
spec:
|
||||
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
||||
# PAPERLESS_PORT as their own setting and crash.
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: ntfy
|
||||
image: binwiederhier/ntfy:v2.29.0
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@ spec:
|
|||
labels:
|
||||
app: paperless
|
||||
spec:
|
||||
# The "paperless" Service would inject PAPERLESS_PORT=tcp://..., which
|
||||
# Paperless reads as its own port setting and crashes on.
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: paperless
|
||||
image: ghcr.io/paperless-ngx/paperless-ngx:3.3.0
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@ spec:
|
|||
labels:
|
||||
app: valkey
|
||||
spec:
|
||||
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
||||
# PAPERLESS_PORT as their own setting and crash.
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: valkey
|
||||
image: valkey/valkey:8.1.10-alpine
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@ spec:
|
|||
labels:
|
||||
app: postgres
|
||||
spec:
|
||||
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
||||
# PAPERLESS_PORT as their own setting and crash.
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: postgres
|
||||
image: postgres:17.11-alpine
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@ spec:
|
|||
labels:
|
||||
app: privatebin
|
||||
spec:
|
||||
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
||||
# PAPERLESS_PORT as their own setting and crash.
|
||||
enableServiceLinks: false
|
||||
securityContext:
|
||||
# The image runs as nobody:www-data (65534:82).
|
||||
fsGroup: 82
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@ spec:
|
|||
labels:
|
||||
app: searxng
|
||||
spec:
|
||||
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
||||
# PAPERLESS_PORT as their own setting and crash.
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: searxng
|
||||
image: searxng/searxng:2026.10.4-d48c4b555
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@ spec:
|
|||
labels:
|
||||
app: stirling-pdf
|
||||
spec:
|
||||
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
||||
# PAPERLESS_PORT as their own setting and crash.
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: stirling-pdf
|
||||
image: stirlingtools/stirling-pdf:3.1.0
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@ spec:
|
|||
labels:
|
||||
app: vikunja
|
||||
spec:
|
||||
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
||||
# PAPERLESS_PORT as their own setting and crash.
|
||||
enableServiceLinks: false
|
||||
securityContext:
|
||||
fsGroup: 1000
|
||||
containers:
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@ spec:
|
|||
labels:
|
||||
app: whoami
|
||||
spec:
|
||||
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
||||
# PAPERLESS_PORT as their own setting and crash.
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: whoami
|
||||
image: traefik/whoami:v1.11.0
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@ spec:
|
|||
labels:
|
||||
app: wikijs
|
||||
spec:
|
||||
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
|
||||
# PAPERLESS_PORT as their own setting and crash.
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: wikijs
|
||||
image: ghcr.io/requarks/wiki:2.5.314
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# https://argocd.un-oeil.fr through Caddy (LXC 100), which only lets the admin
|
||||
# laptop in (remote_ip 10.10.10.2) and answers 403 to everyone else.
|
||||
# https://argocd.un-oeil.fr through Caddy (LXC 100), over WireGuard only.
|
||||
# Protected by Argo's own login.
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
# Trust X-Forwarded-For from Caddy (10.0.0.10), so apps see the real client IP
|
||||
# instead of Caddy's. Requests reach Traefik through ServiceLB, which rewrites
|
||||
# the source to a node or pod address, hence the two ranges.
|
||||
# Overrides for the Traefik that k3s bundles (merged over k3s's own values).
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChartConfig
|
||||
metadata:
|
||||
|
|
@ -8,6 +6,30 @@ metadata:
|
|||
namespace: kube-system
|
||||
spec:
|
||||
valuesContent: |-
|
||||
# Two copies on two different workers, never on the masters (k3s's
|
||||
# default tolerations would allow them), so one node going down doesn't
|
||||
# take every app with it.
|
||||
deployment:
|
||||
replicas: 2
|
||||
podDisruptionBudget:
|
||||
enabled: true
|
||||
minAvailable: 1
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: node-role.kubernetes.io/control-plane
|
||||
operator: DoesNotExist
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: traefik
|
||||
topologyKey: kubernetes.io/hostname
|
||||
# Trust X-Forwarded-For from Caddy (10.0.0.10), so apps see the real client
|
||||
# IP instead of Caddy's. Requests reach Traefik through ServiceLB, which
|
||||
# rewrites the source to a node or pod address, hence the two ranges.
|
||||
ports:
|
||||
web:
|
||||
forwardedHeaders:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue