257 Commits

Author SHA1 Message Date
7f45ff2dea turn off nr logging 2024-07-13 14:26:31 +10:00
243f57e1aa add vol for fluent bit 2024-07-13 13:12:03 +10:00
8c5af1a173 update nr chart 2024-07-13 11:33:37 +10:00
97780e8c04 add new-relic monitoring 2024-07-13 11:09:22 +10:00
43c4267968 Merge pull request #435 from 3dwardch3ng/misc
expose pg database
2024-07-12 18:21:28 +10:00
04bd09d221 expose pg database 2024-07-12 18:21:09 +10:00
f6ac31e84d Merge pull request #434 from 3dwardch3ng/infra/logstash
fix logstash service ports
2024-07-12 09:05:19 +10:00
dd5e059748 fix logstash service ports 2024-07-12 09:04:54 +10:00
e4f3c1ad66 Merge pull request #433 from 3dwardch3ng/app/vaultwarden
fix vaultwarden ingress issue
2024-07-11 22:41:50 +10:00
fbbb690422 fix vaultwarden ingress issue 2024-07-11 22:41:25 +10:00
f640264796 Merge pull request #432 from 3dwardch3ng/app/vaultwarden
fix vaultwarden domain
2024-07-11 20:09:09 +10:00
52a6ddd0de fix vaultwarden domain 2024-07-11 20:08:49 +10:00
0f065fde7f Merge pull request #431 from 3dwardch3ng/app/vaultwarden
update spec issue
2024-07-11 19:55:53 +10:00
6954108b84 update spec issue 2024-07-11 19:55:25 +10:00
5ce3baf388 Merge pull request #430 from 3dwardch3ng/app/vaultwarden
add app vaultwarden
2024-07-11 19:28:48 +10:00
6ab1c9c751 add app vaultwarden 2024-07-11 19:28:22 +10:00
0e0a31c32b Merge pull request #429 from 3dwardch3ng/misc
comment out grafana-dashboards, mongodb and renovate services
2024-07-11 18:38:31 +10:00
7516b7407c comment out grafana-dashboards, mongodb and renovate services 2024-07-11 18:38:01 +10:00
cc3ad3ea3b Merge pull request #428 from 3dwardch3ng/infra/renovate
suspend renovate reconciliation
2024-07-11 02:26:02 +10:00
aa7fec1d3f suspend renovate reconciliation 2024-07-11 02:25:41 +10:00
c2f3ffdb46 Merge pull request #427 from 3dwardch3ng/infra/renovate
update renovate cc app
2024-07-11 01:59:41 +10:00
f4db35ba8f update renovate cc app 2024-07-11 01:58:25 +10:00
b6f7b1554f Merge pull request #426 from 3dwardch3ng/infra/renovate
fix Deployment env value type for renovate
2024-07-11 00:27:53 +10:00
d1c5f46141 fix Deployment env value type for renovate 2024-07-11 00:27:32 +10:00
7cd274cf99 Merge pull request #425 from 3dwardch3ng/infra/renovate
fix Deployment env value type for renovate
2024-07-10 22:47:59 +10:00
eb28eb3361 fix Deployment env value type for renovate 2024-07-10 22:47:36 +10:00
869c78c759 Merge pull request #424 from 3dwardch3ng/infra/renovate
fixing infra ks for renovate
2024-07-10 22:04:42 +10:00
8819657c13 fixing infra ks for renovate 2024-07-10 22:04:22 +10:00
dc81b99c68 Merge pull request #423 from 3dwardch3ng/infra/renovate
Infra/renovate
2024-07-10 19:26:20 +10:00
34d9027dc9 fixing infra app renovate 2024-07-10 19:19:20 +10:00
5f33617589 Merge branch 'refs/heads/main' into infra/renovate 2024-07-10 19:09:47 +10:00
ab95034ce7 Merge pull request #422 from 3dwardch3ng/infra/logstash
suspend grafana-dashboards ks
2024-07-10 19:08:13 +10:00
4c6acd5f7e suspend grafana-dashboards ks 2024-07-10 19:07:56 +10:00
5e8a776457 Merge pull request #421 from 3dwardch3ng/infra/logstash
add logstash to ks for reconciliation
2024-07-10 19:04:30 +10:00
125681d7bb add logstash to ks for reconciliation 2024-07-10 19:03:35 +10:00
1f95fc1486 Merge pull request #420 from 3dwardch3ng/infra/logstash
add infra app logstash for omada syslog
2024-07-10 19:00:56 +10:00
674bb2e8d3 add infra app logstash for omada syslog 2024-07-10 19:00:34 +10:00
ce78b13674 Merge pull request #419 from 3dwardch3ng/infra/logstash
fix fsGroup for pod for minio
2024-07-10 18:00:47 +10:00
5c715d1d53 fix fsGroup for pod for minio 2024-07-10 18:00:26 +10:00
4e8ae5d62e Merge pull request #418 from 3dwardch3ng/infra/logstash
add namespace for logstash
2024-07-10 17:29:07 +10:00
d0d06a0e62 add namespace for logstash 2024-07-10 17:28:44 +10:00
0d562da586 Merge pull request #417 from 3dwardch3ng/infra/logstash
update multi-pipelines configmap for logstash
2024-07-10 17:27:36 +10:00
6d1e660e0e update multi-pipelines configmap for logstash 2024-07-10 17:27:19 +10:00
57bd1db561 Merge pull request #416 from 3dwardch3ng/infra/logstash
add multi-pipelines configmap for logstash
2024-07-10 17:17:42 +10:00
412da893a0 add multi-pipelines configmap for logstash 2024-07-10 17:17:20 +10:00
8600bf0319 Merge pull request #415 from 3dwardch3ng/misc
remove flask-consul
2024-07-10 01:09:14 +10:00
5a244987a3 remove flask-consul 2024-07-10 01:08:52 +10:00
0380a29f4a Merge pull request #414 from 3dwardch3ng/misc
suspend mongodb
2024-07-10 01:06:21 +10:00
41964fdd0f suspend mongodb 2024-07-10 01:06:01 +10:00
789b5e1cd6 Merge pull request #413 from 3dwardch3ng/misc
fix pvcs for mongodb
2024-07-08 15:30:32 +10:00
6653264d44 fix pvcs for mongodb 2024-07-08 15:30:15 +10:00
2f47a271e9 Merge pull request #412 from 3dwardch3ng/misc
fix pvcs for mongodb
2024-07-08 14:30:28 +10:00
852341eea4 fix pvcs for mongodb 2024-07-08 14:29:59 +10:00
3d26d66753 Merge pull request #411 from 3dwardch3ng/misc
fix pvcs for mongodb
2024-07-08 07:14:30 +10:00
76586e04b6 fix pvcs for mongodb 2024-07-08 07:13:59 +10:00
68ca84700c Merge pull request #410 from 3dwardch3ng/misc
fix mongodb values
2024-07-08 03:23:33 +10:00
e8f1ef53ce fix mongodb values 2024-07-08 03:23:06 +10:00
f65d782d70 Merge pull request #409 from 3dwardch3ng/infra/mongodb
fix mongodb PVs
2024-07-08 03:08:20 +10:00
a5074800bf fix mongodb PVs 2024-07-08 03:07:54 +10:00
6ace473856 Merge pull request #408 from 3dwardch3ng/misc
fix service names for qbittorrent
2024-07-08 02:53:29 +10:00
a300af301f fix service names for qbittorrent 2024-07-08 02:53:13 +10:00
a2d28a568c Merge pull request #407 from 3dwardch3ng/misc
fix ingress-nginx configMap
2024-07-08 02:49:18 +10:00
dd9dc374ad fix ingress-nginx configMap 2024-07-08 02:47:57 +10:00
b046830a14 Merge pull request #406 from 3dwardch3ng/infra/mongodb
add app mongodb
2024-07-08 02:33:39 +10:00
dac55916ab add app mongodb 2024-07-08 02:31:11 +10:00
7194e853e4 Merge pull request #405 from 3dwardch3ng/infra/mongodb
fix permission issue of minio
2024-07-07 23:38:15 +10:00
0fe65b2135 fix permission issue of minio 2024-07-07 23:37:49 +10:00
8bd91062fb add app renovate 2024-07-06 12:41:19 +10:00
5471475fc3 Merge pull request #404 from 3dwardch3ng/misc
Misc
2024-07-05 18:47:47 +10:00
f3f19643b6 update all rpi5-cluster-node-3 to rpi5-cluster-node-2 2024-07-05 18:46:43 +10:00
4b70d14f10 Merge branch 'refs/heads/main' into misc 2024-07-05 18:44:23 +10:00
f67a5a86f0 Merge pull request #403 from 3dwardch3ng/app/home-assistant
remove home-assistant and flight-tracker services
2024-07-03 00:26:20 +10:00
10ff6539d3 remove home-assistant and flight-tracker services 2024-07-03 00:25:51 +10:00
e1e66145e9 Merge pull request #402 from 3dwardch3ng/app/home-assistant
fixing metadata for core and node-red
2024-07-01 22:40:15 +10:00
40ddba1f5e fixing metadata for core and node-red 2024-07-01 22:39:43 +10:00
54ef0679ea Merge pull request #401 from 3dwardch3ng/app/home-assistant
fix ks issue
2024-07-01 22:06:53 +10:00
a2f83d5ef8 fix ks issue 2024-07-01 22:06:34 +10:00
3aaef980fd Merge pull request #400 from 3dwardch3ng/app/home-assistant
App/home assistant
2024-07-01 21:50:11 +10:00
ec6c7640bd remove flight-tracker 2024-07-01 21:49:52 +10:00
5f38f24fe4 add home assistant 2024-07-01 21:49:15 +10:00
ef261c0d51 Merge pull request #399 from 3dwardch3ng/app/home-assistant
add home assistant addon node-red
2024-07-01 17:51:33 +10:00
bc5f1f78ca add home assistant addon node-red 2024-07-01 17:51:16 +10:00
d8e2d361fc Merge pull request #398 from 3dwardch3ng/app/home-assistant
add home assistant addon node-red
2024-07-01 17:50:58 +10:00
116b74db99 add home assistant addon node-red 2024-07-01 17:50:41 +10:00
b387437752 Merge pull request #397 from 3dwardch3ng/app/home-assistant
App/home assistant
2024-07-01 17:46:33 +10:00
32f7b57854 add home assistant addon node-red 2024-07-01 17:44:23 +10:00
04c2e97b6f add app home assistant core 2024-07-01 16:16:11 +10:00
4c5cbb2cdb Merge pull request #396 from 3dwardch3ng/app/flight-tracker
update image
2024-07-01 12:44:49 +10:00
bf33b6578a update image 2024-07-01 12:44:18 +10:00
b2b129934f Merge pull request #395 from 3dwardch3ng/app/flight-tracker
fix config file path value
2024-06-30 23:13:31 +10:00
ba381c6b49 fix config file path value 2024-06-30 23:13:14 +10:00
00abb1ed32 Merge pull request #394 from 3dwardch3ng/app/flight-tracker
fix incorrect vol names
2024-06-30 23:09:05 +10:00
efb4d0431c fix incorrect vol names 2024-06-30 23:08:46 +10:00
bb3ad74219 Merge pull request #393 from 3dwardch3ng/app/flight-tracker
add name of ports to the service
2024-06-30 23:03:41 +10:00
806dd1458b add name of ports to the service 2024-06-30 23:03:24 +10:00
3abf720f4a Merge pull request #392 from 3dwardch3ng/app/flight-tracker
mount config files
2024-06-30 22:59:39 +10:00
fe00923a02 mount config files 2024-06-30 22:59:22 +10:00
a5b0b29b99 Merge pull request #391 from 3dwardch3ng/app/flight-tracker
add node affinity
2024-06-30 22:45:00 +10:00
fcbe2ddd2b add node affinity 2024-06-30 22:43:56 +10:00
d21cc9aa7d Merge pull request #390 from 3dwardch3ng/app/flight-tracker
add app flight-tracker
2024-06-30 22:36:47 +10:00
52db9e1669 add app flight-tracker 2024-06-30 22:36:12 +10:00
b96b2654dc Merge branch 'refs/heads/main' into misc 2024-06-27 20:57:32 +10:00
7f2b21b41b Merge pull request #389 from 3dwardch3ng/app/qBittorrent
update volumes for qBittorrent
2024-06-27 19:17:37 +10:00
1a6b123955 update volumes for qBittorrent 2024-06-27 19:17:19 +10:00
b699e6ead4 Merge pull request #388 from 3dwardch3ng/app/qBittorrent
update volumes for qBittorrent
2024-06-27 19:13:30 +10:00
3fb17564af update volumes for qBittorrent 2024-06-27 19:13:02 +10:00
6b442b728a adding ingress for testing 2024-06-27 16:43:25 +10:00
899fa8d65a Merge pull request #387 from 3dwardch3ng/misc
adding ingress for testing
2024-06-27 16:18:43 +10:00
d4dceafb8c adding ingress for testing 2024-06-27 16:18:09 +10:00
afb662491f Merge pull request #386 from 3dwardch3ng/misc
Misc
2024-06-27 15:55:57 +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
26ae14105a Merge pull request #319 from 3dwardch3ng/app/dokuwiki
update container ports
2024-06-26 01:12:01 +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
3fe182f6ba Merge pull request #317 from 3dwardch3ng/app/dokuwiki
add app dokuwiki
2024-06-26 00:50:36 +10:00
96 changed files with 1995 additions and 140 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

