217 Commits

Author SHA1 Message Date
6b442b728a adding ingress for testing 2024-06-27 16:43:25 +10:00
d4dceafb8c adding ingress for testing 2024-06-27 16:18:09 +10:00
1ea019717e update values for the kubernetes-event-exporter 2024-06-27 15:55:19 +10:00
6e118f5a3a update local-path-provisioner 2024-06-27 15:38:50 +10:00
d6a43ad78b update config for the kubernetes-event-exporter 2024-06-27 15:11:11 +10:00
250e3bb9bb Merge pull request #385 from 3dwardch3ng/misc
Misc
2024-06-27 14:28:41 +10:00
d6d463e866 adding namespace to the SourceRef for the bitnami 2024-06-27 14:28:19 +10:00
f6544c3ce7 fix local-path-provisioner repo ref branch 2024-06-27 14:25:30 +10:00
11538db808 add kubernetes-event-exporter 2024-06-27 14:09:09 +10:00
8f00abdf28 Merge pull request #384 from 3dwardch3ng/infra/grafana/dashboard/16098-node-exporter-job-20240520
update prometheus port config
2024-06-27 12:46:34 +10:00
d8fe8796c2 update prometheus port config 2024-06-27 12:45:45 +10:00
d5a097793f Merge pull request #383 from 3dwardch3ng/infra/grafana/dashboard/16098-node-exporter-job-20240520
update image for flask_consul
2024-06-27 11:34:44 +10:00
529a73d932 update image for flask_consul 2024-06-27 11:34:25 +10:00
262bc9b810 Merge pull request #382 from 3dwardch3ng/infra/local-path-provisioner
add PVs for redis
2024-06-27 10:28:52 +10:00
d077a2945e add PVs for redis 2024-06-27 10:24:29 +10:00
1d75289cfe Merge pull request #381 from 3dwardch3ng/infra/local-path-provisioner
Infra/local path provisioner
2024-06-27 10:16:19 +10:00
11050a71b2 fix storageClassName of redis volumes 2024-06-27 10:15:58 +10:00
9da194cb69 fix storageClassName of jellyfin data and config volumes 2024-06-27 10:12:56 +10:00
0e007eed23 Merge pull request #380 from 3dwardch3ng/infra/local-path-provisioner
fix interval for local-path-provisioner
2024-06-27 10:06:59 +10:00
975ea5b9d2 fix interval for local-path-provisioner 2024-06-27 10:06:38 +10:00
e2cc315694 Merge pull request #379 from 3dwardch3ng/infra/local-path-provisioner
update dependency
2024-06-27 09:57:52 +10:00
5107c79885 update dependency 2024-06-27 09:57:32 +10:00
ffcc046e38 Merge pull request #378 from 3dwardch3ng/infra/local-path-provisioner
remove unneeded dependency
2024-06-27 09:55:45 +10:00
89f75af049 remove unneeded dependency 2024-06-27 09:55:16 +10:00
9784fa10c4 Merge pull request #377 from 3dwardch3ng/infra/local-path-provisioner
Infra/local path provisioner
2024-06-27 09:52:14 +10:00
ab52e540b5 add namespace local-path-storage 2024-06-27 09:51:47 +10:00
6f35053842 revert from local-mount-nfs to local-path 2024-06-27 09:49:33 +10:00
6ae9a99b8a Merge pull request #376 from 3dwardch3ng/infra/local-path-provisioner
add infra app local-path-provisioner
2024-06-27 09:47:52 +10:00
25793b75f1 add infra app local-path-provisioner 2024-06-27 09:47:38 +10:00
2904ec7aca add infra app local-path-provisioner 2024-06-27 09:46:52 +10:00
8fd615eb68 Merge pull request #375 from 3dwardch3ng/misc
update storage class local-mount-nfs
2024-06-27 09:10:10 +10:00
515998e708 update storage class local-mount-nfs 2024-06-27 09:09:06 +10:00
89d529def1 Merge pull request #374 from 3dwardch3ng/misc
refactor redis service to be infrastructure
2024-06-27 08:54:25 +10:00
703933a222 refactor redis service to be infrastructure 2024-06-27 08:53:53 +10:00
0a97af35a0 Merge pull request #373 from 3dwardch3ng/infra/grafana/dashboard/16098-node-exporter-job-20240520
fix issues for grafana dashboards
2024-06-27 03:36:49 +10:00
a7716a912c fix issues for grafana dashboards 2024-06-27 03:36:15 +10:00
4b5a5f9885 Merge pull request #372 from 3dwardch3ng/infra/grafana/dashboard/16098-node-exporter-job-20240520
fix issues for grafana dashboards
2024-06-27 03:23:47 +10:00
033c3a2694 fix issues for grafana dashboards 2024-06-27 03:23:26 +10:00
196023b1fa Merge pull request #371 from 3dwardch3ng/infra/grafana/dashboard/16098-node-exporter-job-20240520
Infra/grafana/dashboard/16098 node exporter job 20240520
2024-06-27 03:15:27 +10:00
35cdd062df fix ns issue for grafana dashboards 2024-06-27 03:15:10 +10:00
4941c7bb15 fix ns issue for grafana dashboards 2024-06-27 03:14:52 +10:00
85a4e06740 Merge pull request #370 from 3dwardch3ng/infra/grafana/dashboard/16098-node-exporter-job-20240520
fix ns issue for grafana dashboards
2024-06-27 03:13:04 +10:00
93adac3a24 fix ns issue for grafana dashboards 2024-06-27 03:12:46 +10:00
3f736dd3b2 Merge pull request #369 from 3dwardch3ng/infra/grafana/dashboard/16098-node-exporter-job-20240520
update images
2024-06-27 03:00:34 +10:00
0af30526ba update images 2024-06-27 03:00:15 +10:00
8090c382fd Merge pull request #368 from 3dwardch3ng/infra/grafana/dashboard/16098-node-exporter-job-20240520
using storage class local-mount-nfs to retain data on nfs drive
2024-06-27 02:53:23 +10:00
76a11c16eb using storage class local-mount-nfs to retain data on nfs drive 2024-06-27 02:53:04 +10:00
a118ca9102 Merge pull request #367 from 3dwardch3ng/infra/grafana/dashboard/16098-node-exporter-job-20240520
using storage class local-mount-nfs to retain data on nfs drive
2024-06-27 02:51:52 +10:00
c90c2015d7 using storage class local-mount-nfs to retain data on nfs drive 2024-06-27 02:51:33 +10:00
20ca563537 Merge pull request #366 from 3dwardch3ng/infra/grafana/dashboard/16098-node-exporter-job-20240520
folder restructure for prometheus boards
2024-06-27 02:28:04 +10:00
107dba9bf8 folder restructure for prometheus boards 2024-06-27 02:27:45 +10:00
7bfa2d54a4 Merge pull request #365 from 3dwardch3ng/infra/node-exporter
folder restructure for prometheus-exporters
2024-06-27 02:23:08 +10:00
18e8bb4db8 folder restructure for prometheus-exporters 2024-06-27 02:21:27 +10:00
c8dd48b104 Merge pull request #364 from 3dwardch3ng/infra/grafana/dashboard/16098-node-exporter-job-20240520
update consul volumes
2024-06-27 02:13:40 +10:00
04c1de1467 update consul volumes 2024-06-27 02:13:18 +10:00
17f2acedbf Merge pull request #363 from 3dwardch3ng/infra/grafana/dashboard/16098-node-exporter-job-20240520
update consul volumes
2024-06-27 02:09:59 +10:00
e1dce09027 update consul volumes 2024-06-27 02:09:39 +10:00
66c17604c6 Merge pull request #362 from 3dwardch3ng/infra/grafana/dashboard/16098-node-exporter-job-20240520
fixing 89190 services
2024-06-27 01:43:46 +10:00
187403470a fixing 89190 services 2024-06-27 01:43:23 +10:00
8f9b299c46 Merge pull request #361 from 3dwardch3ng/infra/grafana/dashboard/16098-node-exporter-job-20240520
add grafana-dashboards 8919
2024-06-27 01:29:37 +10:00
c17d3d77d2 add grafana-dashboards 8919 2024-06-27 01:29:18 +10:00
731ac3d7d5 Merge pull request #360 from 3dwardch3ng/infra/grafana/dashboard/16098-node-exporter-job-20240520
add grafana-dashboards 16098
2024-06-27 01:26:19 +10:00
2ccc680abc add grafana-dashboards 16098 2024-06-27 01:25:57 +10:00
ad73ae43a1 Merge pull request #359 from 3dwardch3ng/infra/consul
add infra consul
2024-06-27 00:59:29 +10:00
2c6c85df47 add infra consul 2024-06-27 00:59:10 +10:00
6a5d02b21b Merge pull request #358 from 3dwardch3ng/infra/node-exporter
update node-exporter
2024-06-27 00:33:54 +10:00
b96697689e update node-exporter 2024-06-27 00:33:28 +10:00
a7b26bbe6f Merge pull request #357 from 3dwardch3ng/infra/prometheus
update grafana volumes
2024-06-26 23:41:07 +10:00
0b74f8f246 update grafana volumes 2024-06-26 23:40:05 +10:00
8ba289e248 Merge pull request #356 from 3dwardch3ng/infra/prometheus
update grafana volumes
2024-06-26 23:33:51 +10:00
386591401b update grafana volumes 2024-06-26 23:31:40 +10:00
34730f5407 Merge pull request #355 from 3dwardch3ng/infra/prometheus
update grafana volumes
2024-06-26 23:07:28 +10:00
0799662bd7 update grafana volumes 2024-06-26 23:07:03 +10:00
137225aae2 Merge pull request #354 from 3dwardch3ng/infra/prometheus
update grafana volumes
2024-06-26 23:02:20 +10:00
dbbb78b2b1 update grafana volumes 2024-06-26 23:01:58 +10:00
f2b5a734d6 Merge pull request #353 from 3dwardch3ng/infra/prometheus
update grafana volumes
2024-06-26 22:53:13 +10:00
0599402bdf update grafana volumes 2024-06-26 22:52:53 +10:00
1872b234b8 Merge pull request #352 from 3dwardch3ng/infra/prometheus
update grafana volumes
2024-06-26 22:47:49 +10:00
3fcba505ed update grafana volumes 2024-06-26 22:47:26 +10:00
ba81692477 Merge pull request #351 from 3dwardch3ng/infra/prometheus
add grafana pod to prometheus service
2024-06-26 22:30:50 +10:00
d77ca493bc add grafana pod to prometheus service 2024-06-26 22:30:28 +10:00
b9e041e09a add grafana pod to prometheus service 2024-06-26 22:27:29 +10:00
668a62585e Merge pull request #350 from 3dwardch3ng/infra/node-exporter
remove cap-add param
2024-06-26 21:51:52 +10:00
53cb75335e remove cap-add param 2024-06-26 21:51:32 +10:00
3736bdc92a Merge pull request #349 from 3dwardch3ng/infra/node-exporter
fix the container host pid
2024-06-26 21:47:55 +10:00
b64ed0bef5 fix the container host pid 2024-06-26 21:47:28 +10:00
c210ee222f Merge pull request #348 from 3dwardch3ng/infra/node-exporter
fix the container host network mode
2024-06-26 21:04:17 +10:00
224b310b71 fix the container host network mode 2024-06-26 21:03:56 +10:00
cbb1e367af Merge pull request #347 from 3dwardch3ng/infra/node-exporter
fix docker name of alertmanager
2024-06-26 20:35:52 +10:00
fbc2b73f49 fix docker name of alertmanager 2024-06-26 20:35:33 +10:00
1ef3600b56 Merge pull request #346 from 3dwardch3ng/infra/node-exporter
add infra app prometheus-node-exporter
2024-06-26 20:32:49 +10:00
84902910cc add infra app prometheus-node-exporter 2024-06-26 20:32:15 +10:00
9aff02ea24 Merge pull request #345 from 3dwardch3ng/infra/prometheus-altertmanager
add infra app prometheus-altertmanager
2024-06-26 18:21:29 +10:00
488c95048d add infra app prometheus-altertmanager 2024-06-26 18:14:44 +10:00
a5f23660e7 Merge pull request #344 from 3dwardch3ng/infra/prometheus
use recreate strategy for prometheus
2024-06-26 17:20:37 +10:00
6278918f62 use recreate strategy for prometheus 2024-06-26 17:20:01 +10:00
d4aeacbc88 Merge pull request #343 from 3dwardch3ng/infra/prometheus
use default pod scraping path
2024-06-26 17:16:11 +10:00
a882d2b296 use default pod scraping path 2024-06-26 17:15:50 +10:00
e3f753b2d7 Merge pull request #342 from 3dwardch3ng/infra/prometheus
update ports
2024-06-26 17:10:31 +10:00
4958cbc794 update ports 2024-06-26 17:10:07 +10:00
933f05bbf4 Merge pull request #341 from 3dwardch3ng/infra/prometheus
fix namespaces of ingresses
2024-06-26 16:35:58 +10:00
754997d29f fix namespaces of ingresses 2024-06-26 16:35:26 +10:00
5a5d3272c1 Merge pull request #340 from 3dwardch3ng/infra/prometheus
use ClusterIP and ingress to handle the incoming requests
2024-06-26 16:24:32 +10:00
c7fd259ee4 use ClusterIP and ingress to handle the incoming requests 2024-06-26 16:24:12 +10:00
eaab0b917f Merge pull request #339 from 3dwardch3ng/infra/prometheus
fix resource limits for prometheus and nexus
2024-06-26 16:08:27 +10:00
ada80c434f fix resource limits for prometheus and nexus 2024-06-26 16:08:06 +10:00
afbc7f53b5 Merge pull request #338 from 3dwardch3ng/infra/prometheus
run docker with user root
2024-06-26 15:59:31 +10:00
0619a824e4 run docker with user root 2024-06-26 15:59:03 +10:00
0cab53df67 Merge pull request #337 from 3dwardch3ng/infra/prometheus
Infra/prometheus
2024-06-26 15:39:17 +10:00
d88e17efcd update cpu resource value 2024-06-26 15:38:57 +10:00
c5ecd5986d add versions of the docker images 2024-06-26 15:29:25 +10:00
45393e99e3 Merge pull request #336 from 3dwardch3ng/infra/prometheus
fix config file
2024-06-26 15:03:15 +10:00
64c7d13104 fix config file 2024-06-26 15:02:55 +10:00
0efd5341c8 Merge pull request #335 from 3dwardch3ng/infra/prometheus
update prometheus config and rules mounting method
2024-06-26 14:51:35 +10:00
923263f27e update prometheus config and rules mounting method 2024-06-26 14:51:13 +10:00
c3c7efa2ec Merge pull request #334 from 3dwardch3ng/infra/prometheus
add infra app prometheus
2024-06-26 14:41:38 +10:00
b6f00d0140 add infra app prometheus 2024-06-26 14:35:22 +10:00
9119f221ca Merge pull request #333 from 3dwardch3ng/misc
clean up some unused repos
2024-06-26 13:33:26 +10:00
feffc4a0dd clean up some unused repos 2024-06-26 13:33:08 +10:00
603be0fc8e Merge pull request #332 from 3dwardch3ng/misc
use version 2.18.1 for the uptime-kuma chart
2024-06-26 13:30:42 +10:00
a89b4e1678 use version 2.18.1 for the uptime-kuma chart 2024-06-26 13:29:36 +10:00
f28a8a87bb Merge pull request #331 from 3dwardch3ng/misc
move cert-manager and progresql from apps to infrastructure
2024-06-26 13:00:36 +10:00
e72a6e482e move cert-manager and progresql from apps to infrastructure 2024-06-26 13:00:08 +10:00
a8f17a910b Merge pull request #330 from 3dwardch3ng/misc
correct the ns of the secrets as the dependency
2024-06-26 12:45:17 +10:00
d06ecd7502 correct the ns of the secrets as the dependency 2024-06-26 12:44:56 +10:00
27fabf9b24 Merge pull request #325 from 3dwardch3ng/misc
update secret decryption ks to have the ns flux-system and use generi…
2024-06-26 12:29:56 +10:00
581240bec5 Merge branch 'refs/heads/main' into misc 2024-06-26 12:21:40 +10:00
63f0349879 Merge pull request #329 from 3dwardch3ng/infra/minio
Infra/minio
2024-06-26 12:00:00 +10:00
8eb500a99b revert as distributed mode 2024-06-26 11:59:40 +10:00
6c53ee8d23 revert as distributed mode 2024-06-26 11:59:26 +10:00
c8aa1862c6 Merge pull request #328 from 3dwardch3ng/infra/minio
set as distributed mode
2024-06-26 11:51:42 +10:00
bd6d2e5825 set as distributed mode 2024-06-26 11:51:26 +10:00
b69c377696 Merge pull request #327 from 3dwardch3ng/infra/minio
let MinIO access handled by ingress
2024-06-26 11:44:15 +10:00
5255c165fc let MinIO access handled by ingress 2024-06-26 11:43:48 +10:00
5fa5ccd197 Merge pull request #326 from 3dwardch3ng/infra/minio
update service node ports
2024-06-26 11:19:15 +10:00
15ad09a55c update service node ports 2024-06-26 11:18:57 +10:00
15f6f3842f update secret decryption ks to have the ns flux-system and use generic secret sops-age 2024-06-26 11:15:10 +10:00
653828d1a1 Merge pull request #324 from 3dwardch3ng/infra/minio
change the service type to be LB
2024-06-26 10:49:19 +10:00
9dbd91280d change the service type to be LB 2024-06-26 10:48:59 +10:00
45b4623531 Merge pull request #323 from 3dwardch3ng/infra/minio
fixing incorrect namespace
2024-06-26 10:34:10 +10:00
f2484fc1fc fixing incorrect namespace 2024-06-26 10:33:29 +10:00
2aa025296f Merge pull request #322 from 3dwardch3ng/infra/minio
fixing incorrect app path
2024-06-26 09:45:53 +10:00
c727cbd38b fixing incorrect app path 2024-06-26 09:45:31 +10:00
95e1bc2bce Merge pull request #321 from 3dwardch3ng/infra/minio
add infra app minio
2024-06-26 09:35:38 +10:00
cf6071ee4e add infra app minio 2024-06-26 09:35:08 +10:00
89c01c83ea Merge pull request #320 from 3dwardch3ng/app/dokuwiki
Update app name
2024-06-26 01:16:19 +10:00
c796aacfec Update app name 2024-06-26 01:15:57 +10:00
26ae14105a Merge pull request #319 from 3dwardch3ng/app/dokuwiki
update container ports
2024-06-26 01:12:01 +10:00
17dcd78a31 update container ports 2024-06-26 01:11:41 +10:00
3016a8d0f3 Merge pull request #318 from 3dwardch3ng/app/dokuwiki
using ClusterIP with ingress instead of NodePort
2024-06-26 01:06:36 +10:00
16d9f1df34 using ClusterIP with ingress instead of NodePort 2024-06-26 00:59:06 +10:00
3fe182f6ba Merge pull request #317 from 3dwardch3ng/app/dokuwiki
add app dokuwiki
2024-06-26 00:50:36 +10:00
91a305117c add app dokuwiki 2024-06-26 00:50:00 +10:00
62b8ddb6c7 Merge pull request #316 from 3dwardch3ng/app/nexus
remove unneeded nexus ingress
2024-06-25 20:58:19 +10:00
a44781a4c7 remove unneeded nexus ingress 2024-06-25 20:57:50 +10:00
3e80270ec9 Merge pull request #315 from 3dwardch3ng/app/nexus
run docker as root user
2024-06-25 20:18:24 +10:00
d1c71b22af run docker as root user 2024-06-25 20:18:04 +10:00
26727e23cd Merge pull request #314 from 3dwardch3ng/app/nexus
update image
2024-06-25 20:01:17 +10:00
4324087ecb update image 2024-06-25 20:00:52 +10:00
1f86ec4702 Merge pull request #313 from 3dwardch3ng/app/nexus
App/nexus
2024-06-25 19:39:52 +10:00
8fc1165cc0 add app nexus 2024-06-25 19:39:32 +10:00
72be4562ec add app nexus 2024-06-25 19:39:10 +10:00
cd4269e485 Merge pull request #312 from 3dwardch3ng/infra/renovate
update gitea ingress configs
2024-06-25 19:12:07 +10:00
55856e8a15 update gitea ingress configs 2024-06-25 19:11:40 +10:00
ea6032d2fa Merge pull request #311 from 3dwardch3ng/infra/renovate
infra/renovate
2024-06-25 19:00:20 +10:00
f4eb314c46 update renovate configs 2024-06-25 18:59:26 +10:00
46515bdc6d Merge pull request #310 from 3dwardch3ng/renovate/configure
chore: Configure Renovate
2024-06-25 18:44:46 +10:00
renovate[bot]
a3d1fcd6cd chore(deps): add renovate.json 2024-06-25 08:41:20 +00:00
0f014ec66d Merge pull request #309 from 3dwardch3ng/app/gitea
update ingress service name
2024-06-25 18:29:21 +10:00
ecd37c7793 update ingress service name 2024-06-25 18:29:02 +10:00
0581b3cb40 Merge pull request #308 from 3dwardch3ng/app/gitea
update the probes for statability
2024-06-25 16:19:37 +10:00
5edfc815e0 update the probes for statability 2024-06-25 16:19:18 +10:00
d3e62ef96a Merge pull request #307 from 3dwardch3ng/app/gitea
update the updateStrategy to avoid the new deployment to be stuck as …
2024-06-25 16:03:37 +10:00
58e4fbbf56 update the updateStrategy to avoid the new deployment to be stuck as the PV is being used 2024-06-25 16:03:19 +10:00
3b5db030ee Merge pull request #306 from 3dwardch3ng/app/gitea
update the probes for statability
2024-06-25 15:58:08 +10:00
672f5b0935 update the probes for statability 2024-06-25 15:57:47 +10:00
4ead42d438 Merge pull request #305 from 3dwardch3ng/app/jellyfin
add short-videos volume for jellyfin
2024-06-25 13:53:54 +10:00
b86d63541a add short-videos volume for jellyfin 2024-06-25 13:53:34 +10:00
0b7da6761c Merge pull request #304 from 3dwardch3ng/app/jellyfin
add short-videos volume for jellyfin
2024-06-25 13:52:05 +10:00
abc995cae1 add short-videos volume for jellyfin 2024-06-25 13:51:37 +10:00
e4f1fc958d Merge pull request #303 from 3dwardch3ng/app/gitea
disable debug logs for gitea
2024-06-25 12:23:38 +10:00
a76b6cd0b9 disable debug logs for gitea 2024-06-25 12:22:53 +10:00
d5a79df839 Merge pull request #302 from 3dwardch3ng/app/gitea
enable debug logs for gitea
2024-06-25 10:43:07 +10:00
bc39b04bb4 enable debug logs for gitea 2024-06-25 10:42:43 +10:00
8059824d42 Merge pull request #301 from 3dwardch3ng/app/gitea
App/gitea
2024-06-25 10:16:55 +10:00
3bb7305ac9 fix LB ports 2024-06-25 10:16:02 +10:00
d7ce4a3ccc fix LB ports 2024-06-25 10:15:42 +10:00
63dcef953b Merge pull request #300 from 3dwardch3ng/app/gitea
app/gitea
2024-06-25 10:09:26 +10:00
d9f220ac4e fix secret namespace 2024-06-25 10:08:39 +10:00
82a9957831 Merge pull request #299 from 3dwardch3ng/app/gitea
App/gitea
2024-06-25 10:04:46 +10:00
21371c5a88 add app gitea 2024-06-25 10:03:53 +10:00
e89d22f03d Merge branch 'refs/heads/main' into app/gitea 2024-06-25 09:43:33 +10:00
77bf938120 Merge pull request #298 from 3dwardch3ng/app/sonarqube
fix sonarqube user
2024-06-25 01:02:39 +10:00
516168d3e5 fix sonarqube user 2024-06-25 01:02:18 +10:00
619fc74394 Merge pull request #297 from 3dwardch3ng/app/sonarqube
fix sonarqube namespace
2024-06-24 23:05:14 +10:00
4628a78f54 fix sonarqube namespace 2024-06-24 23:04:39 +10:00
57067590b7 Merge pull request #296 from 3dwardch3ng/app/sonarqube
delete sonarqube ingress
2024-06-24 22:06:14 +10:00
86f43d20be delete sonarqube ingress 2024-06-24 22:05:56 +10:00
ccdfee21c2 Merge pull request #295 from 3dwardch3ng/app/sonarqube
add sonarqube ingress
2024-06-24 22:04:34 +10:00
fa832ef64d add sonarqube ingress 2024-06-24 22:04:15 +10:00
9e3a5c7488 Merge pull request #294 from 3dwardch3ng/app/sonarqube
add sonarqube volume
2024-06-24 22:03:12 +10:00
69bb362d57 add sonarqube volume 2024-06-24 22:02:56 +10:00
4724380c3f Merge pull request #293 from 3dwardch3ng/app/sonarqube
fix sonarqube namespace
2024-06-24 21:56:37 +10:00
525d06a715 fix sonarqube namespace 2024-06-24 21:56:20 +10:00
df768c9031 add app gitea 2024-06-24 21:55:38 +10:00
602cabf041 Merge pull request #292 from 3dwardch3ng/misc
add local access of jellyfin onto the homer
2024-06-24 19:34:32 +10:00
9f03ea3b30 add local access of jellyfin onto the homer 2024-06-24 19:34:16 +10:00
f261b6fac4 Merge pull request #291 from 3dwardch3ng/app/sonarqube
add app sonarcube
2024-06-24 19:18:04 +10:00
bd5059863e add app sonarcube 2024-06-24 19:17:38 +10:00
1348ab51f8 Merge pull request #290 from 3dwardch3ng/app/sonarqube
fix postgres ingress issue
2024-06-24 16:08:57 +10:00
e98c99ef9c fix postgres ingress issue 2024-06-24 16:08:37 +10:00
8f6aa7bd61 Merge pull request #289 from 3dwardch3ng/app/sonarqube
fix postgres password issue
2024-06-24 16:05:29 +10:00
74f79898e2 fix postgres password issue 2024-06-24 16:05:10 +10:00
1933ed7a81 Merge pull request #288 from 3dwardch3ng/app/sonarqube
fix postgres password issue
2024-06-24 15:49:01 +10:00
5831e1956d fix postgres password issue 2024-06-24 15:48:41 +10:00
70accb15fb Merge pull request #287 from 3dwardch3ng/app/qBittorrent
fix qBittorrent volumes
2024-06-24 15:27:45 +10:00
d6ea1c47e7 fix qBittorrent volumes 2024-06-24 15:27:19 +10:00
76 changed files with 1764 additions and 95 deletions

