Compare commits
370
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d19d19323
|
||
|
|
7bdd31044f
|
||
|
|
64f25112bb
|
||
|
|
c07ddcf59a
|
||
|
|
9fbeb2b109 | ||
|
|
e28c431eb4 | ||
|
|
80f4db0213
|
||
|
|
ee72112f45
|
||
|
|
abbecd2f24 | ||
|
|
41fb60a179 | ||
|
|
3ee119bc70
|
||
|
|
a7ce15fc73
|
||
|
|
582252799d | ||
|
|
5afe0ddacd
|
||
|
|
42ce68fdae | ||
|
|
5cdbd643d3
|
||
|
|
0d4b9064e6 | ||
|
|
6a12d08930
|
||
|
|
e21d7cc15e | ||
|
|
9d6bd446bd
|
||
|
|
09203c81c0 | ||
|
|
0938f9c5c2
|
||
|
|
71cafa4310
|
||
|
|
7810a74e97
|
||
|
|
f6be7fd18e | ||
|
|
b5379b33c4
|
||
|
|
99341ef6c0
|
||
|
|
7bc7836e59 | ||
|
|
260d3ede3e
|
||
|
|
43eecb9113 | ||
|
|
c8b15e3608
|
||
|
|
b4ac1bcb6c | ||
|
|
da9167f647 | ||
|
|
0bea7b1816
|
||
|
|
c2e7301fda
|
||
|
|
2cfdffe784 | ||
|
|
0e21944bd4
|
||
|
|
67b434eea3
|
||
|
|
a8838ff23a
|
||
|
|
a8b936acce
|
||
|
|
9d870b4a7d
|
||
|
|
44fb358f45
|
||
|
|
dad2846cc7
|
||
|
|
0a9f32b785
|
||
|
|
819c93a68f
|
||
|
|
c6f619eca7 | ||
|
|
edbf33dc7d
|
||
|
|
2e0ac6f49c | ||
|
|
890932223b
|
||
|
|
0f874d455c | ||
|
|
d9207f12b2
|
||
|
|
bb22a4e66a | ||
|
|
efb7599e8e
|
||
|
|
138c96de31 | ||
|
|
f64e232a66
|
||
|
|
99b1bbc8c1
|
||
|
|
d704a0808d | ||
|
|
8819bbd2b4
|
||
|
|
b94a849172
|
||
|
|
4744761cdf
|
||
|
|
5c5498e6b4 | ||
|
|
9a5cf6cd99
|
||
|
|
aadbfd0077 | ||
|
|
07124fef38
|
||
|
|
6d89a26447 | ||
|
|
8394a5971d
|
||
|
|
22ab0ef53a
|
||
|
|
56d65605aa | ||
|
|
16296a4144 | ||
|
|
0c2ed1f76a
|
||
|
|
58bc1b2ce4
|
||
|
|
4567854c12
|
||
|
|
944d5793af
|
||
|
|
85db172de8 | ||
|
|
d0263b767b
|
||
|
|
a913dc0989
|
||
|
|
08ceba58c2 | ||
|
|
0e6ba2c4d9
|
||
|
|
eab7f0a533
|
||
|
|
ac2ae0c3df
|
||
|
|
93663535bc
|
||
|
|
d06ef83ee2
|
||
|
|
8ad2c46c20
|
||
|
|
c83625bc88
|
||
|
|
ef81d700a8 | ||
|
|
b62f3935be
|
||
|
|
412a6918b6 | ||
|
|
34dab7a09f
|
||
|
|
ac1ad7359f | ||
|
|
d8e470c623
|
||
|
|
0cf458a6bb | ||
|
|
18fe757fe2
|
||
|
|
aa83a625ac | ||
|
|
30c821f5cd
|
||
|
|
4bde426243
|
||
|
|
2d8a0297f5 | ||
|
|
9b10b90acd
|
||
|
|
d672812300 | ||
|
|
e7fccaa53c
|
||
|
|
0b5f4492a4 | ||
|
|
b9bb385320
|
||
|
|
a0b0997c1a
|
||
|
|
7ffa5c3341
|
||
|
|
2c5cf9b6c4 | ||
|
|
0456497133
|
||
|
|
7a31dac90c | ||
|
|
c8ce349135
|
||
|
|
fc5786cdef
|
||
|
|
1007e8ee4b | ||
|
|
7f487b0990
|
||
|
|
9137db2b9f | ||
|
|
acaf66a39c
|
||
|
|
2016580fa0
|
||
|
|
acb664318e | ||
|
|
b39e6fdce8
|
||
|
|
c21f54cc2c | ||
|
|
5b8aa97081
|
||
|
|
9a94ccc337 | ||
|
|
2a2aeba921
|
||
|
|
a11fea834b
|
||
|
|
4ba9a42b7e | ||
|
|
453956f5d1
|
||
|
|
9972e1ecb9 | ||
|
|
674aaaea9c
|
||
|
|
c18ade7a7e
|
||
|
|
7f984f61af
|
||
|
|
4d2ac0b44d | ||
|
|
71372379b9
|
||
|
|
e02f3aa9fd
|
||
|
|
67f852c737
|
||
|
|
fd20dccf6c
|
||
|
|
9745f6aa53
|
||
|
|
fc3d187d99
|
||
|
|
b6a74c4a8f
|
||
|
|
1b44fd7ab5
|
||
|
|
37a0370bb3
|
||
|
|
f5a07f0810
|
||
|
|
5b5c394581
|
||
|
|
0946ef68a3
|
||
|
|
dbfecc1090 | ||
|
|
4e22ab2416
|
||
|
|
7719d488b7
|
||
|
|
7f2a21d15d
|
||
|
|
1d07f20850
|
||
|
|
cc3a0ff414
|
||
|
|
d337a6ad3d
|
||
|
|
a55400a0ba
|
||
|
|
b04c27eaf1
|
||
|
|
5fc38bf8f0
|
||
|
|
a83a8f9577
|
||
|
|
5e3c0f386f
|
||
|
|
6cb6ba6e22
|
||
|
|
1043895e71
|
||
|
|
b6952cec5c
|
||
|
|
c2f8178b11
|
||
|
|
dddbf25e45
|
||
|
|
846aa2d534
|
||
|
|
342ab378cd | ||
|
|
5ce3ac9a1e
|
||
|
|
eeb45f24a4
|
||
|
|
224102a066
|
||
|
|
9851a131d3
|
||
|
|
20473263ae
|
||
|
|
cb3528b17b | ||
|
|
1a25c3fcf3
|
||
|
|
b2d6545070
|
||
|
|
053c36a877
|
||
|
|
968ef8d621
|
||
|
|
4215d89d0b
|
||
|
|
3b38a2c3a9
|
||
|
|
42fd1e5a92
|
||
|
|
8d6b3eb6b6
|
||
|
|
442ba532cd
|
||
|
|
c71e4765e1 | ||
|
|
b1e62ed191
|
||
|
|
5855b78976
|
||
|
|
d849c4ca19
|
||
|
|
101be3512a
|
||
|
|
893f10a45c
|
||
|
|
11f881c24b
|
||
|
|
f59574bda1 | ||
|
|
a2273c4336
|
||
|
|
f0ac9bbd6d
|
||
|
|
68026b743c | ||
|
|
980420d1cd
|
||
|
|
392e56b6ba
|
||
|
|
ae1fc4ca71
|
||
|
|
7d39f524de
|
||
|
|
8f39602c94
|
||
|
|
6c953ba4f3
|
||
|
|
e5609b6503
|
||
|
|
92dc80f873
|
||
|
|
b9eeadee05
|
||
|
|
ac9b7d3f67
|
||
|
|
fffddc9a39
|
||
|
|
61a12bdab2
|
||
|
|
68c91de84e
|
||
|
|
a4929cd9fd
|
||
|
|
1cddb5abef | ||
|
|
7d593772a3
|
||
|
|
7cb320981e | ||
|
|
1d905eebe7
|
||
|
|
41a3556c50
|
||
|
|
7377757e96
|
||
|
|
28ba9d64b7 | ||
|
|
2110ffd473 | ||
|
|
7c761c6de6
|
||
|
|
1cf343eeab
|
||
|
|
c084c0af2c | ||
|
|
9ead104c8f
|
||
|
|
a979a0f526
|
||
|
|
35fa4e9d9a
|
||
|
|
1d17bb2bf6
|
||
|
|
dab90b1885 | ||
|
|
3d393701e7
|
||
|
|
de882b87af | ||
|
|
b5af5f1129
|
||
|
|
a7c0d31bc2
|
||
|
|
b9a2a46eee | ||
|
|
178ad9268a
|
||
|
|
0210513307 | ||
|
|
a00f6f3032 | ||
|
|
e1da67f322
|
||
|
|
3a606a6371
|
||
|
|
a2f392dca1 | ||
|
|
b98e426928
|
||
|
|
3c765ec1b6
|
||
|
|
7dbeb13284
|
||
|
|
cee723ac42
|
||
|
|
79bb86774c
|
||
|
|
dc6330513d | ||
|
|
37a8844a7e
|
||
|
|
6cf728c28a
|
||
|
|
9ad5f3fff8 | ||
|
|
ebcb633f50
|
||
|
|
2778ace7c6 | ||
|
|
2f70f7a253
|
||
|
|
d9e3c81773 | ||
|
|
6ab7d2b631
|
||
|
|
92f87db257 | ||
|
|
98c4d478e9
|
||
|
|
26358f06ef | ||
|
|
f43f25e828
|
||
|
|
254b32c5bf | ||
|
|
adb4397593
|
||
|
|
3c9bf5dd19 | ||
|
|
29c864dbb1 | ||
|
|
3ebe0aada7 | ||
|
|
92a50feddc
|
||
|
|
e151c46d98
|
||
|
|
65051ce602
|
||
|
|
6c5c98b73e
|
||
|
|
5d5a6d79bb | ||
|
|
8af68a5e80
|
||
|
|
423d9e9916
|
||
|
|
51ba8eff0c
|
||
|
|
480ba4867d
|
||
|
|
cf9035bc5c
|
||
|
|
088f55a6bd
|
||
|
|
fdfebf045f
|
||
|
|
981f6df797
|
||
|
|
a92977cb6d | ||
|
|
93abfece0b
|
||
|
|
36bdf2adc1 | ||
|
|
f3d974befe
|
||
|
|
579b4077d2
|
||
|
|
1946931937
|
||
|
|
856ee307ff
|
||
|
|
f4da25c243
|
||
|
|
19f8dd922b
|
||
|
|
2e26a5df9e
|
||
|
|
5ffaa2d65b
|
||
|
|
b2d4211583
|
||
|
|
b64ddb7b71 | ||
|
|
447c4b618b
|
||
|
|
2a5057dc5b
|
||
|
|
a58d4dc19f
|
||
|
|
482ddda271
|
||
|
|
e401a71a01 | ||
|
|
c1053309e8 | ||
|
|
6666fd467f
|
||
|
|
3a2e9e0e9d
|
||
|
|
d17fce4dcc
|
||
|
|
a514eed9cf
|
||
|
|
d747936738
|
||
|
|
7c65d7a917
|
||
|
|
7d456d5bd8
|
||
|
|
63fdcf4b41
|
||
|
|
b7b33c9812
|
||
|
|
bb4ac79006
|
||
|
|
908ec8cb85 | ||
|
|
894d2d90bb
|
||
|
|
9d58d47a98 | ||
|
|
0fc227c978 | ||
|
|
5d642abfb2
|
||
|
|
06ce0d7020
|
||
|
|
d1a1b90de4 | ||
|
|
34e18748d2
|
||
|
|
57dfd393bf | ||
|
|
ee3f5d2d7e
|
||
|
|
d1ad8fc440
|
||
|
|
821cf8f067
|
||
|
|
a38752d7e6
|
||
|
|
65d8ddebb1
|
||
|
|
8c878150d9
|
||
|
|
e6c0474bbb
|
||
|
|
d0fdc8c932
|
||
|
|
cb0cbcf1fb
|
||
|
|
c4c25a647b
|
||
|
|
27e477af6f
|
||
|
|
9b53acf467 | ||
|
|
8882f1a3d7 | ||
|
|
12dfdc80ec | ||
|
|
10f79e298e | ||
|
|
fad154cf7d | ||
|
|
56e71cb9e2 | ||
|
|
f8f80a393e | ||
|
|
604323e615
|
||
|
|
5049bd2f38 | ||
|
|
cb9ec59e78 | ||
|
|
b3b7521f99 | ||
|
|
d3d5b1eba6 | ||
|
|
47d716d393 | ||
|
|
f8ee4b70ae | ||
|
|
05150b8d4b | ||
|
|
983de12bf9
|
||
|
|
d817b492bf | ||
|
|
3bda4aeead | ||
|
|
d81fbc5266 | ||
|
|
6df1bae2a2 | ||
|
|
e819c0a19e | ||
|
|
449a5884c1
|
||
|
|
f7950a6632 | ||
|
|
7b68fb1578 | ||
|
|
2b2d1766af
|
||
|
|
13ea9a56dc | ||
|
|
0e4c3a219a
|
||
|
|
c5e7f62f29
|
||
|
|
ef5cb3b27b
|
||
|
|
782bbcc568 | ||
|
|
37edf93b21
|
||
|
|
692e8fd9b6
|
||
|
|
543a85c4fb | ||
|
|
49c5f5d8c9
|
||
|
|
453fadfd2c | ||
|
|
09fbc4e474 | ||
|
|
9f953e79ca
|
||
|
|
98628a2113
|
||
|
|
2fc19ce70d
|
||
|
|
bbe1d21048
|
||
|
|
4253a6845e | ||
|
|
15a82b2ebb | ||
|
|
aa98845e6a | ||
|
|
fd5879f4ba | ||
|
|
2051d563f8 | ||
|
|
d4e4cb1313 | ||
|
|
ae13754c27
|
||
|
|
fcc65c33fa
|
||
|
|
83a337f768 | ||
|
|
e42943d0d4 | ||
|
|
9a43144600 | ||
|
|
d0386c0204 | ||
|
|
8e53b08ed6
|
||
|
|
f9126499c2
|
||
|
|
73e36385f8
|
||
|
|
4406b80872 | ||
|
|
8ca7676f61 | ||
|
|
0c6be07c25 | ||
|
|
ebb7443524 | ||
|
|
150a50a5a9 |
No files matched your search
@@ -0,0 +1,29 @@
|
|||||||
|
# Core Apps
|
||||||
|
**Production-grade application deployments for my Kubernetes homelab**
|
||||||
|
|
||||||
|
This repository contains the core applications deployed to my Kubernetes homelab. Applications are deployed using either Kubernetes manifests or Helm charts (with upstream subcharts and custom values).
|
||||||
|
|
||||||
|
**Why Helm?** I prefer Helm charts when upstream versions exist because Renovate can automatically track new chart versions, whereas image tags in raw manifests aren't always semantically versioned.
|
||||||
|
|
||||||
|
**GitOps Workflow:** This repository is monitored by ArgoCD and serves as the source of truth for deployments. Each top-level directory is its own ArgoCD Application, with subdirectories representing components within that application.
|
||||||
|
|
||||||
|
**Automated Commits:** Apps that I wrote/maintain directly (such as yt-dlp-bot and zap2xml) get their manifests automatically updated via an Actions workflow in their respective repositories
|
||||||
|
|
||||||
|
- `arr-stack/` - Arr Stack (manifests)
|
||||||
|
- `flaresolverr/` - Flaresolverr (captcha processor)
|
||||||
|
- `prowlarr/` - Prowlarr (indexer manager)
|
||||||
|
- `radarr/` - Radarr (movie media manager)
|
||||||
|
- `sonarr/` - Sonarr (TV series media manager)
|
||||||
|
- `tunnel/` - Custom SSH tunnel to my seedbox to securely communicate with Deluge
|
||||||
|
- `attic/` - Attic NixOS cache server (manifests)
|
||||||
|
- `authentik/` - [Authentik](https://auth.dubyatp.xyz) SSO server (Helm chart)
|
||||||
|
- `gitea/` - [Gitea](https://git.dubyatp.xyz) Git Server (Helm chart)
|
||||||
|
- `gitea-runner/` - Gitea Runner (manifests)
|
||||||
|
- `buildkitd/` - Docker Buildkitd build environment
|
||||||
|
- `grafana/` - [Grafana](https://grafana.dubyatp.xyz) observability dashboard (Helm chart)
|
||||||
|
- `jellyfin/` - [Jellyfin](https://jellyfin.dubyatp.xyz) media server (Helm chart)
|
||||||
|
- `renovate/` - [Renovate](https://git.dubyatp.xyz/renovate-bot) automated dependency manager (manifests)
|
||||||
|
- `vaultwarden/` - [Vaultwarden](https://vaultwarden.dubyatp.xyz) password manager (manifests)
|
||||||
|
- `whatismyip/` - [Simple "what is my IP" HTTP service](https://whatismyip.dubyatp.xyz) (manifests)
|
||||||
|
- `yt-dlp-bot/` - [yt-dlp bot](https://git.dubyatp.xyz/williamp/yt-dlp-bot) (manifests); a custom Discord bot i created for downloading and storing YouTube videos ad-hoc
|
||||||
|
- `zap2xml/` - [kube-zap2xml](https://git.dubyatp.xyz/williamp/kube-zap2xml) (manifests); modified version of zap2xml (zap2it TV listings scraper) designed for use as Kubernetes jobs and sends the result XMLTV format to a Rook-Ceph S3 bucket
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: flaresolverr
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: flaresolverr
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: flaresolverr
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: flaresolverr
|
||||||
|
image: ghcr.io/flaresolverr/flaresolverr:v3.4.6
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "2Gi"
|
||||||
|
cpu: "0.5"
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: flaresolverr
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: flaresolverr
|
||||||
|
ports:
|
||||||
|
- port: 8191
|
||||||
|
targetPort: 8191
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: prowlarr
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: prowlarr
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: prowlarr
|
||||||
|
annotations:
|
||||||
|
backup.velero.io/backup-volumes: config
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: prowlarr
|
||||||
|
image: linuxserver/prowlarr:version-2.3.0.5236
|
||||||
|
volumeMounts:
|
||||||
|
- name: config
|
||||||
|
mountPath: /config
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "1Gi"
|
||||||
|
cpu: "1"
|
||||||
|
requests:
|
||||||
|
memory: "512Mi"
|
||||||
|
cpu: "0.5"
|
||||||
|
volumes:
|
||||||
|
- name: config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: prowlarr-config
|
||||||
@@ -1,12 +1,11 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: emby-config
|
name: prowlarr-config
|
||||||
spec:
|
spec:
|
||||||
storageClassName: weyma-shared
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 10Gi
|
storage: 10Gi
|
||||||
volumeMode: Filesystem
|
volumeMode: Filesystem
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteMany
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: prowlarr
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: prowlarr
|
||||||
|
ports:
|
||||||
|
- port: 9696
|
||||||
|
targetPort: 9696
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: radarr
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: radarr
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: radarr
|
||||||
|
annotations:
|
||||||
|
backup.velero.io/backup-volumes: config
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: radarr
|
||||||
|
image: linuxserver/radarr:version-6.0.4.10291
|
||||||
|
volumeMounts:
|
||||||
|
- name: config
|
||||||
|
mountPath: /config
|
||||||
|
- name: downloads
|
||||||
|
mountPath: /mnt/Downloads
|
||||||
|
- name: movies
|
||||||
|
mountPath: /mnt/movies
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "1Gi"
|
||||||
|
cpu: "1"
|
||||||
|
requests:
|
||||||
|
memory: "512Mi"
|
||||||
|
cpu: "0.5"
|
||||||
|
volumes:
|
||||||
|
- name: config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: radarr-config
|
||||||
|
- name: movies
|
||||||
|
nfs:
|
||||||
|
server: 10.105.15.20
|
||||||
|
path: /mnt/hdd-pool/movies
|
||||||
|
- name: downloads
|
||||||
|
nfs:
|
||||||
|
server: 10.105.15.20
|
||||||
|
path: /mnt/hdd-pool/syncthing-downloads
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: nextcloud-root
|
name: radarr-config
|
||||||
spec:
|
spec:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 10Gi
|
storage: 10Gi
|
||||||
volumeMode: Filesystem
|
volumeMode: Filesystem
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteMany
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: radarr
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: radarr
|
||||||
|
ports:
|
||||||
|
- port: 7878
|
||||||
|
targetPort: 7878
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: sonarr
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: sonarr
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: sonarr
|
||||||
|
annotations:
|
||||||
|
backup.velero.io/backup-volumes: config
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: sonarr
|
||||||
|
image: linuxserver/sonarr:version-4.0.16.2944
|
||||||
|
volumeMounts:
|
||||||
|
- name: config
|
||||||
|
mountPath: /config
|
||||||
|
- name: downloads
|
||||||
|
mountPath: /mnt/Downloads
|
||||||
|
- name: tv-shows
|
||||||
|
mountPath: /mnt/tv-shows
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "1Gi"
|
||||||
|
cpu: "1"
|
||||||
|
requests:
|
||||||
|
memory: "512Mi"
|
||||||
|
cpu: "0.5"
|
||||||
|
volumes:
|
||||||
|
- name: config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: sonarr-config
|
||||||
|
- name: tv-shows
|
||||||
|
nfs:
|
||||||
|
server: 10.105.15.20
|
||||||
|
path: /mnt/hdd-pool/tv-shows
|
||||||
|
- name: downloads
|
||||||
|
nfs:
|
||||||
|
server: 10.105.15.20
|
||||||
|
path: /mnt/hdd-pool/syncthing-downloads
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: immich-library
|
name: sonarr-config
|
||||||
spec:
|
spec:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 50Gi
|
storage: 10Gi
|
||||||
volumeMode: Filesystem
|
volumeMode: Filesystem
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: sonarr
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: sonarr
|
||||||
|
ports:
|
||||||
|
- port: 8989
|
||||||
|
targetPort: 8989
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: deluge-tunnel
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: deluge-tunnel
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: deluge-tunnel
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: deluge-tunnel
|
||||||
|
image: kroniak/ssh-client:3.21
|
||||||
|
command: ["/bin/sh", "-c", "ssh -o StrictHostKeyChecking=no [email protected] -L 0.0.0.0:58846:127.0.0.1:58846 -L 0.0.0.0:8112:127.0.0.1:8112 -N"]
|
||||||
|
volumeMounts:
|
||||||
|
- name: ssh-keys
|
||||||
|
mountPath: /root/.ssh
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "512Mi"
|
||||||
|
cpu: "500m"
|
||||||
|
requests:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "200m"
|
||||||
|
volumes:
|
||||||
|
- name: ssh-keys
|
||||||
|
secret:
|
||||||
|
defaultMode: 0400
|
||||||
|
secretName: ssh-keys
|
||||||
|
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: ssh-keys
|
||||||
|
spec:
|
||||||
|
data:
|
||||||
|
- remoteRef:
|
||||||
|
conversionStrategy: Default
|
||||||
|
decodingStrategy: None
|
||||||
|
key: deluge-ssh
|
||||||
|
metadataPolicy: None
|
||||||
|
property: private
|
||||||
|
secretKey: id_ed25519
|
||||||
|
- remoteRef:
|
||||||
|
conversionStrategy: Default
|
||||||
|
decodingStrategy: None
|
||||||
|
key: deluge-ssh
|
||||||
|
metadataPolicy: None
|
||||||
|
property: public
|
||||||
|
secretKey: id_ed25519.pub
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
name: weyma-vault
|
||||||
|
target:
|
||||||
|
creationPolicy: Owner
|
||||||
|
deletionPolicy: Retain
|
||||||
|
name: ssh-keys
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: deluge
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: deluge-tunnel
|
||||||
|
ports:
|
||||||
|
- port: 58846
|
||||||
|
targetPort: 58846
|
||||||
|
name: deluge
|
||||||
|
- port: 8112
|
||||||
|
targetPort: 8112
|
||||||
|
name: web
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: objectbucket.io/v1alpha1
|
||||||
|
kind: ObjectBucketClaim
|
||||||
|
metadata:
|
||||||
|
name: attic-bucket
|
||||||
|
namespace: attic
|
||||||
|
spec:
|
||||||
|
additionalConfig:
|
||||||
|
maxSize: 100Gi
|
||||||
|
bucketName: attic-bucket
|
||||||
|
storageClassName: weyma-s3-bucket
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: cert-dubyatp-xyz
|
|
||||||
annotations:
|
|
||||||
replicator.v1.mittwald.de/replicate-from: "cert-manager/cert-dubyatp-xyz"
|
|
||||||
replicator.v1.mittwald.de/replicated-keys: "tls.crt,tls.key"
|
|
||||||
data:
|
|
||||||
tls.crt: ""
|
|
||||||
tls.key: ""
|
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: attic-config
|
||||||
|
data:
|
||||||
|
server.toml: |
|
||||||
|
listen = "[::]:8080"
|
||||||
|
allowed-hosts = []
|
||||||
|
|
||||||
|
#api-endpoint = "https://nix-cache.dubyatp.xyz/"
|
||||||
|
|
||||||
|
[database]
|
||||||
|
url = "sqlite:///var/empty/.local/share/attic/server.db"
|
||||||
|
|
||||||
|
[storage]
|
||||||
|
path = "/data/.local/share/attic/storage"
|
||||||
|
type = "local"
|
||||||
|
#region = "us-east-1"
|
||||||
|
#bucket = "attic-bucket"
|
||||||
|
#endpoint = "https://weyma-s3.infra.dubyatp.xyz"
|
||||||
|
|
||||||
|
[chunking]
|
||||||
|
nar-size-threshold = 65536
|
||||||
|
min-size = 16384
|
||||||
|
avg-size = 65536
|
||||||
|
max-size = 262144
|
||||||
|
|
||||||
|
[compression]
|
||||||
|
type = "zstd"
|
||||||
|
|
||||||
|
[garbage-collection]
|
||||||
|
interval = "12 hours"
|
||||||
|
|
||||||
|
[jwt]
|
||||||
|
|
||||||
|
[jwt.signing]
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: attic-db-auth
|
||||||
|
spec:
|
||||||
|
data:
|
||||||
|
- remoteRef:
|
||||||
|
conversionStrategy: Default
|
||||||
|
decodingStrategy: None
|
||||||
|
key: cloudnativepg
|
||||||
|
metadataPolicy: None
|
||||||
|
property: attic_pw
|
||||||
|
secretKey: password
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
name: weyma-vault
|
||||||
|
target:
|
||||||
|
template:
|
||||||
|
data:
|
||||||
|
ATTIC_SERVER_DATABASE_URL: "postgres://attic:{{ .password }}@pooler-weyma-rw.cloudnativepg.svc.cluster.local/attic"
|
||||||
|
creationPolicy: Owner
|
||||||
|
deletionPolicy: Retain
|
||||||
|
name: attic-db-auth
|
||||||
+12
-2
@@ -3,6 +3,7 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: attic
|
name: attic
|
||||||
spec:
|
spec:
|
||||||
|
replicas: 3
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: attic
|
app: attic
|
||||||
@@ -13,17 +14,26 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: attic
|
- name: attic
|
||||||
image: ghcr.io/zhaofengli/attic:ff8a897d1f4408ebbf4d45fa9049c06b3e1e3f4e
|
image: ghcr.io/zhaofengli/attic:c4ffb5e86e928572e867bd3f81545293313e0a08
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: attic-secret
|
name: attic-secret
|
||||||
|
- secretRef:
|
||||||
|
name: attic-db-auth
|
||||||
|
- secretRef:
|
||||||
|
name: attic-bucket
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: attic-pvc
|
- name: attic-pvc
|
||||||
mountPath: /var/empty
|
mountPath: /var/empty/
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: "2Gi"
|
memory: "2Gi"
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
|
- name: multitool
|
||||||
|
image: wbitt/network-multitool
|
||||||
|
volumeMounts:
|
||||||
|
- name: attic-pvc
|
||||||
|
mountPath: /var/empty/
|
||||||
volumes:
|
volumes:
|
||||||
- name: attic-pvc
|
- name: attic-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: Gateway
|
||||||
|
metadata:
|
||||||
|
name: traefik
|
||||||
|
spec:
|
||||||
|
gatewayClassName: traefik
|
||||||
|
listeners:
|
||||||
|
- name: https
|
||||||
|
protocol: HTTPS
|
||||||
|
port: 8443
|
||||||
|
tls:
|
||||||
|
mode: Terminate
|
||||||
|
certificateRefs:
|
||||||
|
- name: cert-dubyatp-xyz
|
||||||
|
namespace: cert-manager
|
||||||
|
allowedRoutes:
|
||||||
|
namespaces:
|
||||||
|
from: Same
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: attic
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: traefik
|
||||||
|
sectionName: https
|
||||||
|
kind: Gateway
|
||||||
|
hostnames:
|
||||||
|
- nix-cache.dubyatp.xyz
|
||||||
|
rules:
|
||||||
|
- matches:
|
||||||
|
- path:
|
||||||
|
type: PathPrefix
|
||||||
|
value: /
|
||||||
|
backendRefs:
|
||||||
|
- name: attic-svc
|
||||||
|
port: 8080
|
||||||
@@ -24,5 +24,5 @@ appVersion: "1.0"
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: authentik
|
- name: authentik
|
||||||
version: 2025.8.1
|
version: 2026.11.0
|
||||||
repository: https://charts.goauthentik.io
|
repository: https://charts.goauthentik.io
|
||||||
+65
-20
@@ -25,25 +25,6 @@ authentik:
|
|||||||
- name: cert-dubyatp-xyz
|
- name: cert-dubyatp-xyz
|
||||||
secret:
|
secret:
|
||||||
secretName: cert-dubyatp-xyz
|
secretName: cert-dubyatp-xyz
|
||||||
redis:
|
|
||||||
enabled: true
|
|
||||||
architecture: standalone
|
|
||||||
auth:
|
|
||||||
enabled: false
|
|
||||||
master:
|
|
||||||
resourcesPreset: "none"
|
|
||||||
podAnnotations:
|
|
||||||
backup.velero.io/backup-volumes: redis-data
|
|
||||||
replica:
|
|
||||||
resourcesPreset: "none"
|
|
||||||
sentinel:
|
|
||||||
resourcesPreset: "none"
|
|
||||||
metrics:
|
|
||||||
resourcesPreset: "none"
|
|
||||||
volumePermissions:
|
|
||||||
resourcesPreset: "none"
|
|
||||||
sysctl:
|
|
||||||
resourcesPreset: "none"
|
|
||||||
global:
|
global:
|
||||||
env:
|
env:
|
||||||
- name: AUTHENTIK_SECRET_KEY
|
- name: AUTHENTIK_SECRET_KEY
|
||||||
@@ -51,8 +32,10 @@ authentik:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: authentik-credentials
|
name: authentik-credentials
|
||||||
key: authentik-secret-key
|
key: authentik-secret-key
|
||||||
|
- name: AUTHENTIK_POSTGRESQL__DISABLE_SERVER_SIDE_CURSORS
|
||||||
|
value: "true"
|
||||||
- name: AUTHENTIK_POSTGRESQL__HOST
|
- name: AUTHENTIK_POSTGRESQL__HOST
|
||||||
value: weyma-pgsql-rw.cloudnativepg.svc.cluster.local
|
value: pooler-weyma-rw-authentik.cloudnativepg.svc.cluster.local
|
||||||
- name: AUTHENTIK_POSTGRESQL__NAME
|
- name: AUTHENTIK_POSTGRESQL__NAME
|
||||||
value: authentik
|
value: authentik
|
||||||
- name: AUTHENTIK_POSTGRESQL__USER
|
- name: AUTHENTIK_POSTGRESQL__USER
|
||||||
@@ -62,7 +45,56 @@ authentik:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: authentik-db-auth
|
name: authentik-db-auth
|
||||||
key: password
|
key: password
|
||||||
|
- name: AUTHENTIK_EMAIL__FROM
|
||||||
|
value: [email protected]
|
||||||
|
- name: AUTHENTIK_EMAIL__HOST
|
||||||
|
value: mail.smtp2go.com
|
||||||
|
- name: AUTHENTIK_EMAIL__USE_TLS
|
||||||
|
value: "true"
|
||||||
|
- name: AUTHENTIK_EMAIL__USERNAME
|
||||||
|
value: authentik_dubyatp
|
||||||
|
- name: AUTHENTIK_EMAIL__PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: authentik-credentials
|
||||||
|
key: smtp-password
|
||||||
|
- name: AUTHENTIK_EMAIL__TIMEOUT
|
||||||
|
value: "30"
|
||||||
|
- name: AUTHENTIK_STORAGE__BACKEND
|
||||||
|
value: "s3"
|
||||||
|
- name: AUTHENTIK_STORAGE__S3__ENDPOINT
|
||||||
|
value: "https://weyma-s3.infra.dubyatp.xyz"
|
||||||
|
- name: AUTHENTIK_STORAGE__S3__BUCKET_NAME
|
||||||
|
value: "authentik-files"
|
||||||
|
- name: AUTHENTIK_STORAGE__S3__ACCESS_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: authentik-files
|
||||||
|
key: AWS_ACCESS_KEY_ID
|
||||||
|
- name: AUTHENTIK_STORAGE__S3__SECRET_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: authentik-files
|
||||||
|
key: AWS_SECRET_ACCESS_KEY
|
||||||
additionalObjects:
|
additionalObjects:
|
||||||
|
- apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: Gateway
|
||||||
|
metadata:
|
||||||
|
name: traefik
|
||||||
|
spec:
|
||||||
|
gatewayClassName: traefik
|
||||||
|
listeners:
|
||||||
|
- name: https
|
||||||
|
protocol: HTTPS
|
||||||
|
port: 8443
|
||||||
|
tls:
|
||||||
|
mode: Terminate
|
||||||
|
certificateRefs:
|
||||||
|
- name: cert-dubyatp-xyz
|
||||||
|
namespace: cert-manager
|
||||||
|
allowedRoutes:
|
||||||
|
namespaces:
|
||||||
|
from: Same
|
||||||
- apiVersion: networking.k8s.io/v1
|
- apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
@@ -125,6 +157,10 @@ authentik:
|
|||||||
remoteRef:
|
remoteRef:
|
||||||
key: authentik
|
key: authentik
|
||||||
property: user-password
|
property: user-password
|
||||||
|
- secretKey: smtp-password
|
||||||
|
remoteRef:
|
||||||
|
key: authentik
|
||||||
|
property: smtp-password
|
||||||
- apiVersion: external-secrets.io/v1
|
- apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
@@ -146,3 +182,12 @@ authentik:
|
|||||||
creationPolicy: Owner
|
creationPolicy: Owner
|
||||||
deletionPolicy: Retain
|
deletionPolicy: Retain
|
||||||
name: authentik-db-auth
|
name: authentik-db-auth
|
||||||
|
- apiVersion: objectbucket.io/v1alpha1
|
||||||
|
kind: ObjectBucketClaim
|
||||||
|
metadata:
|
||||||
|
name: authentik-files
|
||||||
|
spec:
|
||||||
|
additionalConfig:
|
||||||
|
maxSize: 20Gi
|
||||||
|
bucketName: authentik-files
|
||||||
|
storageClassName: weyma-s3-bucket
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: cert-dubyatp-xyz
|
|
||||||
annotations:
|
|
||||||
replicator.v1.mittwald.de/replicate-from: "cert-manager/cert-dubyatp-xyz"
|
|
||||||
replicator.v1.mittwald.de/replicated-keys: "tls.crt,tls.key"
|
|
||||||
data:
|
|
||||||
tls.crt: ""
|
|
||||||
tls.key: ""
|
|
||||||
@@ -1,79 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: emby
|
|
||||||
spec:
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: emby
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
backup.velero.io/backup-volumes: emby-config
|
|
||||||
labels:
|
|
||||||
app: emby
|
|
||||||
spec:
|
|
||||||
volumes:
|
|
||||||
- name: tv-shows
|
|
||||||
nfs:
|
|
||||||
server: 10.105.15.20
|
|
||||||
path: /mnt/hdd-pool/tv-shows
|
|
||||||
- name: movies
|
|
||||||
nfs:
|
|
||||||
server: 10.105.15.20
|
|
||||||
path: /mnt/hdd-pool/movies
|
|
||||||
- name: emby-config
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: emby-config
|
|
||||||
- name: transcode-temp
|
|
||||||
emptyDir:
|
|
||||||
sizeLimit: 8Gi
|
|
||||||
medium: Memory
|
|
||||||
- name: dev-dri
|
|
||||||
hostPath:
|
|
||||||
path: /dev/dri
|
|
||||||
containers:
|
|
||||||
- name: emby
|
|
||||||
image: emby/embyserver:4.8.11.0
|
|
||||||
volumeMounts:
|
|
||||||
- name: tv-shows
|
|
||||||
mountPath: /mnt/tv-shows
|
|
||||||
- name: movies
|
|
||||||
mountPath: /mnt/movies
|
|
||||||
- name: emby-config
|
|
||||||
mountPath: /config
|
|
||||||
- name: transcode-temp
|
|
||||||
mountPath: /tmp/transcode
|
|
||||||
- name: dev-dri
|
|
||||||
mountPath: /dev/dri
|
|
||||||
env:
|
|
||||||
- name: UID
|
|
||||||
value: "1000"
|
|
||||||
- name: GID
|
|
||||||
value: "1000"
|
|
||||||
- name: GIDLIST
|
|
||||||
value: "100"
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /
|
|
||||||
port: http
|
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: 8Gi
|
|
||||||
cpu: '1'
|
|
||||||
requests:
|
|
||||||
memory: 4Gi
|
|
||||||
cpu: "500m"
|
|
||||||
nodeSelector:
|
|
||||||
kubernetes.io/hostname: weyma-talos-testw04
|
|
||||||
affinity:
|
|
||||||
nodeAffinity:
|
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
nodeSelectorTerms:
|
|
||||||
- matchExpressions:
|
|
||||||
- key: extensions.talos.dev/i915
|
|
||||||
operator: Exists
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: emby-ingress
|
|
||||||
annotations:
|
|
||||||
traefik.ingress.kubernetes.io/router.middlewares: cloudflarewarp@file
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- host: emby.dubyatp.xyz
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- pathType: Prefix
|
|
||||||
path: "/"
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: emby-http-svc
|
|
||||||
port:
|
|
||||||
number: 8096
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- emby.dubyatp.xyz
|
|
||||||
secretName: cert-dubyatp-xyz
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: resilio-sync
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: resilio-sync
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: resilio-sync
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: resilio-sync
|
|
||||||
image: lscr.io/linuxserver/resilio-sync:3.0.0
|
|
||||||
volumeMounts:
|
|
||||||
- name: config
|
|
||||||
mountPath: /config
|
|
||||||
- name: tv-shows
|
|
||||||
mountPath: /sync/tv-shows
|
|
||||||
- name: movies
|
|
||||||
mountPath: /sync/movies
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: "700Mi"
|
|
||||||
cpu: "500m"
|
|
||||||
volumes:
|
|
||||||
- name: config
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: resilio-pvc
|
|
||||||
- name: tv-shows
|
|
||||||
nfs:
|
|
||||||
server: 10.105.15.20
|
|
||||||
path: /mnt/hdd-pool/tv-shows
|
|
||||||
- name: movies
|
|
||||||
nfs:
|
|
||||||
server: 10.105.15.20
|
|
||||||
path: /mnt/hdd-pool/movies
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: emby-http-svc
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: emby
|
|
||||||
ports:
|
|
||||||
- port: 8096
|
|
||||||
targetPort: 8096
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: emby-https-svc
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: emby
|
|
||||||
ports:
|
|
||||||
- port: 8920
|
|
||||||
targetPort: 8920
|
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: buildkitd
|
||||||
|
namespace: gitea-runner
|
||||||
|
spec:
|
||||||
|
progressDeadlineSeconds: 600
|
||||||
|
replicas: 3
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: buildkitd
|
||||||
|
strategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 25%
|
||||||
|
maxUnavailable: 25%
|
||||||
|
type: RollingUpdate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: buildkitd
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- args:
|
||||||
|
- --addr
|
||||||
|
- tcp://0.0.0.0:1234
|
||||||
|
image: moby/buildkit:v0.27.1
|
||||||
|
imagePullPolicy: Always
|
||||||
|
name: buildkitd
|
||||||
|
ports:
|
||||||
|
- containerPort: 1234
|
||||||
|
protocol: TCP
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
terminationMessagePath: /dev/termination-log
|
||||||
|
terminationMessagePolicy: File
|
||||||
|
dnsPolicy: ClusterFirst
|
||||||
|
restartPolicy: Always
|
||||||
|
schedulerName: default-scheduler
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: buildkitd
|
||||||
|
namespace: gitea-runner
|
||||||
|
spec:
|
||||||
|
internalTrafficPolicy: Cluster
|
||||||
|
ipFamilies:
|
||||||
|
- IPv4
|
||||||
|
ipFamilyPolicy: SingleStack
|
||||||
|
ports:
|
||||||
|
- port: 1234
|
||||||
|
selector:
|
||||||
|
app: buildkitd
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: runner-config
|
||||||
|
data:
|
||||||
|
config.yaml: |-
|
||||||
|
log:
|
||||||
|
level: info
|
||||||
|
runner:
|
||||||
|
file: /data/.runner
|
||||||
|
capacity: 1
|
||||||
|
env_file: .env
|
||||||
|
timeout: 3h
|
||||||
|
shutdown_timeout: 0s
|
||||||
|
insecure: false
|
||||||
|
fetch_timeout: 5s
|
||||||
|
fetch_interval: 2s
|
||||||
|
labels:
|
||||||
|
- "ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest"
|
||||||
|
- "ubuntu-22.04:docker://docker.gitea.com/runner-images:ubuntu-22.04"
|
||||||
|
- "ubuntu-20.04:docker://docker.gitea.com/runner-images:ubuntu-20.04"
|
||||||
|
cache:
|
||||||
|
enabled: true
|
||||||
|
dir: ""
|
||||||
|
host: ""
|
||||||
|
port: 0
|
||||||
|
external_server: ""
|
||||||
|
container:
|
||||||
|
network: "host"
|
||||||
|
privileged: false
|
||||||
|
options: ""
|
||||||
|
workdir_parent: /scratch
|
||||||
|
valid_volumes:
|
||||||
|
- /scratch/**
|
||||||
|
docker_host: ""
|
||||||
|
force_pull: true
|
||||||
|
force_rebuild: false
|
||||||
|
require_docker: false
|
||||||
|
docker_timeout: 0s
|
||||||
|
host:
|
||||||
|
workdir_parent:
|
||||||
@@ -1,79 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
deployment.kubernetes.io/revision: "4"
|
|
||||||
labels:
|
|
||||||
app: act-runner
|
|
||||||
name: act-runner
|
|
||||||
namespace: gitea-runner
|
|
||||||
spec:
|
|
||||||
progressDeadlineSeconds: 600
|
|
||||||
replicas: 1
|
|
||||||
revisionHistoryLimit: 10
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: act-runner
|
|
||||||
strategy:
|
|
||||||
rollingUpdate:
|
|
||||||
maxSurge: 25%
|
|
||||||
maxUnavailable: 25%
|
|
||||||
type: RollingUpdate
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
creationTimestamp: null
|
|
||||||
labels:
|
|
||||||
app: act-runner
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- while ! nc -z localhost 2376 </dev/null; do echo 'waiting for docker daemon...';
|
|
||||||
sleep 5; done; /sbin/tini -- run.sh
|
|
||||||
env:
|
|
||||||
- name: DOCKER_HOST
|
|
||||||
value: tcp://localhost:2376
|
|
||||||
- name: DOCKER_CERT_PATH
|
|
||||||
value: /certs/client
|
|
||||||
- name: DOCKER_TLS_VERIFY
|
|
||||||
value: "1"
|
|
||||||
- name: GITEA_INSTANCE_URL
|
|
||||||
value: https://git.dubyatp.xyz
|
|
||||||
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: token
|
|
||||||
name: runner-secret
|
|
||||||
image: gitea/act_runner:nightly
|
|
||||||
imagePullPolicy: Always
|
|
||||||
name: runner
|
|
||||||
terminationMessagePath: /dev/termination-log
|
|
||||||
terminationMessagePolicy: File
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /certs
|
|
||||||
name: docker-certs
|
|
||||||
- mountPath: /data
|
|
||||||
name: runner-data
|
|
||||||
- env:
|
|
||||||
- name: DOCKER_TLS_CERTDIR
|
|
||||||
value: /certs
|
|
||||||
image: docker:23.0.6-dind
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
name: daemon
|
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
terminationMessagePath: /dev/termination-log
|
|
||||||
terminationMessagePolicy: File
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /certs
|
|
||||||
name: docker-certs
|
|
||||||
dnsPolicy: ClusterFirst
|
|
||||||
restartPolicy: Always
|
|
||||||
schedulerName: default-scheduler
|
|
||||||
terminationGracePeriodSeconds: 30
|
|
||||||
volumes:
|
|
||||||
- name: docker-certs
|
|
||||||
- name: runner-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: act-runner-vol
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: gitea-runner-pvc
|
|
||||||
spec:
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 1Gi
|
|
||||||
volumeMode: Filesystem
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
storageClassName: weyma-shared
|
|
||||||
@@ -0,0 +1,88 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: StatefulSet
|
||||||
|
metadata:
|
||||||
|
name: act-runner
|
||||||
|
namespace: gitea-runner
|
||||||
|
labels:
|
||||||
|
app: act-runner
|
||||||
|
spec:
|
||||||
|
serviceName: ""
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: act-runner
|
||||||
|
replicas: 3
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: act-runner
|
||||||
|
spec:
|
||||||
|
initContainers:
|
||||||
|
- name: sysctl
|
||||||
|
image: busybox
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- echo 28633 > /proc/sys/user/max_user_namespaces
|
||||||
|
- name: chown-data
|
||||||
|
image: busybox
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 0
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- chown -R 1000:1000 /data
|
||||||
|
volumeMounts:
|
||||||
|
- name: runner-data
|
||||||
|
mountPath: /data
|
||||||
|
containers:
|
||||||
|
- name: runner
|
||||||
|
image: gitea/act_runner:nightly-dind-rootless
|
||||||
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: DOCKERD_ROOTLESS_ROOTLESSKIT_FLAGS
|
||||||
|
value: "--net=slirp4netns --copy-up=/etc"
|
||||||
|
- name: CONFIG_FILE
|
||||||
|
value: /config/config.yaml
|
||||||
|
- name: DOCKER_HOST
|
||||||
|
value: unix:///run/user/1000/docker.sock
|
||||||
|
- name: GITEA_INSTANCE_URL
|
||||||
|
value: https://git.dubyatp.xyz
|
||||||
|
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: registration-token
|
||||||
|
name: gitea-runner-token
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
terminationMessagePath: /dev/termination-log
|
||||||
|
terminationMessagePolicy: File
|
||||||
|
volumeMounts:
|
||||||
|
- name: runner-config
|
||||||
|
mountPath: /config
|
||||||
|
- name: runner-data
|
||||||
|
mountPath: /data
|
||||||
|
- name: runner-scratch
|
||||||
|
mountPath: /scratch
|
||||||
|
dnsPolicy: ClusterFirst
|
||||||
|
restartPolicy: Always
|
||||||
|
schedulerName: default-scheduler
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
volumes:
|
||||||
|
- name: runner-scratch
|
||||||
|
emptyDir:
|
||||||
|
medium: Memory
|
||||||
|
sizeLimit: 5Gi
|
||||||
|
- name: runner-config
|
||||||
|
configMap:
|
||||||
|
name: runner-config
|
||||||
|
volumeClaimTemplates:
|
||||||
|
- metadata:
|
||||||
|
name: runner-data
|
||||||
|
spec:
|
||||||
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
|
storageClassName: weyma-shared
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 32Gi
|
||||||
+2
-2
@@ -24,5 +24,5 @@ appVersion: "1.0"
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: gitea
|
- name: gitea
|
||||||
version: 12.2.0
|
version: 12.8.4
|
||||||
repository: https://dl.gitea.com/charts/
|
repository: https://weyma-s3.infra.dubyatp.xyz/helm-bucket-ea34bc44-ef19-480d-a16a-1e583991f123/charts/
|
||||||
+51
-45
@@ -1,15 +1,27 @@
|
|||||||
gitea:
|
gitea:
|
||||||
replicaCount: 3
|
replicaCount: 3
|
||||||
ingress:
|
# ingress:
|
||||||
|
# enabled: true
|
||||||
|
# hosts:
|
||||||
|
# - host: git.dubyatp.xyz
|
||||||
|
# paths:
|
||||||
|
# - path: /
|
||||||
|
# tls:
|
||||||
|
# - secretName: cert-dubyatp-xyz
|
||||||
|
# hosts:
|
||||||
|
# - git.dubyatp.xyz
|
||||||
|
gateway:
|
||||||
|
httpRoute:
|
||||||
enabled: true
|
enabled: true
|
||||||
hosts:
|
hostnames:
|
||||||
- host: git.dubyatp.xyz
|
- git.dubyatp.xyz
|
||||||
|
parentRefs:
|
||||||
|
- name: traefik
|
||||||
|
sectionName: https
|
||||||
|
kind: Gateway
|
||||||
|
pathType: PathPrefix
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
tls:
|
|
||||||
- secretName: cert-dubyatp-xyz
|
|
||||||
hosts:
|
|
||||||
- git.dubyatp.xyz
|
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
create: true
|
create: true
|
||||||
@@ -56,19 +68,9 @@ gitea:
|
|||||||
config:
|
config:
|
||||||
database:
|
database:
|
||||||
DB_TYPE: postgres
|
DB_TYPE: postgres
|
||||||
HOST: weyma-pgsql-rw.cloudnativepg.svc.cluster.local
|
HOST: pooler-weyma-rw.cloudnativepg.svc.cluster.local
|
||||||
NAME: gitea
|
NAME: gitea
|
||||||
USER: gitea
|
USER: gitea
|
||||||
queue:
|
|
||||||
TYPE: redis
|
|
||||||
CONN_STR: redis+cluster://:@gitea-kv-headless.gitea.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
|
|
||||||
session:
|
|
||||||
PROVIDER: redis
|
|
||||||
PROVIDER_CONFIG: redis+cluster://:@gitea-kv-headless.gitea.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
|
|
||||||
cache:
|
|
||||||
ENABLED: 'true'
|
|
||||||
ADAPTER: redis
|
|
||||||
HOST: redis+cluster://:@gitea-kv-headless.gitea.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
|
|
||||||
server:
|
server:
|
||||||
DISABLE_SSH: false
|
DISABLE_SSH: false
|
||||||
DOMAIN: git.dubyatp.xyz
|
DOMAIN: git.dubyatp.xyz
|
||||||
@@ -80,9 +82,7 @@ gitea:
|
|||||||
START_SSH_SERVER: true
|
START_SSH_SERVER: true
|
||||||
OFFLINE_MODE: false
|
OFFLINE_MODE: false
|
||||||
service:
|
service:
|
||||||
DISABLE_REGISTRATION: false
|
DISABLE_REGISTRATION: true
|
||||||
webhook:
|
|
||||||
ALLOWED_HOST_LIST: "drone.infra.dubyatp.xyz,argocd.infra.dubyatp.xyz,discord.com,10.0.0.0/8"
|
|
||||||
mailer:
|
mailer:
|
||||||
ENABLED: true
|
ENABLED: true
|
||||||
FROM: [email protected]
|
FROM: [email protected]
|
||||||
@@ -92,21 +92,17 @@ gitea:
|
|||||||
USER: gitea_dubyatp
|
USER: gitea_dubyatp
|
||||||
security:
|
security:
|
||||||
INSTALL_LOCK: true
|
INSTALL_LOCK: true
|
||||||
|
ALLOWED_HOST_LIST: "drone.infra.dubyatp.xyz,argocd.infra.dubyatp.xyz,discord.com,10.0.0.0/8"
|
||||||
|
metrics:
|
||||||
|
enabled: true
|
||||||
|
serviceMonitor:
|
||||||
|
enabled: true
|
||||||
|
livenessProbe:
|
||||||
|
enabled: true
|
||||||
|
httpGet:
|
||||||
|
path: /api/healthz
|
||||||
|
port: 3000
|
||||||
extraDeploy:
|
extraDeploy:
|
||||||
- apiVersion: hyperspike.io/v1
|
|
||||||
kind: Valkey
|
|
||||||
metadata:
|
|
||||||
name: gitea-kv
|
|
||||||
spec:
|
|
||||||
anonymousAuth: true
|
|
||||||
certIssuerType: ClusterIssuer
|
|
||||||
clusterDomain: cluster.local
|
|
||||||
clusterPreferredEndpointType: ip
|
|
||||||
nodes: 1
|
|
||||||
prometheus: false
|
|
||||||
replicas: 3
|
|
||||||
tls: false
|
|
||||||
volumePermissions: true
|
|
||||||
- apiVersion: traefik.io/v1alpha1
|
- apiVersion: traefik.io/v1alpha1
|
||||||
kind: IngressRouteTCP
|
kind: IngressRouteTCP
|
||||||
metadata:
|
metadata:
|
||||||
@@ -120,16 +116,24 @@ gitea:
|
|||||||
services:
|
services:
|
||||||
- name: gitea-ssh
|
- name: gitea-ssh
|
||||||
port: 22
|
port: 22
|
||||||
- apiVersion: v1
|
- apiVersion: gateway.networking.k8s.io/v1
|
||||||
kind: Secret
|
kind: Gateway
|
||||||
metadata:
|
metadata:
|
||||||
name: cert-dubyatp-xyz
|
name: traefik
|
||||||
annotations:
|
spec:
|
||||||
replicator.v1.mittwald.de/replicate-from: "cert-manager/cert-dubyatp-xyz"
|
gatewayClassName: traefik
|
||||||
replicator.v1.mittwald.de/replicated-keys: "tls.crt,tls.key"
|
listeners:
|
||||||
data:
|
- name: https
|
||||||
tls.crt: ""
|
protocol: HTTPS
|
||||||
tls.key: ""
|
port: 8443
|
||||||
|
tls:
|
||||||
|
mode: Terminate
|
||||||
|
certificateRefs:
|
||||||
|
- name: cert-dubyatp-xyz
|
||||||
|
namespace: cert-manager
|
||||||
|
allowedRoutes:
|
||||||
|
namespaces:
|
||||||
|
from: Same
|
||||||
- apiVersion: external-secrets.io/v1
|
- apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
@@ -203,4 +207,6 @@ gitea:
|
|||||||
postgresql-ha:
|
postgresql-ha:
|
||||||
enabled: false
|
enabled: false
|
||||||
valkey-cluster:
|
valkey-cluster:
|
||||||
enabled: false
|
enabled: true
|
||||||
|
valkey:
|
||||||
|
resourcesPreset: "small"
|
||||||
+1
-1
@@ -24,5 +24,5 @@ appVersion: "1.0"
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: grafana
|
- name: grafana
|
||||||
version: 9.3.6
|
version: 10.5.15
|
||||||
repository: https://grafana.github.io/helm-charts
|
repository: https://grafana.github.io/helm-charts
|
||||||
+1
-1
@@ -191,6 +191,6 @@ grafana:
|
|||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: bats/bats
|
repository: bats/bats
|
||||||
tag: 1.12.0
|
tag: 1.14.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
useStatefulSet: false
|
useStatefulSet: false
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: immich-config
|
|
||||||
data:
|
|
||||||
immich-config.yaml: |
|
|
||||||
trash:
|
|
||||||
enabled: true
|
|
||||||
days: 30
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: immich
|
|
||||||
labels:
|
|
||||||
name: immich
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- host: immich.dubyatp.xyz
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- pathType: Prefix
|
|
||||||
path: "/"
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: immich
|
|
||||||
port:
|
|
||||||
number: 2283
|
|
||||||
tls:
|
|
||||||
- secretName: cert-dubyatp-xyz
|
|
||||||
hosts:
|
|
||||||
- immich.dubyatp.xyz
|
|
||||||
@@ -1,94 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: immich-ml
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: immich-ml
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: immich-ml
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: immich-ml
|
|
||||||
image: ghcr.io/immich-app/immich-machine-learning:v1.134.0
|
|
||||||
volumeMounts:
|
|
||||||
- name: model-cache
|
|
||||||
mountPath: /cache
|
|
||||||
- name: config
|
|
||||||
mountPath: /config/immich-config.yaml
|
|
||||||
- name: dev-dri
|
|
||||||
mountPath: /dev/dri
|
|
||||||
env:
|
|
||||||
- name: DB_HOSTNAME
|
|
||||||
value: "immich-rw.cloudnativepg.svc.cluster.local"
|
|
||||||
- name: DB_DATABASE_NAME
|
|
||||||
value: "immich"
|
|
||||||
- name: DB_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: username
|
|
||||||
name: postgres-credentials
|
|
||||||
- name: DB_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: password
|
|
||||||
name: postgres-credentials
|
|
||||||
- name: REDIS_HOSTNAME
|
|
||||||
value: redis
|
|
||||||
- name: REDIS_PORT
|
|
||||||
value: "6379"
|
|
||||||
- name: IMMICH_PORT
|
|
||||||
value: "3003"
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /ping
|
|
||||||
port: 3003
|
|
||||||
initialDelaySeconds: 0
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 1
|
|
||||||
failureThreshold: 3
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /ping
|
|
||||||
port: 3003
|
|
||||||
initialDelaySeconds: 0
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 1
|
|
||||||
failureThreshold: 3
|
|
||||||
startupProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /ping
|
|
||||||
port: 3003
|
|
||||||
initialDelaySeconds: 0
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 1
|
|
||||||
failureThreshold: 30
|
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: "8Gi"
|
|
||||||
cpu: "2"
|
|
||||||
requests:
|
|
||||||
memory: "2Gi"
|
|
||||||
cpu: "500m"
|
|
||||||
volumes:
|
|
||||||
- name: model-cache
|
|
||||||
emptyDir:
|
|
||||||
sizeLimit: 10Gi
|
|
||||||
- name: config
|
|
||||||
configMap:
|
|
||||||
name: immich-config
|
|
||||||
- name: dev-dri
|
|
||||||
hostPath:
|
|
||||||
path: /dev/dri
|
|
||||||
affinity:
|
|
||||||
nodeAffinity:
|
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
nodeSelectorTerms:
|
|
||||||
- matchExpressions:
|
|
||||||
- key: extensions.talos.dev/i915
|
|
||||||
operator: Exists
|
|
||||||
@@ -1,94 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: immich-server
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: immich-server
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: immich-server
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: immich-server
|
|
||||||
image: ghcr.io/immich-app/immich-server:v1.134.0
|
|
||||||
volumeMounts:
|
|
||||||
- name: library
|
|
||||||
mountPath: /usr/src/app/upload
|
|
||||||
- name: config
|
|
||||||
mountPath: /config/immich-config.yaml
|
|
||||||
- name: dev-dri
|
|
||||||
mountPath: /dev/dri
|
|
||||||
env:
|
|
||||||
- name: DB_HOSTNAME
|
|
||||||
value: "immich-rw.cloudnativepg.svc.cluster.local"
|
|
||||||
- name: DB_DATABASE_NAME
|
|
||||||
value: "immich"
|
|
||||||
- name: DB_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: username
|
|
||||||
name: postgres-credentials
|
|
||||||
- name: DB_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: password
|
|
||||||
name: postgres-credentials
|
|
||||||
- name: REDIS_HOSTNAME
|
|
||||||
value: redis
|
|
||||||
- name: REDIS_PORT
|
|
||||||
value: "6379"
|
|
||||||
- name: IMMICH_PORT
|
|
||||||
value: "2283"
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /api/server/ping
|
|
||||||
port: 2283
|
|
||||||
initialDelaySeconds: 0
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 1
|
|
||||||
failureThreshold: 3
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /api/server/ping
|
|
||||||
port: 2283
|
|
||||||
initialDelaySeconds: 0
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 1
|
|
||||||
failureThreshold: 3
|
|
||||||
startupProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /api/server/ping
|
|
||||||
port: 2283
|
|
||||||
initialDelaySeconds: 0
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 1
|
|
||||||
failureThreshold: 30
|
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: "8Gi"
|
|
||||||
cpu: "2"
|
|
||||||
requests:
|
|
||||||
memory: "2Gi"
|
|
||||||
cpu: "500m"
|
|
||||||
volumes:
|
|
||||||
- name: library
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: immich-library
|
|
||||||
- name: config
|
|
||||||
configMap:
|
|
||||||
name: immich-config
|
|
||||||
- name: dev-dri
|
|
||||||
hostPath:
|
|
||||||
path: /dev/dri
|
|
||||||
affinity:
|
|
||||||
nodeAffinity:
|
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
nodeSelectorTerms:
|
|
||||||
- matchExpressions:
|
|
||||||
- key: extensions.talos.dev/i915
|
|
||||||
operator: Exists
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: immich
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: immich-server
|
|
||||||
ports:
|
|
||||||
- port: 2283
|
|
||||||
targetPort: 2283
|
|
||||||
name: http
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: immich-ml
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: immich-ml
|
|
||||||
ports:
|
|
||||||
- port: 3003
|
|
||||||
targetPort: 3003
|
|
||||||
name: http
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: StatefulSet
|
|
||||||
metadata:
|
|
||||||
name: redis
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: redis
|
|
||||||
serviceName: redis
|
|
||||||
replicas: 1
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: redis
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: redis
|
|
||||||
image: redis:latest
|
|
||||||
command: ["redis-server"]
|
|
||||||
args:
|
|
||||||
- "--port"
|
|
||||||
- "6379"
|
|
||||||
- "--dir"
|
|
||||||
- "/data"
|
|
||||||
- "--appendonly"
|
|
||||||
- "yes"
|
|
||||||
volumeMounts:
|
|
||||||
- name: data
|
|
||||||
mountPath: /data
|
|
||||||
volumeClaimTemplates:
|
|
||||||
- spec:
|
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
|
||||||
storageClassName: rook-ceph-block
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 10Gi
|
|
||||||
metadata:
|
|
||||||
name: data
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: redis
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: redis
|
|
||||||
ports:
|
|
||||||
- port: 6379
|
|
||||||
targetPort: 6379
|
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: jellyfin
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
|
||||||
|
# A chart can be either an 'application' or a 'library' chart.
|
||||||
|
#
|
||||||
|
# Application charts are a collection of templates that can be packaged into versioned archives
|
||||||
|
# to be deployed.
|
||||||
|
#
|
||||||
|
# Library charts provide useful utilities or functions for the chart developer. They're included as
|
||||||
|
# a dependency of application charts to inject those utilities and functions into the rendering
|
||||||
|
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
||||||
|
type: application
|
||||||
|
|
||||||
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
|
# to the chart and its templates, including the app version.
|
||||||
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
|
version: 0.1.0
|
||||||
|
|
||||||
|
# This is the version number of the application being deployed. This version number should be
|
||||||
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
|
appVersion: "1.0"
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: jellyfin
|
||||||
|
version: 3.7.0
|
||||||
|
repository: https://jellyfin.github.io/jellyfin-helm
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: Gateway
|
||||||
|
metadata:
|
||||||
|
name: traefik
|
||||||
|
spec:
|
||||||
|
gatewayClassName: traefik
|
||||||
|
listeners:
|
||||||
|
- name: https
|
||||||
|
protocol: HTTPS
|
||||||
|
port: 8443
|
||||||
|
tls:
|
||||||
|
mode: Terminate
|
||||||
|
certificateRefs:
|
||||||
|
- name: cert-dubyatp-xyz
|
||||||
|
namespace: cert-manager
|
||||||
|
allowedRoutes:
|
||||||
|
namespaces:
|
||||||
|
from: Same
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
{{- if and (.Values.jellyfin.metrics.enabled) (.Values.jellyfin.httpRoute.enabled) -}}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: dummy-svc
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: dummy-svc
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 6767
|
||||||
|
targetPort: 6767
|
||||||
|
---
|
||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: block-metrics
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
{{- toYaml .Values.jellyfin.httpRoute.parentRefs | nindent 4 }}
|
||||||
|
hostnames:
|
||||||
|
{{- toYaml .Values.jellyfin.httpRoute.hostnames | nindent 4 }}
|
||||||
|
rules:
|
||||||
|
- matches:
|
||||||
|
- path:
|
||||||
|
type: PathPrefix
|
||||||
|
value: /metrics
|
||||||
|
backendRefs:
|
||||||
|
- name: dummy-svc
|
||||||
|
port: 6767
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: emby-redirect
|
||||||
|
spec:
|
||||||
|
redirectRegex:
|
||||||
|
regex: ^https?://emby\.dubyatp\.xyz/(.*)$
|
||||||
|
replacement: https://jellyfin.dubyatp.xyz/${1}
|
||||||
|
permanent: true
|
||||||
|
---
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: emby-redirect
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
- web
|
||||||
|
routes:
|
||||||
|
- kind: Rule
|
||||||
|
match: Host(`emby.dubyatp.xyz`)
|
||||||
|
middlewares:
|
||||||
|
- name: emby-redirect
|
||||||
|
services:
|
||||||
|
- name: noop@internal
|
||||||
|
kind: TraefikService
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
jellyfin:
|
||||||
|
deploymentStrategy:
|
||||||
|
type: Recreate
|
||||||
|
httpRoute:
|
||||||
|
enabled: true
|
||||||
|
parentRefs:
|
||||||
|
- name: traefik
|
||||||
|
sectionName: https
|
||||||
|
kind: Gateway
|
||||||
|
hostnames:
|
||||||
|
- jellyfin.dubyatp.xyz
|
||||||
|
persistence:
|
||||||
|
config:
|
||||||
|
size: 25Gi
|
||||||
|
media:
|
||||||
|
enabled: false
|
||||||
|
volumes:
|
||||||
|
- name: tv-shows
|
||||||
|
nfs:
|
||||||
|
server: 10.105.15.20
|
||||||
|
path: /mnt/hdd-pool/tv-shows
|
||||||
|
- name: movies
|
||||||
|
nfs:
|
||||||
|
server: 10.105.15.20
|
||||||
|
path: /mnt/hdd-pool/movies
|
||||||
|
- name: youtube-vids
|
||||||
|
nfs:
|
||||||
|
server: 10.105.15.20
|
||||||
|
path: /mnt/hdd-pool/youtube-vids
|
||||||
|
- name: transcode-temp
|
||||||
|
emptyDir:
|
||||||
|
sizeLimit: 8Gi
|
||||||
|
medium: Memory
|
||||||
|
- name: dev-dri
|
||||||
|
hostPath:
|
||||||
|
path: /dev/dri
|
||||||
|
metrics:
|
||||||
|
enabled: true
|
||||||
|
serviceMonitor:
|
||||||
|
enabled: true
|
||||||
|
volumeMounts:
|
||||||
|
- name: tv-shows
|
||||||
|
mountPath: /mnt/tv-shows
|
||||||
|
- name: movies
|
||||||
|
mountPath: /mnt/movies
|
||||||
|
- name: youtube-vids
|
||||||
|
mountPath: /mnt/youtube-vids
|
||||||
|
- name: transcode-temp
|
||||||
|
mountPath: /tmp/transcode
|
||||||
|
- name: dev-dri
|
||||||
|
mountPath: /dev/dri
|
||||||
|
podAnnotations:
|
||||||
|
backup.velero.io/backup-volumes: config
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: weyma-talos-testw04
|
||||||
|
affinity:
|
||||||
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: extensions.talos.dev/i915
|
||||||
|
operator: Exists
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: netmaker-config
|
||||||
|
data:
|
||||||
|
SERVER_NAME: netmaker.infra.dubyatp.xyz
|
||||||
|
SERVER_API_CONN_STRING: api.netmaker.infra.dubyatp.xyz:443
|
||||||
|
SERVER_HTTP_HOST: api.netmaker.infra.dubyatp.xyz
|
||||||
|
API_PORT: "8081"
|
||||||
|
WG_QUICK_USERSPACE_IMPLEMENTATION: wireguard-go
|
||||||
|
DNS_MODE: "off"
|
||||||
|
DISPLAY_KEYS: "on"
|
||||||
|
DATABASE: postgres
|
||||||
|
SQL_HOST: "pooler-weyma-rw.cloudnativepg.svc.cluster.local"
|
||||||
|
SQL_PORT: "5432"
|
||||||
|
SQL_DB: "netmaker"
|
||||||
|
SQL_USER: "netmaker"
|
||||||
|
MQ_USERNAME: netmaker
|
||||||
|
CORS_ALLOWED_ORIGIN: '*'
|
||||||
|
SERVER_BROKER_ENDPOINT: "ws://mq:1883"
|
||||||
|
BROKER_ENDPOINT: "wss://broker.netmaker.infra.dubyatp.xyz"
|
||||||
|
PLATFORM: "Kubernetes"
|
||||||
|
VERBOSITY: "3"
|
||||||
|
K8s: "true"
|
||||||
|
CACHING_ENABLED: "false"
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: Gateway
|
||||||
|
metadata:
|
||||||
|
name: traefik
|
||||||
|
spec:
|
||||||
|
gatewayClassName: traefik
|
||||||
|
listeners:
|
||||||
|
- name: https
|
||||||
|
protocol: HTTPS
|
||||||
|
port: 8443
|
||||||
|
tls:
|
||||||
|
mode: Terminate
|
||||||
|
certificateRefs:
|
||||||
|
- name: cert-dubyatp-xyz
|
||||||
|
namespace: cert-manager
|
||||||
|
allowedRoutes:
|
||||||
|
namespaces:
|
||||||
|
from: Same
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: netmaker-api
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: traefik
|
||||||
|
sectionName: https
|
||||||
|
kind: Gateway
|
||||||
|
hostnames:
|
||||||
|
- api.netmaker.infra.dubyatp.xyz
|
||||||
|
rules:
|
||||||
|
- matches:
|
||||||
|
- path:
|
||||||
|
type: PathPrefix
|
||||||
|
value: /
|
||||||
|
backendRefs:
|
||||||
|
- name: netmaker-rest
|
||||||
|
port: 8081
|
||||||
@@ -1,12 +1,11 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: resilio-pvc
|
name: shared-certs-pvc
|
||||||
spec:
|
spec:
|
||||||
storageClassName: weyma-shared
|
storageClassName: weyma-shared
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 10Gi
|
storage: 100Mi
|
||||||
volumeMode: Filesystem
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
mosquitto.conf: |
|
||||||
|
per_listener_settings false
|
||||||
|
listener 8883
|
||||||
|
protocol websockets
|
||||||
|
allow_anonymous false
|
||||||
|
listener 1883
|
||||||
|
protocol websockets
|
||||||
|
allow_anonymous false
|
||||||
|
password_file /mosquitto/temp/password.txt
|
||||||
|
wait.sh: |
|
||||||
|
#!/bin/ash
|
||||||
|
|
||||||
|
encrypt_password() {
|
||||||
|
echo "${MQ_USERNAME}:${MQ_PASSWORD}" > /mosquitto/temp/password.txt
|
||||||
|
mosquitto_passwd -U /mosquitto/temp/password.txt
|
||||||
|
chmod 0700 /mosquitto/temp/password.txt
|
||||||
|
}
|
||||||
|
|
||||||
|
main(){
|
||||||
|
|
||||||
|
encrypt_password
|
||||||
|
echo "Starting MQ..."
|
||||||
|
# Run the main container command.
|
||||||
|
/docker-entrypoint.sh
|
||||||
|
/usr/sbin/mosquitto -c /mosquitto/config/mosquitto.conf
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
main "${@}"
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/instance: mosquitto
|
||||||
|
app.kubernetes.io/name: mosquitto
|
||||||
|
name: mosquitto-config
|
||||||
|
namespace: netmaker
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: mosquitto
|
||||||
|
spec:
|
||||||
|
progressDeadlineSeconds: 600
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/instance: mosquitto
|
||||||
|
app.kubernetes.io/name: mosquitto
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/instance: mosquitto
|
||||||
|
app.kubernetes.io/name: mosquitto
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: eclipse-mosquitto:2.0.22-openssl
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
command: ["/mosquitto/config/wait.sh"]
|
||||||
|
livenessProbe:
|
||||||
|
failureThreshold: 3
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
tcpSocket:
|
||||||
|
port: 8883
|
||||||
|
timeoutSeconds: 1
|
||||||
|
name: mosquitto
|
||||||
|
env:
|
||||||
|
- name: MQ_USERNAME
|
||||||
|
value: netmaker
|
||||||
|
- name: MQ_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: mq_password
|
||||||
|
name: netmaker-secrets
|
||||||
|
ports:
|
||||||
|
- containerPort: 1883
|
||||||
|
name: mqtt
|
||||||
|
protocol: TCP
|
||||||
|
- containerPort: 8883
|
||||||
|
name: mqtt2
|
||||||
|
protocol: TCP
|
||||||
|
readinessProbe:
|
||||||
|
failureThreshold: 3
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
tcpSocket:
|
||||||
|
port: 8883
|
||||||
|
timeoutSeconds: 1
|
||||||
|
resources: {}
|
||||||
|
startupProbe:
|
||||||
|
failureThreshold: 30
|
||||||
|
periodSeconds: 5
|
||||||
|
successThreshold: 1
|
||||||
|
tcpSocket:
|
||||||
|
port: 8883
|
||||||
|
timeoutSeconds: 1
|
||||||
|
terminationMessagePath: /dev/termination-log
|
||||||
|
terminationMessagePolicy: File
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /mosquitto/config
|
||||||
|
name: mosquitto-config
|
||||||
|
- mountPath: /mosquitto/certs
|
||||||
|
name: shared-certs
|
||||||
|
- mountPath: /mosquitto/temp
|
||||||
|
name: mosquitto-temp
|
||||||
|
dnsPolicy: ClusterFirst
|
||||||
|
restartPolicy: Always
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
volumes:
|
||||||
|
- configMap:
|
||||||
|
name: mosquitto-config
|
||||||
|
defaultMode: 0755
|
||||||
|
name: mosquitto-config
|
||||||
|
- name: mosquitto-temp
|
||||||
|
emptyDir:
|
||||||
|
- name: shared-certs
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: shared-certs-pvc
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: mosquitto
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: traefik
|
||||||
|
sectionName: https
|
||||||
|
kind: Gateway
|
||||||
|
hostnames:
|
||||||
|
- broker.netmaker.infra.dubyatp.xyz
|
||||||
|
rules:
|
||||||
|
- matches:
|
||||||
|
- path:
|
||||||
|
type: PathPrefix
|
||||||
|
value: /
|
||||||
|
backendRefs:
|
||||||
|
- name: mq
|
||||||
|
port: 8883
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: mq
|
||||||
|
namespace: netmaker
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: mqtt
|
||||||
|
port: 1883
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: mqtt
|
||||||
|
- name: mqtt2
|
||||||
|
port: 8883
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: mqtt2
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/instance: mosquitto
|
||||||
|
app.kubernetes.io/name: mosquitto
|
||||||
|
sessionAffinity: None
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: 'netmaker-mqtt'
|
||||||
|
spec:
|
||||||
|
externalTrafficPolicy: Cluster
|
||||||
|
type: NodePort
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/instance: mosquitto
|
||||||
|
app.kubernetes.io/name: mosquitto
|
||||||
|
ports:
|
||||||
|
- port: 31883
|
||||||
|
nodePort: 31883
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 8883
|
||||||
|
name: nm-mqtt
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: external-secrets.io/v1
|
apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: postgres-credentials
|
name: postgres-pw
|
||||||
spec:
|
spec:
|
||||||
data:
|
data:
|
||||||
- remoteRef:
|
- remoteRef:
|
||||||
@@ -9,17 +9,13 @@ spec:
|
|||||||
decodingStrategy: None
|
decodingStrategy: None
|
||||||
key: cloudnativepg
|
key: cloudnativepg
|
||||||
metadataPolicy: None
|
metadataPolicy: None
|
||||||
property: immich_pw
|
property: netmaker_pw
|
||||||
secretKey: password
|
secretKey: password
|
||||||
refreshInterval: 1h
|
refreshInterval: 1h
|
||||||
secretStoreRef:
|
secretStoreRef:
|
||||||
kind: ClusterSecretStore
|
kind: ClusterSecretStore
|
||||||
name: weyma-vault
|
name: weyma-vault
|
||||||
target:
|
target:
|
||||||
template:
|
|
||||||
data:
|
|
||||||
username: immich
|
|
||||||
password: "{{ .password }}"
|
|
||||||
creationPolicy: Owner
|
creationPolicy: Owner
|
||||||
deletionPolicy: Retain
|
deletionPolicy: Retain
|
||||||
name: postgres-credentials
|
name: postgres-pw
|
||||||
@@ -1,37 +1,30 @@
|
|||||||
apiVersion: external-secrets.io/v1
|
apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: peertube-secret
|
name: netmaker-secrets
|
||||||
spec:
|
spec:
|
||||||
data:
|
data:
|
||||||
- remoteRef:
|
- remoteRef:
|
||||||
conversionStrategy: Default
|
conversionStrategy: Default
|
||||||
decodingStrategy: None
|
decodingStrategy: None
|
||||||
key: peertube
|
key: netmaker
|
||||||
metadataPolicy: None
|
metadataPolicy: None
|
||||||
property: PEERTUBE_SECRET
|
property: master_key
|
||||||
secretKey: PEERTUBE_SECRET
|
secretKey: master_key
|
||||||
- remoteRef:
|
- remoteRef:
|
||||||
conversionStrategy: Default
|
conversionStrategy: Default
|
||||||
decodingStrategy: None
|
decodingStrategy: None
|
||||||
key: peertube
|
key: netmaker
|
||||||
metadataPolicy: None
|
metadataPolicy: None
|
||||||
property: PEERTUBE_DB_PASSWORD
|
property: mq_password
|
||||||
secretKey: PEERTUBE_DB_PASSWORD
|
secretKey: mq_password
|
||||||
- remoteRef:
|
- remoteRef:
|
||||||
conversionStrategy: Default
|
conversionStrategy: Default
|
||||||
decodingStrategy: None
|
decodingStrategy: None
|
||||||
key: peertube
|
key: netmaker
|
||||||
metadataPolicy: None
|
metadataPolicy: None
|
||||||
property: PEERTUBE_SMTP_PASSWORD
|
property: turn_password
|
||||||
secretKey: PEERTUBE_SMTP_PASSWORD
|
secretKey: turn_password
|
||||||
- remoteRef:
|
|
||||||
conversionStrategy: Default
|
|
||||||
decodingStrategy: None
|
|
||||||
key: peertube
|
|
||||||
metadataPolicy: None
|
|
||||||
property: POSTGRES_PASSWORD
|
|
||||||
secretKey: POSTGRES_PASSWORD
|
|
||||||
refreshInterval: 1h
|
refreshInterval: 1h
|
||||||
secretStoreRef:
|
secretStoreRef:
|
||||||
kind: ClusterSecretStore
|
kind: ClusterSecretStore
|
||||||
@@ -39,4 +32,4 @@ spec:
|
|||||||
target:
|
target:
|
||||||
creationPolicy: Owner
|
creationPolicy: Owner
|
||||||
deletionPolicy: Retain
|
deletionPolicy: Retain
|
||||||
name: peertube-secret
|
name: netmaker-secrets
|
||||||
@@ -0,0 +1,95 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: StatefulSet
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: netmaker
|
||||||
|
name: netmaker
|
||||||
|
spec:
|
||||||
|
replicas: 3
|
||||||
|
serviceName: netmaker-headless
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: netmaker
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: netmaker
|
||||||
|
spec:
|
||||||
|
initContainers:
|
||||||
|
- name: init-sysctl
|
||||||
|
image: busybox
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
command: ["/bin/sh", "-c"]
|
||||||
|
args: ["sysctl -w net.ipv4.ip_forward=1 && sysctl -w net.ipv4.conf.all.src_valid_mark=1 && sysctl -w net.ipv6.conf.all.disable_ipv6=0 && sysctl -w net.ipv6.conf.all.forwarding=1"]
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: NODE_ID
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
apiVersion: v1
|
||||||
|
fieldPath: metadata.name
|
||||||
|
- name: SQL_PASS
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: password
|
||||||
|
name: postgres-pw
|
||||||
|
- name: MASTER_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: master_key
|
||||||
|
name: netmaker-secrets
|
||||||
|
- name: MQ_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: mq_password
|
||||||
|
name: netmaker-secrets
|
||||||
|
- name: TURN_SERVER_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: turn_password
|
||||||
|
name: netmaker-secrets
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: netmaker-config
|
||||||
|
image: gravitl/netmaker:v1.8.0
|
||||||
|
imagePullPolicy: Always
|
||||||
|
name: netmaker
|
||||||
|
ports:
|
||||||
|
- containerPort: 8081
|
||||||
|
protocol: TCP
|
||||||
|
- containerPort: 31821
|
||||||
|
protocol: UDP
|
||||||
|
- containerPort: 31822
|
||||||
|
protocol: UDP
|
||||||
|
- containerPort: 31823
|
||||||
|
protocol: UDP
|
||||||
|
- containerPort: 31824
|
||||||
|
protocol: UDP
|
||||||
|
- containerPort: 31825
|
||||||
|
protocol: UDP
|
||||||
|
- containerPort: 31826
|
||||||
|
protocol: UDP
|
||||||
|
- containerPort: 31827
|
||||||
|
protocol: UDP
|
||||||
|
- containerPort: 31828
|
||||||
|
protocol: UDP
|
||||||
|
- containerPort: 31829
|
||||||
|
protocol: UDP
|
||||||
|
- containerPort: 31830
|
||||||
|
protocol: UDP
|
||||||
|
resources: {}
|
||||||
|
securityContext:
|
||||||
|
capabilities:
|
||||||
|
add:
|
||||||
|
- NET_ADMIN
|
||||||
|
- NET_RAW
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /etc/netmaker/
|
||||||
|
name: shared-certs
|
||||||
|
volumes:
|
||||||
|
- name: shared-certs
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: shared-certs-pvc
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: 'netmaker-rest'
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: rest
|
||||||
|
port: 8081
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 8081
|
||||||
|
selector:
|
||||||
|
app: 'netmaker'
|
||||||
|
sessionAffinity: None
|
||||||
|
type: ClusterIP
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: netmaker-ui
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: netmaker-ui
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: netmaker-ui
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: netmaker-ui
|
||||||
|
image: gravitl/netmaker-ui:v1.8.0
|
||||||
|
env:
|
||||||
|
- name: BACKEND_URL
|
||||||
|
value: 'https://api.netmaker.infra.dubyatp.xyz'
|
||||||
|
terminationGracePeriodSeconds: 15
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: netmaker-ui
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: traefik
|
||||||
|
sectionName: https
|
||||||
|
kind: Gateway
|
||||||
|
hostnames:
|
||||||
|
- dashboard.netmaker.infra.dubyatp.xyz
|
||||||
|
rules:
|
||||||
|
- matches:
|
||||||
|
- path:
|
||||||
|
type: PathPrefix
|
||||||
|
value: /
|
||||||
|
backendRefs:
|
||||||
|
- name: netmaker-ui
|
||||||
|
port: 80
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: 'netmaker-ui'
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 80
|
||||||
|
selector:
|
||||||
|
app: 'netmaker-ui'
|
||||||
|
sessionAffinity: None
|
||||||
|
type: 'ClusterIP'
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: nextcloud
|
||||||
|
description: A Helm chart for Kubernetes
|
||||||
|
|
||||||
|
type: application
|
||||||
|
|
||||||
|
version: 0.1.0
|
||||||
|
|
||||||
|
appVersion: "1.0"
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: nextcloud
|
||||||
|
version: 9.4.6
|
||||||
|
repository: https://nextcloud.github.io/helm/
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
apiVersion: batch/v1
|
|
||||||
kind: CronJob
|
|
||||||
metadata:
|
|
||||||
name: nextcloud-cron
|
|
||||||
spec:
|
|
||||||
schedule: "0 * * * *"
|
|
||||||
jobTemplate:
|
|
||||||
spec:
|
|
||||||
template:
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: nextcloud
|
|
||||||
image: nextcloud:28.0.3-apache
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
command:
|
|
||||||
- /bin/sh
|
|
||||||
- -c
|
|
||||||
- curl https://nextcloud.dubyatp.xyz/cron.php
|
|
||||||
restartPolicy: OnFailure
|
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: StatefulSet
|
|
||||||
metadata:
|
|
||||||
name: mariadb
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: mariadb
|
|
||||||
serviceName: mariadb
|
|
||||||
replicas: 1
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
backup.velero.io/backup-volumes: mariadb-data
|
|
||||||
labels:
|
|
||||||
app: mariadb
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: mariadb
|
|
||||||
image: mariadb:10.11.11-jammy
|
|
||||||
env:
|
|
||||||
- name: MARIADB_ROOT_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: MYSQL_ROOT_PASSWORD
|
|
||||||
name: nextcloud-secret
|
|
||||||
- name: MARIADB_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: MYSQL_PASSWORD
|
|
||||||
name: nextcloud-secret
|
|
||||||
- name: MARIADB_USER
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: MYSQL_USER
|
|
||||||
name: nextcloud-secret
|
|
||||||
- name: MARIADB_DATABASE
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: MYSQL_DATABASE
|
|
||||||
name: nextcloud-secret
|
|
||||||
volumeMounts:
|
|
||||||
- name: mariadb-data
|
|
||||||
mountPath: /var/lib/mysql
|
|
||||||
readinessProbe:
|
|
||||||
exec:
|
|
||||||
command: ["healthcheck.sh", "--connect", "--innodb_initialized"]
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 5
|
|
||||||
failureThreshold: 3
|
|
||||||
livenessProbe:
|
|
||||||
exec:
|
|
||||||
command: ["healthcheck.sh", "--connect", "--innodb_initialized"]
|
|
||||||
initialDelaySeconds: 30
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 5
|
|
||||||
failureThreshold: 5
|
|
||||||
volumeClaimTemplates:
|
|
||||||
- metadata:
|
|
||||||
name: mariadb-data
|
|
||||||
spec:
|
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 10Gi
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: mariadb
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: mariadb
|
|
||||||
ports:
|
|
||||||
- port: 3306
|
|
||||||
targetPort: 3306
|
|
||||||
@@ -1,74 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: nextcloud
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: nextcloud
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: nextcloud
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: nextcloud
|
|
||||||
image: nextcloud:28.0.3-apache
|
|
||||||
envFrom:
|
|
||||||
- secretRef:
|
|
||||||
name: nextcloud-secret
|
|
||||||
env:
|
|
||||||
- name: NEXTCLOUD_TRUSTED_DOMAINS
|
|
||||||
value: nextcloud.dubyatp.xyz
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /var/www/html
|
|
||||||
name: nextcloud-data
|
|
||||||
readOnly: false
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: "1Gi"
|
|
||||||
cpu: "1000m"
|
|
||||||
requests:
|
|
||||||
memory: "500Mi"
|
|
||||||
cpu: "500m"
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /status.php
|
|
||||||
port: 80
|
|
||||||
httpHeaders:
|
|
||||||
- name: Host
|
|
||||||
value: nextcloud.dubyatp.xyz
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 5
|
|
||||||
failureThreshold: 3
|
|
||||||
successThreshold: 1
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /status.php
|
|
||||||
port: 80
|
|
||||||
httpHeaders:
|
|
||||||
- name: Host
|
|
||||||
value: nextcloud.dubyatp.xyz
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 5
|
|
||||||
failureThreshold: 3
|
|
||||||
successThreshold: 1
|
|
||||||
startupProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /status.php
|
|
||||||
port: 80
|
|
||||||
httpHeaders:
|
|
||||||
- name: Host
|
|
||||||
value: nextcloud.dubyatp.xyz
|
|
||||||
initialDelaySeconds: 30
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 5
|
|
||||||
failureThreshold: 30
|
|
||||||
successThreshold: 1
|
|
||||||
volumes:
|
|
||||||
- name: nextcloud-data
|
|
||||||
nfs:
|
|
||||||
server: 10.105.15.20
|
|
||||||
path: /mnt/hdd-pool/nextcloud-files
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: nextcloud
|
|
||||||
annotations:
|
|
||||||
traefik.ingress.kubernetes.io/router.middlewares: nextcloud-nextcloud-headers@kubernetescrd,nextcloud-nextcloud-redirectregex@kubernetescrd
|
|
||||||
labels:
|
|
||||||
name: nextcloud
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- host: nextcloud.dubyatp.xyz
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- pathType: Prefix
|
|
||||||
path: "/"
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: nextcloud
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
tls:
|
|
||||||
- secretName: cert-dubyatp-xyz
|
|
||||||
hosts:
|
|
||||||
- nextcloud.dubyatp.xyz
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: traefik.io/v1alpha1
|
|
||||||
kind: Middleware
|
|
||||||
metadata:
|
|
||||||
name: nextcloud-headers
|
|
||||||
spec:
|
|
||||||
headers:
|
|
||||||
frameDeny: true
|
|
||||||
browserXssFilter: true
|
|
||||||
customResponseHeaders:
|
|
||||||
Strict-Transport-Security: "15552000"
|
|
||||||
X-Frame-Options: SAMEORIGIN
|
|
||||||
---
|
|
||||||
apiVersion: traefik.io/v1alpha1
|
|
||||||
kind: Middleware
|
|
||||||
metadata:
|
|
||||||
name: nextcloud-redirectregex
|
|
||||||
spec:
|
|
||||||
redirectRegex:
|
|
||||||
permanent: true
|
|
||||||
regex: https://(.*)/.well-known/(?:card|cal)dav
|
|
||||||
replacement: https://${1}/remote.php/dav
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
apiVersion: external-secrets.io/v1
|
|
||||||
kind: ExternalSecret
|
|
||||||
metadata:
|
|
||||||
name: nextcloud-secret
|
|
||||||
spec:
|
|
||||||
data:
|
|
||||||
- remoteRef:
|
|
||||||
conversionStrategy: Default
|
|
||||||
decodingStrategy: None
|
|
||||||
key: nextcloud
|
|
||||||
metadataPolicy: None
|
|
||||||
property: MYSQL_DATABASE
|
|
||||||
secretKey: MYSQL_DATABASE
|
|
||||||
- remoteRef:
|
|
||||||
conversionStrategy: Default
|
|
||||||
decodingStrategy: None
|
|
||||||
key: nextcloud
|
|
||||||
metadataPolicy: None
|
|
||||||
property: MYSQL_PASSWORD
|
|
||||||
secretKey: MYSQL_PASSWORD
|
|
||||||
- remoteRef:
|
|
||||||
conversionStrategy: Default
|
|
||||||
decodingStrategy: None
|
|
||||||
key: nextcloud
|
|
||||||
metadataPolicy: None
|
|
||||||
property: MYSQL_ROOT_PASSWORD
|
|
||||||
secretKey: MYSQL_ROOT_PASSWORD
|
|
||||||
- remoteRef:
|
|
||||||
conversionStrategy: Default
|
|
||||||
decodingStrategy: None
|
|
||||||
key: nextcloud
|
|
||||||
metadataPolicy: None
|
|
||||||
property: MYSQL_USER
|
|
||||||
secretKey: MYSQL_USER
|
|
||||||
- remoteRef:
|
|
||||||
conversionStrategy: Default
|
|
||||||
decodingStrategy: None
|
|
||||||
key: nextcloud
|
|
||||||
metadataPolicy: None
|
|
||||||
property: REDIS_PASSWORD
|
|
||||||
secretKey: REDIS_PASSWORD
|
|
||||||
refreshInterval: 1h
|
|
||||||
secretStoreRef:
|
|
||||||
kind: ClusterSecretStore
|
|
||||||
name: weyma-vault
|
|
||||||
target:
|
|
||||||
creationPolicy: Owner
|
|
||||||
deletionPolicy: Retain
|
|
||||||
name: nextcloud-secret
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: nextcloud
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: nextcloud
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 80
|
|
||||||
File renamed without changes.
@@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: Gateway
|
||||||
|
metadata:
|
||||||
|
name: traefik
|
||||||
|
spec:
|
||||||
|
gatewayClassName: traefik
|
||||||
|
listeners:
|
||||||
|
- name: https
|
||||||
|
protocol: HTTPS
|
||||||
|
port: 8443
|
||||||
|
tls:
|
||||||
|
mode: Terminate
|
||||||
|
certificateRefs:
|
||||||
|
- name: cert-dubyatp-xyz
|
||||||
|
namespace: cert-manager
|
||||||
|
allowedRoutes:
|
||||||
|
namespaces:
|
||||||
|
from: Same
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{{- if .Values.externalSecret.admin.create }}
|
||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: nextcloud-admin
|
||||||
|
spec:
|
||||||
|
data:
|
||||||
|
- remoteRef:
|
||||||
|
conversionStrategy: Default
|
||||||
|
decodingStrategy: None
|
||||||
|
key: nextcloud
|
||||||
|
metadataPolicy: None
|
||||||
|
property: nextcloud-username
|
||||||
|
secretKey: nextcloud-username
|
||||||
|
- remoteRef:
|
||||||
|
conversionStrategy: Default
|
||||||
|
decodingStrategy: None
|
||||||
|
key: nextcloud
|
||||||
|
metadataPolicy: None
|
||||||
|
property: nextcloud-password
|
||||||
|
secretKey: nextcloud-password
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
name: weyma-vault
|
||||||
|
target:
|
||||||
|
creationPolicy: Owner
|
||||||
|
deletionPolicy: Retain
|
||||||
|
name: nextcloud-admin
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
{{- if .Values.dataVolume.create }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.dataVolume.name }}
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 1Ti
|
||||||
|
accessModes: [ReadWriteMany]
|
||||||
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
storageClassName: ""
|
||||||
|
nfs:
|
||||||
|
server: 10.105.15.20
|
||||||
|
path: {{ .Values.dataVolume.nfsPath }}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.dataVolume.name }}
|
||||||
|
spec:
|
||||||
|
accessModes: [ReadWriteMany]
|
||||||
|
storageClassName: ""
|
||||||
|
volumeName: {{ .Values.dataVolume.name }}
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Ti
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
{{- if .Values.externalSecret.db.create }}
|
||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: nextcloud-db
|
||||||
|
spec:
|
||||||
|
data:
|
||||||
|
- remoteRef:
|
||||||
|
conversionStrategy: Default
|
||||||
|
decodingStrategy: None
|
||||||
|
key: cloudnativepg
|
||||||
|
metadataPolicy: None
|
||||||
|
property: {{ .Values.externalSecret.db.cnpgPropertyName }}
|
||||||
|
secretKey: password
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
name: weyma-vault
|
||||||
|
target:
|
||||||
|
template:
|
||||||
|
data:
|
||||||
|
username: {{ .Values.externalSecret.db.username }}
|
||||||
|
password: "{{`{{ .password }}`}}"
|
||||||
|
creationPolicy: Owner
|
||||||
|
deletionPolicy: Retain
|
||||||
|
name: nextcloud-db
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,99 @@
|
|||||||
|
dataVolume:
|
||||||
|
create: true
|
||||||
|
name: nextcloud-data
|
||||||
|
nfsPath: /mnt/hdd-pool/nextcloud-files
|
||||||
|
externalSecret:
|
||||||
|
db:
|
||||||
|
create: true
|
||||||
|
username: nextcloud
|
||||||
|
cnpgPropertyName: nextcloud_pw
|
||||||
|
admin:
|
||||||
|
create: true
|
||||||
|
nextcloud:
|
||||||
|
podAnnotations:
|
||||||
|
backup.velero.io/backup-volumes: nextcloud-main
|
||||||
|
replicaCount: 1
|
||||||
|
httpRoute:
|
||||||
|
enabled: true
|
||||||
|
hostnames:
|
||||||
|
- nextcloud.dubyatp.xyz
|
||||||
|
parentRefs:
|
||||||
|
- name: traefik
|
||||||
|
sectionName: https
|
||||||
|
kind: Gateway
|
||||||
|
rules:
|
||||||
|
- matches:
|
||||||
|
- path:
|
||||||
|
type: PathPrefix
|
||||||
|
value: /
|
||||||
|
filters:
|
||||||
|
- type: ResponseHeaderModifier
|
||||||
|
responseHeaderModifier:
|
||||||
|
set:
|
||||||
|
- name: Strict-Transport-Security
|
||||||
|
value: "max-age=15552000; includeSubDomains"
|
||||||
|
nextcloud:
|
||||||
|
host: nextcloud.dubyatp.xyz
|
||||||
|
existingSecret:
|
||||||
|
enabled: true
|
||||||
|
secretName: nextcloud-admin
|
||||||
|
configs:
|
||||||
|
domains.config.php: |-
|
||||||
|
<?php
|
||||||
|
$CONFIG = array (
|
||||||
|
'trusted_domains' => array (
|
||||||
|
0 => 'localhost',
|
||||||
|
1 => 'nextcloud.dubyatp.xyz',
|
||||||
|
),
|
||||||
|
'overwrite.cli.url' => 'https://nextcloud.dubyatp.xyz',
|
||||||
|
'overwriteprotocol' => 'https',
|
||||||
|
'trusted_proxies' => array ('127.0.0.1', '10.0.0.0/8'),
|
||||||
|
'forwarded_for_headers' => array ('HTTP_X_FORWARDED_FOR'),
|
||||||
|
'default_phone_region' => 'US',
|
||||||
|
'maintenance_window_start' => 1,
|
||||||
|
);
|
||||||
|
db.config.php: |-
|
||||||
|
<?php
|
||||||
|
$CONFIG = array (
|
||||||
|
'dbtype' => 'pgsql',
|
||||||
|
'dbhost' => getenv('POSTGRES_HOST'),
|
||||||
|
'dbport' => '5432',
|
||||||
|
'dbname' => getenv('POSTGRES_DB'),
|
||||||
|
'dbuser' => getenv('POSTGRES_USER'),
|
||||||
|
'dbpassword' => getenv('POSTGRES_PASSWORD'),
|
||||||
|
);
|
||||||
|
internalDatabase:
|
||||||
|
enabled: false
|
||||||
|
externalDatabase:
|
||||||
|
enabled: true
|
||||||
|
type: postgresql
|
||||||
|
host: pooler-weyma-rw.cloudnativepg.svc.cluster.local
|
||||||
|
database: nextcloud
|
||||||
|
existingSecret:
|
||||||
|
enabled: true
|
||||||
|
secretName: nextcloud-db
|
||||||
|
usernameKey: username
|
||||||
|
passwordKey: password
|
||||||
|
redis:
|
||||||
|
enabled: true
|
||||||
|
architecture: standalone
|
||||||
|
auth:
|
||||||
|
enabled: false
|
||||||
|
master:
|
||||||
|
persistence:
|
||||||
|
enabled: false
|
||||||
|
commonConfiguration: |-
|
||||||
|
appendonly no
|
||||||
|
save ""
|
||||||
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
nextcloudData:
|
||||||
|
enabled: true
|
||||||
|
existingClaim: nextcloud-data
|
||||||
|
accessMode: ReadWriteMany
|
||||||
|
cronjob:
|
||||||
|
enabled: true
|
||||||
|
type: sidecar
|
||||||
|
startupProbe:
|
||||||
|
enabled: true
|
||||||
|
failureThreshold: 90
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: peertube-config
|
|
||||||
data:
|
|
||||||
PEERTUBE_INSTANCE_NAME: "dubyatp peertube"
|
|
||||||
PEERTUBE_INSTANCE_DESCRIPTION: "duby's peertube instance"
|
|
||||||
POSTGRES_USER: peertube
|
|
||||||
POSTGRES_DB: peertube
|
|
||||||
PEERTUBE_DB_USERNAME: peertube
|
|
||||||
PEERTUBE_DB_HOSTNAME: weyma-pgsql-rw.cloudnativepg.svc.cluster.local
|
|
||||||
PEERTUBE_DB_PORT: "5432"
|
|
||||||
PEERTUBE_WEBSERVER_HOSTNAME: "tube.dubyatp.xyz"
|
|
||||||
PEERTUBE_TRUST_PROXY: '["127.0.0.1", "loopback", "172.18.0.0/16"]'
|
|
||||||
PEERTUBE_SMTP_USERNAME: "peertube_dubyatp"
|
|
||||||
PEERTUBE_SMTP_HOSTNAME: "mail.smtp2go.com"
|
|
||||||
PEERTUBE_SMTP_PORT: "465"
|
|
||||||
PEERTUBE_SMTP_TLS: "true"
|
|
||||||
PEERTUBE_SMTP_FROM: "[email protected]"
|
|
||||||
PEERTUBE_ADMIN_EMAIL: "[email protected]"
|
|
||||||
#PEERTUBE_OBJECT_STORAGE_ENABLED: "true"
|
|
||||||
#PEERTUBE_OBJECT_STORAGE_ENDPOINT: "https://weyma-s3.infra.dubyatp.xyz"
|
|
||||||
#PEERTUBE_OBJECT_STORAGE_REGION: ""
|
|
||||||
#PEERTUBE_OBJECT_STORAGE_STREAMING_PLAYLISTS_BUCKET_NAME: "peertube-953221d2-7649-48b2-b79f-5a9e59daedbb"
|
|
||||||
#PEERTUBE_OBJECT_STORAGE_STREAMING_PLAYLISTS_PREFIX: "streaming/"
|
|
||||||
#PEERTUBE_OBJECT_STORAGE_WEB_VIDEOS_BUCKET_NAME: "peertube-953221d2-7649-48b2-b79f-5a9e59daedbb"
|
|
||||||
#PEERTUBE_OBJECT_STORAGE_WEB_VIDEOS_PREFIX: "videos/"
|
|
||||||
#PEERTUBE_OBJECT_STORAGE_USER_EXPORTS_BUCKET_NAME: "peertube-953221d2-7649-48b2-b79f-5a9e59daedbb"
|
|
||||||
#PEERTUBE_OBJECT_STORAGE_USER_EXPORTS_PREFIX: "exports/"
|
|
||||||
#PEERTUBE_OBJECT_STORAGE_ORIGINAL_VIDEO_FILES_BUCKET_NAME: "peertube-953221d2-7649-48b2-b79f-5a9e59daedbb"
|
|
||||||
#PEERTUBE_OBJECT_STORAGE_ORIGINAL_VIDEO_FILES_PREFIX: "original-videos/"
|
|
||||||
#PEERTUBE_OBJECT_STORAGE_CAPTIONS_BUCKET_NAME: "peertube-953221d2-7649-48b2-b79f-5a9e59daedbb"
|
|
||||||
#PEERTUBE_OBJECT_STORAGE_CAPTIONS_PREFIX: "captions/"
|
|
||||||
#PEERTUBE_OBJECT_STORAGE_UPLOAD_ACL_PUBLIC: "public-read"
|
|
||||||
#PEERTUBE_OBJECT_STORAGE_UPLOAD_ACL_PRIVATE: "private"
|
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: peertube
|
|
||||||
labels:
|
|
||||||
app: peertube
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: peertube
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: peertube
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: peertube
|
|
||||||
image: chocobozzz/peertube:v7.2.3-bookworm
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
|
||||||
name: http
|
|
||||||
- containerPort: 443
|
|
||||||
name: https
|
|
||||||
- containerPort: 9000
|
|
||||||
name: peertube
|
|
||||||
- containerPort: 1935
|
|
||||||
name: rtmp
|
|
||||||
envFrom:
|
|
||||||
- secretRef:
|
|
||||||
name: peertube-secret
|
|
||||||
- secretRef:
|
|
||||||
name: peertube-bucket
|
|
||||||
- configMapRef:
|
|
||||||
name: peertube-config
|
|
||||||
env:
|
|
||||||
- name: PEERTUBE_REDIS_HOSTNAME
|
|
||||||
value: "localhost"
|
|
||||||
- name: PEERTUBE_REDIS_AUTH
|
|
||||||
value: ""
|
|
||||||
volumeMounts:
|
|
||||||
- name: peertube-data
|
|
||||||
mountPath: /data
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: "0.5"
|
|
||||||
memory: 1Gi
|
|
||||||
limits:
|
|
||||||
cpu: "1"
|
|
||||||
memory: 2Gi
|
|
||||||
- name: redis
|
|
||||||
image: redis:8.2.1-alpine
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
ports:
|
|
||||||
- containerPort: 6379
|
|
||||||
name: redis
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: "0.2"
|
|
||||||
memory: 256Mi
|
|
||||||
limits:
|
|
||||||
cpu: "0.5"
|
|
||||||
memory: 1Gi
|
|
||||||
volumes:
|
|
||||||
- name: peertube-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: peertube-data
|
|
||||||
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: peertube
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: peertube
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- host: tube.dubyatp.xyz
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- pathType: Prefix
|
|
||||||
path: "/"
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: peertube
|
|
||||||
port:
|
|
||||||
number: 9000
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: peertube-data
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 50Gi
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
kind: Service
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: peertube
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: peertube
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 80
|
|
||||||
targetPort: 80
|
|
||||||
name: http
|
|
||||||
- protocol: TCP
|
|
||||||
port: 25
|
|
||||||
targetPort: 25
|
|
||||||
name: smtp
|
|
||||||
- protocol: TCP
|
|
||||||
port: 9000
|
|
||||||
targetPort: 9000
|
|
||||||
name: peertube
|
|
||||||
- protocol: TCP
|
|
||||||
name: rtmp
|
|
||||||
port: 1935
|
|
||||||
targetPort: 1935
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
apiVersion: hyperspike.io/v1
|
|
||||||
kind: Valkey
|
|
||||||
metadata:
|
|
||||||
name: peertube-kv
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/instance: peertube
|
|
||||||
spec:
|
|
||||||
anonymousAuth: true
|
|
||||||
certIssuerType: ClusterIssuer
|
|
||||||
clusterDomain: cluster.local
|
|
||||||
clusterPreferredEndpointType: ip
|
|
||||||
nodes: 1
|
|
||||||
prometheus: false
|
|
||||||
replicas: 3
|
|
||||||
tls: false
|
|
||||||
volumePermissions: true
|
|
||||||
+4
-1
@@ -1,3 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"kubernetes": {
|
||||||
|
"managerFilePatterns": ["deployment.yaml", "statefulset.yaml", "cron.yaml", "cronjob.yaml"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -10,6 +10,7 @@ data:
|
|||||||
"infrastructure/db-operators",
|
"infrastructure/db-operators",
|
||||||
"infrastructure/weyma-talos",
|
"infrastructure/weyma-talos",
|
||||||
"williamp/dubyatp.xyz",
|
"williamp/dubyatp.xyz",
|
||||||
"williamp/yt-dlp-bot"
|
"williamp/yt-dlp-bot",
|
||||||
|
"williamp/helm-gitea"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -27,6 +27,11 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
key: github-com-pat
|
key: github-com-pat
|
||||||
name: renovate-github-com-token
|
name: renovate-github-com-token
|
||||||
|
- name: RENOVATE_GIT_PRIVATE_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: ssh-key
|
||||||
|
name: renovate-ssh-key
|
||||||
- name: RENOVATE_AUTODISCOVER
|
- name: RENOVATE_AUTODISCOVER
|
||||||
value: 'false'
|
value: 'false'
|
||||||
- name: RENOVATE_BASE_DIR
|
- name: RENOVATE_BASE_DIR
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: renovate-ssh-key
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
name: weyma-vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: renovate-ssh-key
|
||||||
|
creationPolicy: Owner
|
||||||
|
data:
|
||||||
|
- secretKey: ssh-key
|
||||||
|
remoteRef:
|
||||||
|
key: renovate
|
||||||
|
property: ssh-key
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: wekan
|
name: searxng
|
||||||
description: A Helm chart for Kubernetes
|
description: A Helm chart for Kubernetes
|
||||||
|
|
||||||
# A chart can be either an 'application' or a 'library' chart.
|
# A chart can be either an 'application' or a 'library' chart.
|
||||||
@@ -23,6 +23,6 @@ version: 0.1.0
|
|||||||
appVersion: "1.0"
|
appVersion: "1.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: wekan
|
- name: searxng
|
||||||
version: 7.94.0
|
version: 1.1.4
|
||||||
repository: https://wekan.github.io/charts/
|
repository: https://charts.kubito.dev
|
||||||
@@ -17,7 +17,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: vaultwarden
|
- name: vaultwarden
|
||||||
image: vaultwarden/server:1.33.2-alpine
|
image: vaultwarden/server:1.37.4-alpine
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: Gateway
|
||||||
|
metadata:
|
||||||
|
name: traefik
|
||||||
|
spec:
|
||||||
|
gatewayClassName: traefik
|
||||||
|
listeners:
|
||||||
|
- name: https
|
||||||
|
protocol: HTTPS
|
||||||
|
port: 8443
|
||||||
|
tls:
|
||||||
|
mode: Terminate
|
||||||
|
certificateRefs:
|
||||||
|
- name: cert-dubyatp-xyz
|
||||||
|
namespace: cert-manager
|
||||||
|
allowedRoutes:
|
||||||
|
namespaces:
|
||||||
|
from: Same
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: vaultwarden
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: traefik
|
||||||
|
sectionName: https
|
||||||
|
kind: Gateway
|
||||||
|
hostnames:
|
||||||
|
- vaultwarden.dubyatp.xyz
|
||||||
|
rules:
|
||||||
|
- matches:
|
||||||
|
- path:
|
||||||
|
type: PathPrefix
|
||||||
|
value: /
|
||||||
|
backendRefs:
|
||||||
|
- name: vaultwarden-svc
|
||||||
|
port: 80
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: vaultwarden
|
|
||||||
labels:
|
|
||||||
name: vaultwarden
|
|
||||||
annotations:
|
|
||||||
traefik.ingress.kubernetes.io/router.middlewares: cloudflarewarp@file
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- host: vaultwarden.dubyatp.xyz
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- pathType: Prefix
|
|
||||||
path: "/"
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: vaultwarden-svc
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- vaultwarden.dubyatp.xyz
|
|
||||||
secretName: cert-dubyatp-xyz
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{{- define "wekan.fullname" -}}
|
|
||||||
{{- if .Values.fullnameOverride -}}
|
|
||||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
|
||||||
{{- if contains $name .Release.Name -}}
|
|
||||||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{{ if .Values.configMapsManaged }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: {{ template "wekan.fullname" $ }}-config
|
|
||||||
data:
|
|
||||||
{{- range $key := .Values.configMapEnv -}}
|
|
||||||
{{ if $key.value }}
|
|
||||||
{{ $key.name | indent 2 }}: {{ $key.value | toString | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{ end }}
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
{{- if .Values.externalSecretsManaged }}
|
|
||||||
apiVersion: external-secrets.io/v1
|
|
||||||
kind: ExternalSecret
|
|
||||||
metadata:
|
|
||||||
name: {{ include "wekan.fullname" . }}-extsecret
|
|
||||||
spec:
|
|
||||||
data:
|
|
||||||
{{- if .Values.externalSecrets.secrets }}
|
|
||||||
{{- range $key := .Values.externalSecrets.secrets }}
|
|
||||||
{{- if $key.keyName }}
|
|
||||||
- secretKey: {{ $key.secretKeyName }}
|
|
||||||
remoteRef:
|
|
||||||
conversionStrategy: Default
|
|
||||||
decodingStrategy: None
|
|
||||||
key: {{ $key.keyName }}
|
|
||||||
metadataPolicy: None
|
|
||||||
property: {{ $key.property }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- else }}
|
|
||||||
{{- fail "externalSecrets.secrets must be defined when externalSecretsManaged is true" }}
|
|
||||||
{{- end }}
|
|
||||||
refreshInterval: 1h
|
|
||||||
secretStoreRef:
|
|
||||||
kind: {{ .Values.externalSecrets.secretStore.kind }}
|
|
||||||
name: {{ .Values.externalSecrets.secretStore.name }}
|
|
||||||
target:
|
|
||||||
creationPolicy: Owner
|
|
||||||
deletionPolicy: Retain
|
|
||||||
name: {{ .Values.externalSecrets.targetSecretName }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
externalSecretsManaged: true
|
|
||||||
externalSecrets:
|
|
||||||
targetSecretName: wekan-secrets
|
|
||||||
secrets:
|
|
||||||
- keyName: wekan
|
|
||||||
secretKeyName: OAUTH2_CLIENT_ID
|
|
||||||
property: client_id
|
|
||||||
- keyName: wekan
|
|
||||||
secretKeyName: OAUTH2_SECRET
|
|
||||||
property: secret
|
|
||||||
secretStore:
|
|
||||||
kind: ClusterSecretStore
|
|
||||||
name: weyma-vault
|
|
||||||
configMapsManaged: true
|
|
||||||
configMapEnv:
|
|
||||||
- name: OAUTH2_ENABLED
|
|
||||||
value: "true"
|
|
||||||
- name: OAUTH2_LOGIN_STYLE
|
|
||||||
value: redirect
|
|
||||||
- name: OAUTH2_SERVER_URL
|
|
||||||
value: https://auth.dubyatp.xyz
|
|
||||||
- name: OAUTH2_AUTH_ENDPOINT
|
|
||||||
value: /application/o/authorize/
|
|
||||||
- name: OAUTH2_USERINFO_ENDPOINT
|
|
||||||
value: /application/o/userinfo/
|
|
||||||
- name: OAUTH2_TOKEN_ENDPOINT
|
|
||||||
value: /application/o/token/
|
|
||||||
- name: OAUTH2_ID_MAP
|
|
||||||
value: sub
|
|
||||||
- name: OAUTH2_USERNAME_MAP
|
|
||||||
value: email
|
|
||||||
- name: OAUTH2_FULLNAME_MAP
|
|
||||||
value: given_name
|
|
||||||
- name: OAUTH2_EMAIL_MAP
|
|
||||||
value: email
|
|
||||||
wekan:
|
|
||||||
endpoint: wekan.dubyatp.xyz
|
|
||||||
root_url: https://wekan.dubyatp.xyz
|
|
||||||
secretManaged: false
|
|
||||||
podAnnotations:
|
|
||||||
backup.velero.io/backup-volumes: shared-data-volume
|
|
||||||
sharedDataFolder:
|
|
||||||
accessMode: ReadWriteMany
|
|
||||||
extraEnvFrom: |
|
|
||||||
- configMapRef:
|
|
||||||
name: wekan-config
|
|
||||||
- secretRef:
|
|
||||||
name: wekan-secrets
|
|
||||||
ingress:
|
|
||||||
enabled: true
|
|
||||||
path: /
|
|
||||||
pathtype: ImplementationSpecific
|
|
||||||
hosts:
|
|
||||||
- wekan.dubyatp.xyz
|
|
||||||
tls:
|
|
||||||
- secretName: cert-dubyatp-xyz
|
|
||||||
hosts:
|
|
||||||
- wekan.dubyatp.xyz
|
|
||||||
mongodb:
|
|
||||||
updateStrategy:
|
|
||||||
type: Recreate
|
|
||||||
podAnnotations:
|
|
||||||
backup.velero.io/backup-volumes: datadir
|
|
||||||
Loaded 100 of 108 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user