@@ -27,7 +27,7 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
- rpi5-cluster-node-2
---
apiVersion: v1
kind: PersistentVolumeClaim

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

@@ -27,7 +27,7 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
- rpi5-cluster-node-2
---
apiVersion: v1
kind: PersistentVolumeClaim

View File

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

View File

@@ -27,7 +27,7 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
- rpi5-cluster-node-2
---
apiVersion: v1
kind: PersistentVolumeClaim

View File

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

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

@@ -22,7 +22,7 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
- rpi5-cluster-node-2
---
apiVersion: v1
kind: PersistentVolume
@@ -48,4 +48,4 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
- rpi5-cluster-node-2

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
@@ -50,7 +52,7 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
- rpi5-cluster-node-2
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
@@ -76,7 +78,7 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
- rpi5-cluster-node-2
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
@@ -102,7 +104,7 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
- rpi5-cluster-node-2
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
@@ -128,7 +130,7 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
- rpi5-cluster-node-2
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
@@ -154,7 +156,7 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
- rpi5-cluster-node-2
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim

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,7 +3,6 @@ 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
@@ -12,10 +11,9 @@ resources:
- ./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
- ./vaultwarden/vaultwarden.yaml
- ./weave-gitops/weave-gitops.yaml

View File

@@ -22,7 +22,7 @@ spec:
resources:
limits:
memory: "3Gi"
cpu: "500m"
cpu: "1"
requests:
memory: "2Gi"
cpu: "500m"