View File

@@ -7,7 +7,6 @@ spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
targetNamespace: flux-system
path: ./kubernetes/apps/adguard-home/app
prune: true
sourceRef:

View File

@@ -7,7 +7,6 @@ spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
targetNamespace: flux-system
path: ./kubernetes/apps/capacitor/app
prune: true
sourceRef:

View File

@@ -2,7 +2,7 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: code-server-secrets
namespace: code-server
namespace: flux-system
spec:
interval: 10m
timeout: 1m30s
@@ -20,7 +20,7 @@ spec:
decryption:
provider: sops
secretRef:
name: code-server-sops-age
name: sops-age
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
@@ -40,7 +40,7 @@ spec:
name: flux-system
dependsOn:
- name: code-server-secrets
namespace: code-server
namespace: flux-system
postBuild:
substituteFrom:
- kind: Secret

View File

@@ -0,0 +1,31 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dokuwiki-ingress
namespace: dokuwiki
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
- host: "dokuwiki.cluster.local"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: dokuwiki-dokuwiki
port:
number: 18000
- host: "dokuwiki.cluster.edward.sydney"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: dokuwiki-dokuwiki
port:
number: 18000

View File

@@ -0,0 +1,34 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: dokuwiki
namespace: dokuwiki
spec:
targetNamespace: dokuwiki
chart:
spec:
chart: dokuwiki
sourceRef:
kind: HelmRepository
name: bitnami
namespace: flux-system
interval: 1h
install:
remediation:
retries: 3
values:
dokuwikiUsername: ${username}
dokuwikiPassword: ${password}
dokuwikiEmail: ${email}
dokuwikiFullName: "Edward Cheng"
dokuwikiWikiName: My Doku Wiki
containerPorts:
http: 18000
https: 18443
persistence:
existingClaim: "dokuwiki-pvc"
service:
type: ClusterIP
ports:
http: 18000
https: 18443

View File

@@ -0,0 +1,46 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: dokuwiki-pv
namespace: dokuwiki
labels:
type: local
spec:
storageClassName: local-path
volumeMode: Filesystem
capacity:
storage: 12Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
local:
path: "/mnt/nfs/AppData/dokuwiki"
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: dokuwiki-pvc
namespace: dokuwiki
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: dokuwiki-pvc
namespace: dokuwiki
labels:
name: dokuwiki-pvc
spec:
storageClassName: local-path
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 12Gi

View File

@@ -0,0 +1,46 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: dokuwiki-secrets
namespace: flux-system
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
targetNamespace: dokuwiki
path: ./dokuwiki
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: home-cluster-ops-secrets
dependsOn:
- name: repositories
namespace: flux-system
decryption:
provider: sops
secretRef:
name: sops-age
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: dokuwiki
namespace: dokuwiki
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/apps/dokuwiki/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: dokuwiki-secrets
namespace: flux-system
postBuild:
substituteFrom:
- kind: Secret
name: dokuwiki-secrets

View File

@@ -0,0 +1,32 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gitea-ingress
namespace: gitea
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/proxy-body-size: "50m"
spec:
ingressClassName: nginx
rules:
- host: "gitea.cluster.local"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: gitea-gitea
port:
number: 10080
- host: "gitea.cluster.edward.sydney"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: gitea-gitea
port:
number: 10080