View File

@@ -16,6 +16,6 @@ spec:
path: "/"
backend:
service:
name: qbittorrent
name: qbittorrent-qbittorrent-web
port:
number: 8888

View File

@@ -24,7 +24,9 @@ spec:
port: 8388
config:
persistence:
name: "qbittorrent-config-pvc"
name: config
storageClass: local-path
size: 5Gi
volumeMounts:
- name: qbittorrent-download-pvc
- name: download
mountPath: /download

View File

@@ -1,7 +1,7 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: qbittorrent-config
name: config
namespace: qbittorrent
labels:
type: local
@@ -18,7 +18,7 @@ spec:
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: qbittorrent-config-pvc
name: config
namespace: qbittorrent
nodeAffinity:
required:
@@ -27,7 +27,7 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
- rpi5-cluster-node-2
---
#apiVersion: v1
#kind: PersistentVolumeClaim
@@ -48,7 +48,7 @@ spec:
apiVersion: v1
kind: PersistentVolume
metadata:
name: qbittorrent-download
name: download
namespace: qbittorrent
labels:
type: local
@@ -56,7 +56,7 @@ spec:
storageClassName: local-path
volumeMode: Filesystem
capacity:
storage: 5Gi
storage: 64Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
@@ -65,7 +65,7 @@ spec:
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: qbittorrent-download-pvc
name: download
namespace: qbittorrent
nodeAffinity:
required:
@@ -74,15 +74,15 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
- rpi5-cluster-node-2
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: qbittorrent-download-pvc
name: download
namespace: qbittorrent
labels:
name: qbittorrent-download-pvc
name: download
spec:
storageClassName: local-path
volumeMode: Filesystem

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