View File

@@ -0,0 +1,56 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: gitea
namespace: gitea
spec:
targetNamespace: gitea
chart:
spec:
chart: gitea
sourceRef:
kind: HelmRepository
name: bitnami
namespace: flux-system
interval: 1h
install:
remediation:
retries: 3
values:
image:
debug: true
updateStrategy:
type: Recreate
livenessProbe:
enabled: true
initialDelaySeconds: 600
periodSeconds: 60
timeoutSeconds: 30
failureThreshold: 5
successThreshold: 1
readinessProbe:
enabled: true
path: /
initialDelaySeconds: 30
periodSeconds: 60
timeoutSeconds: 30
failureThreshold: 5
successThreshold: 1
adminUsername: ${admin_username}
adminPassword: ${admin_password}
adminEmail: ${admin_email}
appName: app_name
persistence:
existingClaim: gitea-pvc
service:
ports:
http: 10080
ssh: 10022
postgresql:
enabled: false
externalDatabase:
host: ${db_host}
port: ${db_port}
user: ${db_user}
database: ${db_name}
password: ${db_password}

View File

@@ -0,0 +1,46 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: gitea-pv
namespace: gitea
labels:
type: local
spec:
storageClassName: local-path
volumeMode: Filesystem
capacity:
storage: 32Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
local:
path: "/mnt/nfs/AppData/gitea"
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: gitea-pvc
namespace: gitea
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: gitea-pvc
namespace: gitea
labels:
name: gitea-pvc
spec:
storageClassName: local-path
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 32Gi

View File

@@ -0,0 +1,47 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: gitea-secrets
namespace: flux-system
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
targetNamespace: gitea
path: ./gitea
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: home-cluster-ops-secrets
dependsOn:
- name: repositories
namespace: flux-system
decryption:
provider: sops
secretRef:
name: sops-age
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: gitea
namespace: gitea
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/apps/gitea/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: gitea-secrets
namespace: flux-system
postBuild:
substituteFrom:
- kind: Secret
name: gitea-secrets

View File

@@ -7,7 +7,6 @@ spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
targetNamespace: flux-system
path: ./kubernetes/apps/homer/app
prune: true
sourceRef:

View File

@@ -9,6 +9,16 @@ metadata:
spec:
ingressClassName: nginx
rules:
- host: "jellyfin.cluster.local"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: jellyfin
port:
number: 8096
- host: "jellyfin.cluster.edward.sydney"
http:
paths:

View File

@@ -25,12 +25,14 @@ spec:
accessModes:
- ReadWriteOnce
volumeName: jellyfin-config
storageClassName: local-path
data:
enabled: true
volumeClaimSpec:
accessModes:
- ReadWriteOnce
volumeName: jellyfin-data
storageClassName: local-path
jellyfin:
mediaVolumes:
- name: movies
@@ -85,7 +87,7 @@ spec:
hostPath:
path: "/mnt/nfs/AppData/jellyfin/media/series"
type: "Directory"
- name: music
- name: music-videos
readOnly: false
volumeSpec:
storageClassName: local-path
@@ -106,10 +108,36 @@ spec:
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: jellyfin-mediavol-music
name: jellyfin-mediavol-music-videos
namespace: jellyfin
hostPath:
path: "/mnt/nfs/AppData/jellyfin/media/music"
path: "/mnt/nfs/AppData/jellyfin/media/music-videos"
type: "Directory"
- name: short-videos
readOnly: false
volumeSpec:
storageClassName: local-path
volumeMode: Filesystem
capacity:
storage: 8Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: jellyfin-mediavol-short-videos
namespace: jellyfin
hostPath:
path: "/mnt/nfs/AppData/jellyfin/media/short-videos"
type: "Directory"
- name: gv
readOnly: false

View File

@@ -20,7 +20,7 @@ spec:
app.kubernetes.io/instance: kavita
spec:
containers:
- image: jvmilazz0/kavita:latest
- image: jvmilazz0/kavita:0.8.1
imagePullPolicy: IfNotPresent
name: kavita
ports:

View File

@@ -3,15 +3,16 @@ kind: Kustomization
resources:
- ./adguard-home/adguard-home.yaml
- ./capacitor/capacitor.yaml
- ./cert-manager/cert-manager.yaml
- ./code-server/code-server.yaml
- ./dokuwiki/dokuwiki.yaml
- ./gitea/gitea.yaml
- ./homer/homer.yaml
- ./jellyfin/jellyfin.yaml
- ./kavita/kavita.yaml
- ./nexus/nexus.yaml
- ./podinfo/podinfo.yaml
- ./postgresql/postgresql.yaml
- ./qbittorrent/qbittorrent.yaml
- ./redis/redis.yaml
- ./snippet-box/snippet-box.yaml
- ./sonarqube/sonarqube.yaml
- ./uptime-kuma/uptime-kuma.yaml
- ./weave-gitops/weave-gitops.yaml

View File

@@ -0,0 +1,38 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nexus
namespace: nexus
spec:
replicas: 1
selector:
matchLabels:
app: nexus
template:
metadata:
labels:
app: nexus
spec:
securityContext:
runAsUser: 0
runAsGroup: 0
containers:
- name: nexus
image: klo2k/nexus3:3.68.1-02
resources:
limits:
memory: "3Gi"
cpu: "1"
requests:
memory: "2Gi"
cpu: "500m"
ports:
- containerPort: 8081
volumeMounts:
- name: nexus-data
mountPath: /nexus-data
volumes:
- name: nexus-data
hostPath:
path: /mnt/nfs/AppData/nexus
type: Directory

View File

@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: nexus
namespace: nexus
annotations:
prometheus.io/scrape: 'true'
prometheus.io/path: /
prometheus.io/port: '8081'
spec:
selector:
app: nexus
type: NodePort
ports:
- port: 8081
targetPort: 8081
nodePort: 32000

View File

@@ -0,0 +1,15 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: nexus
namespace: nexus
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/apps/nexus/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system

View File

@@ -6,6 +6,13 @@ metadata:
labels:
type: local
spec:
storageClassName: local-path
volumeMode: Filesystem
capacity:
storage: 5Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
local:
path: "/mnt/nfs/AppData/qbittorrent/config"
claimRef:
@@ -46,6 +53,13 @@ metadata:
labels:
type: local
spec:
storageClassName: local-path
volumeMode: Filesystem
capacity:
storage: 5Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
local:
path: "/mnt/nfs/AppData/qbittorrent/download"
claimRef:

View File

@@ -1,31 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: redis-master-pvc
namespace: redis
labels:
name: redis-master-pvc
spec:
storageClassName: local-path
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: redis-replica-pvc
namespace: redis
labels:
name: redis-replica-pvc
spec:
storageClassName: local-path
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi

View File

@@ -7,7 +7,6 @@ spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
targetNamespace: flux-system
path: ./kubernetes/apps/snippet-box/app
prune: true
sourceRef:

View File

@@ -0,0 +1,47 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: sonarqube
namespace: sonarqube
spec:
releaseName: sonarqube
chart:
spec:
chart: sonarqube
sourceRef:
kind: HelmRepository
name: bitnami
namespace: flux-system
interval: 1h
install:
remediation:
retries: 3
values:
sonarqubeUsername: ${sonarqube_username}
sonarqubePassword: ${sonarqube_password}
sonarqubeEmail: ${sonarqube_email}
smtpHost: ${smtp_host}
smtpPort: ${smtp_port}
smtpUser: ${smtp_user}
smtpPassword: ${smtp_password}
smtpProtocol: ${smtp_protocol}
service:
ports:
http: 8090
elastic: 9091
nodePorts:
http: 30080
elastic: 30091
persistence:
enabled: true
storageClass: local-path
size: "32Gi"
existingClaim: "sonarqube-pvc"
postgresql:
enabled: false
externalDatabase:
host: ${db_host}
user: ${db_user}
password: ${db_password}
database: ${db_name}
port: ${db_port}

View File

@@ -0,0 +1,46 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: sonarqube-pv
namespace: sonarqube
labels:
type: local
spec:
storageClassName: local-path
volumeMode: Filesystem
capacity:
storage: 32Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
local:
path: "/mnt/nfs/AppData/sonarqube"
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: sonarqube-pvc
namespace: sonarqube
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: sonarqube-pvc
namespace: sonarqube
labels:
name: sonarqube-pvc
spec:
storageClassName: local-path
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 32Gi

View File

@@ -0,0 +1,46 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: sonarqube-secrets
namespace: flux-system
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
targetNamespace: sonarqube
path: ./sonarqube
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: home-cluster-ops-secrets
dependsOn:
- name: repositories
namespace: flux-system
decryption:
provider: sops
secretRef:
name: sops-age
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: sonarqube
namespace: sonarqube
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/apps/sonarqube/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: sonarqube-secrets
namespace: flux-system
postBuild:
substituteFrom:
- kind: Secret
name: sonarqube-secrets