@@ -34,7 +34,7 @@ spec:
elastic: 30091
persistence:
enabled: true
storageClass: "local-path"
storageClass: local-path
size: "32Gi"
existingClaim: "sonarqube-pvc"
postgresql:

View File

@@ -27,7 +27,7 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
- rpi5-cluster-node-2
---
apiVersion: v1
kind: PersistentVolumeClaim

View File

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

View File

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

View File

@@ -0,0 +1,48 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: vaultwarden
namespace: vaultwarden
labels:
app.kubernetes.io/name: vaultwarden
spec:
selector:
matchLabels:
app.kubernetes.io/name: vaultwarden
template:
metadata:
labels:
app.kubernetes.io/name: vaultwarden
rpi5.cluster.policy/egress-world: "true"
rpi5.cluster.policy/ingress-world: "true"
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
containers:
- securityContext:
runAsUser: 1000
runAsNonRoot: true
runAsGroup: 1000
name: vaultwarden
image: vaultwarden/server:1.31.0
env:
- name: DOMAIN
value: https://vaultwarden.cluster.edward.sydney
- name: SIGNUPS_ALLOWED
value: "true"
- name: DATABASE_URL
value: postgresql://${db_username}:${db_password}@${db_host}:5432/${db_name}
ports:
- protocol: TCP
containerPort: 80
name: http
volumeMounts:
- name: vaultwarden-data
mountPath: /data
volumes:
- name: vaultwarden-data
hostPath:
path: /mnt/nfs/AppData/vaultwarden/data
type: Directory