View File

@@ -9,6 +9,7 @@ spec:
chart:
spec:
chart: uptime-kuma
version: 2.18.1
sourceRef:
kind: HelmRepository
name: irsigler

View File

@@ -7,7 +7,6 @@ spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
targetNamespace: flux-system
path: ./kubernetes/apps/weave-gitops/app
prune: true
sourceRef:

View File

@@ -8,18 +8,21 @@ spec:
timeout: 1m30s
retryInterval: 30s
targetNamespace: cert-manager
path: ./kubernetes/apps/cert-manager/app
path: ./kubernetes/infrastructure/cert-manager/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: namespaces
namespace: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: clusterissuer-secrets
namespace: cert-manager
namespace: flux-system
spec:
interval: 10m
timeout: 1m30s
@@ -32,12 +35,14 @@ spec:
namespace: flux-system
name: home-cluster-ops-secrets
dependsOn:
- name: namespaces
namespace: flux-system
- name: repositories
namespace: flux-system
decryption:
provider: sops
secretRef:
name: cert-manager-sops-age
name: sops-age
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
@@ -49,7 +54,7 @@ spec:
timeout: 1m30s
retryInterval: 30s
targetNamespace: cert-manager
path: ./kubernetes/apps/cert-manager/clusterissuer
path: ./kubernetes/infrastructure/cert-manager/clusterissuer
prune: true
sourceRef:
kind: GitRepository
@@ -57,7 +62,7 @@ spec:
name: flux-system
dependsOn:
- name: clusterissuer-secrets
namespace: cert-manager
namespace: flux-system
- name: cert-manager
namespace: cert-manager
postBuild:
@@ -69,7 +74,7 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: certificate-secrets
namespace: cert-manager
namespace: flux-system
spec:
interval: 10m
timeout: 1m30s
@@ -82,12 +87,14 @@ spec:
namespace: flux-system
name: home-cluster-ops-secrets
dependsOn:
- name: namespaces
namespace: flux-system
- name: repositories
namespace: flux-system
decryption:
provider: sops
secretRef:
name: cert-manager-sops-age
name: sops-age
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
@@ -99,7 +106,7 @@ spec:
timeout: 1m30s
retryInterval: 30s
targetNamespace: cert-manager
path: ./kubernetes/apps/cert-manager/certificates
path: ./kubernetes/infrastructure/cert-manager/certificates
prune: true
sourceRef:
kind: GitRepository
@@ -107,7 +114,7 @@ spec:
name: flux-system
dependsOn:
- name: certificate-secrets
namespace: cert-manager
namespace: flux-system
- name: cert-manager
namespace: cert-manager
- name: clusterissuer

View File

@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: consul
namespace: consul
labels:
app: consul
spec:
ports:
- name: http
protocol: TCP
port: 8500
targetPort: 8500
selector:
app: consul
type: ClusterIP

View File

@@ -0,0 +1,46 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: consul
namespace: consul
labels:
app: consul
spec:
replicas: 1
selector:
matchLabels:
app: consul
template:
metadata:
labels:
app: consul
spec:
containers:
- name: consul
image: 'consul:1.15.4'
args:
- agent
ports:
- name: http
containerPort: 8500
protocol: TCP
env:
- name: TZ
value: Australia/Sydney
volumeMounts:
- name: consul-data
mountPath: /consul/data
- name: consul-config
mountPath: /consul/config
imagePullPolicy: IfNotPresent
volumes:
- name: consul-data
hostPath:
path: /mnt/nfs/AppData/consul/data
type: Directory
- name: consul-config
hostPath:
path: /mnt/nfs/AppData/consul/config
type: Directory
restartPolicy: Always
serviceName: consul

View File

@@ -0,0 +1,18 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: consul
namespace: consul
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/infrastructure/consul/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: namespaces
namespace: flux-system

View File

@@ -0,0 +1,113 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: flask-consul
namespace: consul
labels:
app: flask-consul
spec:
replicas: 1
selector:
matchLabels:
app: flask-consul
template:
metadata:
labels:
app: flask-consul
spec:
initContainers:
- name: wait-for-consul
image: busybox
command:
- sh
- '-c'
- >-
for i in \$(seq 1 60); do nc -z -w3 consul 8500 && exit 0 ||
sleep 5; done; exit 1
imagePullPolicy: IfNotPresent
containers:
- name: flask-consul
image: 'edeedeeed/flask_consul:v0.1.0'
ports:
- name: http-2026
containerPort: 2026
protocol: TCP
env:
- name: admin_passwd
value: ${dashboard_8919_admin_passwd}
- name: consul_token
value: ${dashboard_8919_consul_token}
- name: consul_url
value: 'http://consul:8500/v1'
- name: log_level
value: INFO
- name: TZ
value: Australia/Sydney
imagePullPolicy: Always
restartPolicy: Always
---
kind: Service
apiVersion: v1
metadata:
name: flask-consul
namespace: consul
labels:
app: flask-consul
spec:
ports:
- name: http-2026
protocol: TCP
port: 2026
targetPort: 2026
selector:
app: flask-consul
type: ClusterIP
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: nginx-consul
namespace: consul
labels:
app: nginx-consul
spec:
replicas: 1
selector:
matchLabels:
app: nginx-consul
template:
metadata:
labels:
app: nginx-consul
spec:
containers:
- name: nginx-consul
image: 'nicholasjackson/nginx-consul:v0.1.0'
ports:
- name: http-1026
containerPort: 1026
protocol: TCP
env:
- name: TZ
value: Australia/Sydney
imagePullPolicy: Always
restartPolicy: Always
---
kind: Service
apiVersion: v1
metadata:
name: nginx-consul
namespace: consul
labels:
app: consul
spec:
ports:
- name: nginx-consul
protocol: TCP
port: 1026
targetPort: 1026
nodePort: 31026
selector:
app: nginx-consul
type: NodePort
externalTrafficPolicy: Cluster

View File

@@ -0,0 +1,48 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: grafana-dashboards-secrets
namespace: flux-system
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
targetNamespace: prometheus
path: ./grafana-dashboards
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: home-cluster-ops-secrets
dependsOn:
- name: repositories
namespace: flux-system
decryption:
provider: sops
secretRef:
name: sops-age
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: grafana-dashboards
namespace: prometheus
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/infrastructure/grafana-dashboards/dashboards
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: namespaces
namespace: flux-system
- name: grafana-dashboards-secrets
namespace: flux-system
postBuild:
substituteFrom:
- kind: Secret
name: grafana-dashboards-secrets

View File

@@ -1,8 +1,18 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespaces/namespaces.yaml
- ./repositories/repositories.yaml
- ./cert-manager/cert-manager.yaml
# - ./cilium/cilium.yaml
- ./ingress-nginx/ingress-nginx-config.yaml
- ./consul/consul.yaml
- ./grafana-dashboards/grafana-dashboards.yaml
- ./ingress-nginx/ingress-nginx.yaml
- ./ingress-nginx/ingress-nginx-config.yaml
- ./local-path-provisioner/local-path-provisioner.yaml
- ./minio/minio.yaml
- ./namespaces/namespaces.yaml
- ./postgresql/postgresql.yaml
- ./prometheus/prometheus.yaml
- ./prometheus-alertmanager/prometheus-alertmanager.yaml
- ./prometheus-exporters/prometheus-exporters.yaml
- ./redis/redis.yaml
- ./repositories/repositories.yaml

View File

@@ -0,0 +1,149 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: local-path-provisioner-service-account
namespace: local-path-storage
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: local-path-provisioner-role
namespace: local-path-storage
rules:
- apiGroups: [ "" ]
resources: [ "pods" ]
verbs: [ "get", "list", "watch", "create", "patch", "update", "delete" ]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: local-path-provisioner-role
rules:
- apiGroups: [ "" ]
resources: [ "nodes", "persistentvolumeclaims", "configmaps", "pods", "pods/log" ]
verbs: [ "get", "list", "watch" ]
- apiGroups: [ "" ]
resources: [ "persistentvolumes" ]
verbs: [ "get", "list", "watch", "create", "patch", "update", "delete" ]
- apiGroups: [ "" ]
resources: [ "events" ]
verbs: [ "create", "patch" ]
- apiGroups: [ "storage.k8s.io" ]
resources: [ "storageclasses" ]
verbs: [ "get", "list", "watch" ]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: local-path-provisioner-bind
namespace: local-path-storage
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: local-path-provisioner-role
subjects:
- kind: ServiceAccount
name: local-path-provisioner-service-account
namespace: local-path-storage
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: local-path-provisioner-bind
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: local-path-provisioner-role
subjects:
- kind: ServiceAccount
name: local-path-provisioner-service-account
namespace: local-path-storage
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: local-path-provisioner
namespace: local-path-storage
spec:
replicas: 1
selector:
matchLabels:
app: local-path-provisioner
template:
metadata:
labels:
app: local-path-provisioner
spec:
serviceAccountName: local-path-provisioner-service-account
containers:
- name: local-path-provisioner
image: rancher/local-path-provisioner:v0.0.28
imagePullPolicy: IfNotPresent
command:
- local-path-provisioner
- --debug
- start
- --config
- /etc/config/config.json
volumeMounts:
- name: config-volume
mountPath: /etc/config/
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: CONFIG_MOUNT_PATH
value: /etc/config/
volumes:
- name: config-volume
configMap:
name: local-path-config
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-path
provisioner: rancher.io/local-path
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Retain
---
kind: ConfigMap
apiVersion: v1
metadata:
name: local-path-config
namespace: local-path-storage
data:
config.json: |-
{
"nodePathMap": [
{
"node": "DEFAULT_PATH_FOR_NON_LISTED_NODES",
"paths": [
"/opt/local-path-provisioner"]
}
]
}
setup: |-
#!/bin/sh
set -eu
mkdir -m 0777 -p "$VOL_DIR"
teardown: |-
#!/bin/sh
set -eu
rm -rf "$VOL_DIR"
helperPod.yaml: |-
apiVersion: v1
kind: Pod
metadata:
name: helper-pod
spec:
priorityClassName: system-node-critical
tolerations:
- key: node.kubernetes.io/disk-pressure
operator: Exists
effect: NoSchedule
containers:
- name: helper-pod
image: busybox
imagePullPolicy: IfNotPresent

View File

@@ -0,0 +1,19 @@
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/source.toolkit.fluxcd.io/gitrepository_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: local-path-provisioner
namespace: local-path-storage
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/infrastructure/local-path-provisioner/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: namespaces
namespace: flux-system

View File

@@ -0,0 +1,51 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: minio-ingress
namespace: minio
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
- host: "minio.cluster.edward.sydney"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: minio
port:
number: 19001
- host: "api.minio.cluster.edward.sydney"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: minio
port:
number: 19000
- host: "minio.cluster.local"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: minio
port:
number: 19001
- host: "api.minio.cluster.local"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: minio
port:
number: 19000

View File

@@ -0,0 +1,31 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: minio
namespace: minio
spec:
releaseName: minio
chart:
spec:
chart: minio
sourceRef:
kind: HelmRepository
name: bitnami
namespace: flux-system
interval: 1h
install:
remediation:
retries: 3
values:
clusterDomain: minio.cluster.edward.sydney
auth:
rootUser: ${root_user}
rootPassword: ${root_password}
nodeSelector:
kubernetes.io/hostname: rpi5-cluster-node-3
service:
ports:
api: 19000
console: 19001
persistence:
existingClaim: "minio-pvc"

View File

@@ -0,0 +1,46 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: minio-pv
namespace: minio
labels:
type: local
spec:
storageClassName: local-path
volumeMode: Filesystem
capacity:
storage: 256Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
local:
path: "/mnt/nfs/AppData/minio"
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: minio-pvc
namespace: minio
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: minio-pvc
namespace: minio
labels:
name: minio-pvc
spec:
storageClassName: local-path
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 256Gi

View File

@@ -0,0 +1,50 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: minio-secrets
namespace: flux-system
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
targetNamespace: minio
path: ./minio
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: home-cluster-ops-secrets
dependsOn:
- name: repositories
namespace: flux-system
decryption:
provider: sops
secretRef:
name: sops-age
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: minio
namespace: minio
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/infrastructure/minio/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: namespaces
namespace: flux-system
- name: minio-secrets
namespace: flux-system
- name: local-path-provisioner
namespace: local-path-storage
postBuild:
substituteFrom:
- kind: Secret
name: minio-secrets

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: consul

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: dokuwiki

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: gitea

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: local-path-storage

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: minio

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: nexus

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: prometheus

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: sonarqube

View File

@@ -0,0 +1,31 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: postgresql-ingress
namespace: postgresql
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
- host: "postgres.cluster.local"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: postgresql-primary
port:
number: 5432
- host: "replica.postgres.cluster.local"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: postgresql-replica
port:
number: 5432

View File

@@ -18,7 +18,7 @@ spec:
retries: 3
values:
auth:
postgresPassword: ${postgresql_password}
postgresPassword: ${postgres_password}
username: ${username}
password: ${password}
database: ${database}
@@ -27,7 +27,7 @@ spec:
replication:
synchronousCommit: "on"
numSynchronousReplicas: 1
applicationName: "postgresqlReplication"
applicationName: "postgres_repl"
primary:
podSecurityContext:
fsGroup: 1000

View File

@@ -2,7 +2,7 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: postgresql-secrets
namespace: postgresql
namespace: flux-system
spec:
interval: 10m
timeout: 1m30s
@@ -15,12 +15,14 @@ spec:
namespace: flux-system
name: home-cluster-ops-secrets
dependsOn:
- name: namespaces
namespace: flux-system
- name: repositories
namespace: flux-system
decryption:
provider: sops
secretRef:
name: postgresql-sops-age
name: sops-age
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
@@ -31,7 +33,7 @@ spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/apps/postgresql/app
path: ./kubernetes/infrastructure/postgresql/app
prune: true
sourceRef:
kind: GitRepository
@@ -39,7 +41,11 @@ spec:
name: flux-system
dependsOn:
- name: postgresql-secrets
namespace: postgresql
namespace: flux-system
- name: namespaces
namespace: flux-system
- name: local-path-provisioner
namespace: local-path-storage
postBuild:
substituteFrom:
- kind: Secret

View File

@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: prometheus-alertmanager
namespace: prometheus
labels:
app: prometheus-alertmanager
spec:
selector:
matchLabels:
app: prometheus-alertmanager
template:
metadata:
labels:
app: prometheus-alertmanager
spec:
securityContext:
runAsUser: 0
runAsGroup: 0
containers:
- name: prometheus-alertmanager
image: prom/alertmanager:v0.27.0
args:
- "--config.file=/etc/prometheus/prometheus-alertmanager.yaml"
ports:
- containerPort: 9093
volumeMounts:
- name: config-volume
mountPath: /etc/prometheus/
volumes:
- name: config-volume
hostPath:
path: /mnt/nfs/AppData/prometheus/conf
type: Directory

View File

@@ -0,0 +1,18 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: prometheus-alertmanager
namespace: prometheus
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/infrastructure/prometheus-alertmanager/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: namespaces
namespace: flux-system

View File

@@ -0,0 +1,48 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: kubernetes-event-exporter
namespace: prometheus
spec:
releaseName: kubernetes-event-exporter
chart:
spec:
chart: kubernetes-event-exporter
sourceRef:
kind: HelmRepository
name: bitnami
namespace: flux-system
interval: 60m
values:
containerSecurityContext:
enabled: true
runAsNonRoot: false
privileged: true
readOnlyRootFilesystem: false
allowPrivilegeEscalation: true
nodeSelector:
kubernetes.io/hostname: rpi5-cluster-node-1
metrics:
enabled: true
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: kubernetes-event-exporter-ingress
namespace: prometheus
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
- host: "event-exporter.cluster.local"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: kubernetes-event-exporter-metrics
port:
number: 2112