View File

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

View File

@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: vaultwarden
namespace: vaultwarden
labels:
app.kubernetes.io/name: vaultwarden
spec:
selector:
app.kubernetes.io/name: vaultwarden
type: ClusterIP
internalTrafficPolicy: Cluster
ports:
- protocol: TCP
port: 11080
targetPort: 80
name: http

View File

@@ -0,0 +1,46 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: vaultwarden-secrets
namespace: flux-system
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
targetNamespace: vaultwarden
path: ./vaultwarden
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: vaultwarden
namespace: vaultwarden
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/apps/vaultwarden/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: vaultwarden-secrets
namespace: flux-system
postBuild:
substituteFrom:
- kind: Secret
name: vaultwarden-secrets

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,50 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: grafana-dashboards-secrets
namespace: flux-system
spec:
suspend: true
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:
suspend: true
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

@@ -4,13 +4,11 @@ metadata:
name: tcp-services
namespace: ingress-nginx
data:
"53": "flux-system/adguard-home:53"
"853": "flux-system/adguard-home:853"
"5432": "postgresql/postgresql-primary:5432"
"5433": "postgresql/postgresql-replica:5432"
"5443": "flux-system/adguard-home:5443"
"6060": "flux-system/adguard-home:6060"
"8388": "qbittorrent/qbittorrent-torrent:8388"
"53": "adguard-home/adguard-home:53"
"853": "adguard-home/adguard-home:853"
"5443": "adguard-home/adguard-home:5443"
"6060": "adguard-home/adguard-home:6060"
"8388": "qbittorrent/qbittorrent-qbittorrent-torrent:8388"
---
apiVersion: v1
kind: ConfigMap
@@ -18,9 +16,9 @@ metadata:
name: udp-services
namespace: ingress-nginx
data:
"53": "flux-system/adguard-home:53"
"67": "flux-system/adguard-home:67"
"68": "flux-system/adguard-home:68"
"853": "flux-system/adguard-home:853"
"5443": "flux-system/adguard-home:5443"
"8388": "qbittorrent/qbittorrent-torrent:8388"
"53": "adguard-home/adguard-home:53"
"67": "adguard-home/adguard-home:67"
"68": "adguard-home/adguard-home:68"
"853": "adguard-home/adguard-home:853"
"5443": "adguard-home/adguard-home:5443"
"8388": "qbittorrent/qbittorrent-qbittorrent-torrent:8388"