View File

@@ -0,0 +1,44 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: prometheus-node-exporter
namespace: prometheus
labels:
app: prometheus-node-exporter
spec:
replicas: 3
selector:
matchLabels:
app: prometheus-node-exporter
template:
metadata:
labels:
app: prometheus-node-exporter
spec:
hostNetwork: true
hostPID: true
hostIPC: true
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app: prometheus-node-exporter
containers:
- name: prometheus-node-exporter
image: prom/node-exporter
args:
- "--path.rootfs=/host"
volumeMounts:
- name: node-volume
mountPath: /host
readOnly: true
mountPropagation: HostToContainer
securityContext:
privileged: true
volumes:
- name: node-volume
hostPath:
path: /
type: Directory

View File

@@ -0,0 +1,18 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: prometheus-exporters
namespace: prometheus
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/infrastructure/prometheus-exporters/exporters
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: namespaces
namespace: flux-system

View File

@@ -0,0 +1,87 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: prometheus
namespace: prometheus
labels:
app: prometheus
spec:
strategy:
rollingUpdate: null
type: Recreate
selector:
matchLabels:
app: prometheus
template:
metadata:
labels:
app: prometheus
spec:
securityContext:
runAsUser: 0
runAsGroup: 0
containers:
- name: prometheus
image: prom/prometheus:v2.53.0
args:
- "--storage.tsdb.retention.time=14d"
- "--config.file=/etc/prometheus/prometheus.yaml"
- "--storage.tsdb.path=/prometheus/"
ports:
- containerPort: 9090
resources:
requests:
cpu: 500m
memory: 500M
limits:
cpu: "1"
memory: 2Gi
volumeMounts:
- name: prometheus-config-volume
mountPath: /etc/prometheus/
- name: prometheus-storage-volume
mountPath: /prometheus/
- name: grafana
image: grafana/grafana:11.0.1
ports:
- containerPort: 3000
volumeMounts:
- name: grafana-config-volume
mountPath: /etc/grafana
- name: grafana-data-volume
mountPath: /var/lib/grafana
- name: grafana-logs-volume
mountPath: /var/log/grafana
- name: grafana-plugins-volume
mountPath: /var/lib/grafana/plugins
- name: grafana-provisioning-volume
mountPath: /etc/grafana/provisioning
volumes:
- name: prometheus-config-volume
hostPath:
path: /mnt/nfs/AppData/prometheus/conf
type: Directory
- name: prometheus-storage-volume
hostPath:
path: /mnt/nfs/AppData/prometheus/storage
type: Directory
- name: grafana-config-volume
hostPath:
path: /mnt/nfs/AppData/grafana/config
type: Directory
- name: grafana-data-volume
hostPath:
path: /mnt/nfs/AppData/grafana/data
type: Directory
- name: grafana-logs-volume
hostPath:
path: /mnt/nfs/AppData/grafana/logs
type: Directory
- name: grafana-plugins-volume
hostPath:
path: /mnt/nfs/AppData/grafana/plugins
type: Directory
- name: grafana-provisioning-volume
hostPath:
path: /mnt/nfs/AppData/grafana/provisioning
type: Directory

View File

@@ -0,0 +1,33 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: prometheus
rules:
- apiGroups: [""]
resources:
- nodes
- nodes/proxy
- services
- endpoints
- pods
verbs: ["get", "list", "watch"]
- apiGroups:
- extensions
resources:
- ingresses
verbs: ["get", "list", "watch"]
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: prometheus
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: prometheus
subjects:
- kind: ServiceAccount
name: prometheus
namespace: prometheus

View File

@@ -0,0 +1,22 @@
apiVersion: v1
kind: Service
metadata:
name: prometheus
namespace: prometheus
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '9999'
spec:
selector:
app: prometheus
type: NodePort
ports:
- port: 9999
targetPort: 9090
nodePort: 30999
protocol: TCP
name: http
- name: grafana-port
port: 3030
nodePort: 30303
targetPort: 3000

View File

@@ -0,0 +1,18 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: prometheus
namespace: prometheus
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/infrastructure/prometheus/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: namespaces
namespace: flux-system

View File

@@ -21,6 +21,7 @@ spec:
password: ${password}
master:
persistence:
storageClass: local-path
existingClaim: redis-master-pvc
selector:
matchLabels:
@@ -30,6 +31,7 @@ spec:
replica:
replicaCount: 1
persistence:
storageClass: local-path
existingClaim: redis-replica-pvc
selector:
matchLabels:

View File

@@ -0,0 +1,93 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: redis-master-pv
namespace: redis
labels:
type: local
spec:
storageClassName: local-path
volumeMode: Filesystem
capacity:
storage: 8Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
local:
path: "/mnt/nfs/AppData/redis/master"
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: redis-master-pvc
namespace: redis
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: redis-master-pvc
namespace: redis
labels:
name: redis-master-pvc
spec:
storageClassName: local-path
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: redis-replica-pv
namespace: redis
labels:
type: local
spec:
storageClassName: local-path
volumeMode: Filesystem
capacity:
storage: 8Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
local:
path: "/mnt/nfs/AppData/redis/replica"
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: redis-replica-pvc
namespace: redis
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: redis-replica-pvc
namespace: redis
labels:
name: redis-replica-pvc
spec:
storageClassName: local-path
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi

View File

@@ -2,7 +2,7 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: redis-secrets
namespace: redis
namespace: flux-system
spec:
interval: 10m
timeout: 1m30s
@@ -20,7 +20,7 @@ spec:
decryption:
provider: sops
secretRef:
name: redis-sops-age
name: sops-age
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
@@ -31,7 +31,7 @@ spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/apps/redis/app
path: ./kubernetes/infrastructure/redis/app
prune: true
sourceRef:
kind: GitRepository
@@ -39,7 +39,7 @@ spec:
name: flux-system
dependsOn:
- name: redis-secrets
namespace: redis
namespace: flux-system
postBuild:
substituteFrom:
- kind: Secret

View File

@@ -1,9 +0,0 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: bjw-s
namespace: flux-system
spec:
interval: 6h
type: oci
url: oci://ghcr.io/bjw-s/helm

View File

@@ -1,8 +0,0 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: external-dns
namespace: flux-system
spec:
interval: 6h
url: https://kubernetes-sigs.github.io/external-dns/

View File

@@ -1,9 +0,0 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: gabe565
namespace: flux-system
spec:
interval: 6h
type: oci
url: oci://ghcr.io/gabe565/charts

40
renovate.json Normal file
View File

@@ -0,0 +1,40 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>3dwardch3ng/renovate-config"
],
"kubernetes": {
"fileMatch": ["\\.yaml$"]
},
"helm-values": {
"fileMatch": ["\\.yaml$"]
},
"flux": {
"fileMatch": ["\\.yaml$"]
},
"packageRules": [
{
"matchDatasources": ["helm"],
"commitMessageTopic": "{{depName}} Helm release"
},
{
"matchDatasources": ["github-releases"],
"matchPackageNames": ["k3s-io/k3s"],
"separateMinorPatch": true
},
{
"matchPackagePrefixes": ["ghcr.io/immich-app/"],
"groupName": "Immich"
},
{
"matchDatasources": ["github-tags"],
"matchPackageNames": ["bjw-s/helm-charts"],
"versioning": "regex:^(?<compatibility>.+)-(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)$"
},
{
"matchDatasources": ["docker", "github-tags"],
"matchPackageNames": ["ghcr.io/fluxcd/flux-manifests", "fluxcd/flux2"],
"groupName": "fluxcd/flux2"
}
]
}