View File

@@ -1,8 +1,22 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespaces/namespaces.yaml
- ./repositories/repositories.yaml
# - ./cilium/cilium.yaml
- ./ingress-nginx/ingress-nginx-config.yaml
- ./cert-manager/cert-manager.yaml
# - ./cilium/cilium.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
- ./logstash/logstash.yaml
- ./minio/minio.yaml
# - ./mongodb/mongodb.yaml
- ./namespaces/namespaces.yaml
- ./new-relic/new-relic.yaml
- ./postgresql/postgresql.yaml
- ./prometheus/prometheus.yaml
- ./prometheus-alertmanager/prometheus-alertmanager.yaml
- ./prometheus-exporters/prometheus-exporters.yaml
- ./redis/redis.yaml
# - ./renovate/renovate.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,31 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: logstash-ingress
namespace: logstash
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
- host: "omada.logstash.cluster.edward.sydney"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: logstash
port:
number: 8008
- host: "logstash.cluster.edward.sydney"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: logstash
port:
number: 9600

View File

@@ -0,0 +1,46 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: logstash-pipelines
namespace: logstash
data:
pipelines.yaml: |
- pipeline.id: omada
path.config: "/opt/bitnami/logstash/config/omada.conf"
- pipeline.id: misc
path.config: "/opt/bitnami/logstash/config/misc.conf"
omada.conf: |
input {
tcp {
port => 1514
type => syslog
}
udp {
port => 1514
type => syslog
}
http {
port => 8008
}
}
output {
s3 {
access_key_id => ${omada_s3_access_key_id}
bucket => "logstash"
canned_acl => "bucket-owner-read"
endpoint => "http://minio.minio.svc.cluster.local:19000"
prefix => "omada/%{+YYYY}/%{+MM}/%{+dd}"
region: "ap-southeast-2"
secret_access_key => ${omada_s3_secret_access_key}
time_file => 60
}
}
misc.conf: |
input {
file {
path => "/tmp/misc"
}
}
output {
stdout { }
}

View File

@@ -0,0 +1,67 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: logstash
namespace: logstash
spec:
releaseName: logstash
chart:
spec:
chart: logstash
sourceRef:
kind: HelmRepository
name: bitnami
namespace: flux-system
interval: 1h
install:
remediation:
retries: 3
values:
existingConfiguration: logstash-pipelines
serviceAccount:
name: logstash
containerPorts:
- name: monitoring
containerPort: 9600
protocol: TCP
- name: omada-http
containerPort: 8008
protocol: TCP
- name: omada-syslog-udp
containerPort: 1514
protocol: UDP
- name: omada-syslog-tcp
containerPort: 1514
protocol: TCP
podSecurityContext:
fsGroup: 1000
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
service:
type: LoadBalancer
ports:
- name: monitoring
port: 9600
targetPort: monitoring
protocol: TCP
- name: omada-http
port: 8008
targetPort: omada-http
protocol: TCP
- name: omada-syslog-udp
port: 1514
targetPort: omada-syslog-udp
protocol: UDP
- name: omada-syslog-tcp
port: 1514
targetPort: omada-syslog-tcp
protocol: TCP
persistence:
enabled: true
existingClaim: logstash-pvc
size: 16Gi
volumePermissions:
enabled: true
securityContext:
runAsUser: 1000

View File

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

View File

@@ -0,0 +1,50 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: logstash-secrets
namespace: flux-system
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
targetNamespace: logstash
path: ./logstash
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: logstash
namespace: logstash
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/infrastructure/logstash/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: namespaces
namespace: flux-system
- name: logstash-secrets
namespace: flux-system
- name: local-path-provisioner
namespace: local-path-storage
postBuild:
substituteFrom:
- kind: Secret
name: logstash-secrets

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,36 @@
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-2
service:
ports:
api: 19000
console: 19001
persistence:
existingClaim: "minio-pvc"
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
podSecurityContext:
fsGroup: 1000

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-2
---
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,82 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: mongodb
namespace: mongodb
spec:
releaseName: mongodb
chart:
spec:
chart: mongodb
sourceRef:
kind: HelmRepository
name: bitnami
namespace: flux-system
interval: 1h
install:
remediation:
retries: 3
values:
architecture: replicaset
auth:
rootPassword: ${root_password}
usernames:
- edward
- anysync
passwords:
- ${edward_password}
- ${anysync_password}
databases:
- edward
- anysync
automountServiceAccountToken: true
replicaCount: 2
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
startupProbe:
enabled: true
externalAccess:
enabled: true
service:
type: LoadBalancer
autoDiscovery:
enabled: true
persistence:
name: "datadir-mongodb-0"
resourcePolicy: "keep"
storageClass: "local-path"
size: "32Gi"
labels:
name: datadir-mongodb-0
volumeClaimTemplates:
selector:
matchLabels:
name: mongodb-pv
persistentVolumeClaimRetentionPolicy:
enabled: true
backup:
enabled: true
cronjob:
schedule: "@daily"
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
storage:
resourcePolicy: "keep"
storageClass: "local-path"
volumeClaimTemplates:
selector:
matchLabels:
name: mongodb-backup-pv
serviceAccount:
create: true
name: mongodb
rbac:
create: true

View File

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

View File

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

View File

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

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: logstash

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: mongodb

View File

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

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: renovate

View File

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

View File

@@ -0,0 +1,47 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: new-relic
namespace: new-relic
spec:
releaseName: new-relic
chart:
spec:
chart: nri-bundle
sourceRef:
kind: HelmRepository
name: new-relic
namespace: flux-system
interval: 1h
values:
global:
cluster: RPi5 Cluster
licenseKey: ${nr_license_key}
lowDataMode: true
newrelic-infrastructure:
privileged: true
kube-state-metrics:
enabled: true
image:
tag: v2.10.0
kubeEvents:
enabled: true
newrelic-prometheus-agent:
enabled: true
lowDataMode: true
config:
kubernetes:
integrations_filter:
enabled: false
logging:
enabled: true
newrelic-logging:
enabled: false
lowDataMode: true
fluentBit:
persistence:
mode: hostPath
persistentVolume:
storageClass: "local-path"
existingVolume: "nr-fluentbit-pv"
existingVolumeClaim: "nr-fluentbit-pvc"

View File

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

View File

@@ -0,0 +1,52 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: new-relic-secrets
namespace: flux-system
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
targetNamespace: new-relic
path: ./new-relic
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: new-relic
namespace: new-relic
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/infrastructure/new-relic/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: namespaces
namespace: flux-system
- name: repositories
namespace: flux-system
- name: new-relic-secrets
namespace: flux-system
- name: local-path-provisioner
namespace: local-path-storage
postBuild:
substituteFrom:
- kind: Secret
name: new-relic-secrets

View File

@@ -27,7 +27,7 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
- rpi5-cluster-node-2
---
apiVersion: v1
kind: PersistentVolumeClaim
@@ -74,7 +74,7 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
- rpi5-cluster-node-2
---
apiVersion: v1
kind: PersistentVolumeClaim

View File

@@ -36,6 +36,8 @@ spec:
runAsGroup: 1000
podLabels:
name: "postgresql-primary"
service:
type: "LoadBalancer"
persistence:
existingClaim: postgresql-primary-pvc
selector:
@@ -50,6 +52,8 @@ spec:
runAsGroup: 1000
podLabels:
name: "postgresql-replica"
service:
type: "LoadBalancer"
persistence:
existingClaim: postgresql-replica-pvc
selector:

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

@@ -4,7 +4,7 @@ spec:
port: 5432
targetPort: 5432
protocol: TCP
- name: postgresql-repl--tcp
- name: postgresql-repl-tcp
port: 5433
targetPort: 5433
protocol: TCP

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,68 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: renovate-exporter
namespace: renovate
spec:
chart:
spec:
chart: prometheus-json-exporter
version: 0.11.0
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
namespace: flux-system
name: prometheus-community
interval: 1h
driftDetection:
mode: enabled
values:
nameOverride: renovate-exporter
configuration:
# language=yaml
config: |
modules:
renovate:
http_client_config:
authorization:
credentials_file: /credentials/renovate.txt
metrics:
- name: renovate_organization_count
valuetype: gauge
path: "{ .app.organizationCount }"
help: The number of organizations known to renovate
- name: renovate_repository_count
valuetype: gauge
path: "{ .app.repositoryCount }"
help: The number of repositories known to renovate
- name: renovate_jobs_processed
valuetype: counter
path: "{ .jobs.history.processed }"
help: The number of jobs processed since the instance has started
- name: renovate_queue_size
valuetype: gauge
path: "{ .jobs.queue.size }"
help: The number of jobs currently in the queue
additionalVolumes:
- name: renovate-credentials
secret:
secretName: app-vars
additionalVolumeMounts:
- name: renovate-credentials
mountPath: /credentials/renovate.txt
subPath: api_secret
serviceMonitor:
enabled: true
defaults:
interval: 1m
targets:
- name: renovate
url: http://renovate.renovate.svc.cluster.local:8099/api/status
module: renovate

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-2
---
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-2
---
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

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

View File

@@ -0,0 +1,62 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: renovate
namespace: renovate
spec:
releaseName: renovate
chart:
spec:
chart: mend-renovate-ce
sourceRef:
kind: HelmRepository
name: mend-renovate-cc-ee
namespace: flux-system
interval: 1h
install:
remediation:
retries: 3
values:
renovate:
mendRnvAcceptTos: y
mendRnvLicenseKey: ${renovate_license_key}
mendRnvPlatform: github
mendRnvEndpoint: "https://api.github.com/"
mendRnvGithubAppId: "938218"
mendRnvGithubAppKey: "/usr/src/app/rpi5-cluster-renovate.2024-07-05.private-key.pem"
mendRnvAdminApiEnabled: "true"
mendRnvServerApiSecret: ${server_api_secret}
mendRnvWebhookSecret: ${github_app_webhook_secret}
githubComToken: ${github_pat}
mendRnvAutoDiscoverFilter: "3dwardch3ng/home-cluster-ops"
mendRnvEnqueueJobsOnStartup: "enabled"
mendRnvLogHistoryDir: "/logs"
postgresql:
enabled: true
host: ${db_pg_host}
port: 5432
database: ${db_pg_database}
user: ${db_pg_user}
password: ${db_pg_password}
service:
type: ClusterIP
port: 8099
podSecurityContext:
fsGroup: 1000
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
extraVolumes:
- name: renovate-logs
hostPath:
path: /mnt/nfs/AppData/renovate/logs
type: Directory
- name: renovate-gh-app-pem
hostPath:
path: /mnt/nfs/AppData/renovate/key/rpi5-cluster-renovate.2024-07-05.private-key.pem
type: File
extraVolumeMounts:
- name: renovate-logs
mountPath: /logs
- name: renovate-gh-app-pem
mountPath: /usr/src/app/rpi5-cluster-renovate.2024-07-05.private-key.pem

View File

@@ -0,0 +1,53 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: renovate-secrets
namespace: flux-system
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
targetNamespace: renovate
path: ./renovate
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: renovate
namespace: renovate
spec:
suspend: true
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/infrastructure/renovate/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: namespaces
namespace: flux-system
- name: repositories
namespace: flux-system
- name: renovate-secrets
namespace: flux-system
- name: local-path-provisioner
namespace: local-path-storage
postBuild:
substituteFrom:
- kind: Secret
name: renovate-secrets

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

View File

@@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: mend-renovate-cc-ee
namespace: flux-system
spec:
interval: 6h
url: https://mend.github.io/renovate-ce-ee

View File

@@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: new-relic
namespace: flux-system
spec:
interval: 6h
url: https://helm-charts.newrelic.com