Compare commits
595 Commits
app/cluste
...
misc
| Author | SHA1 | Date | |
|---|---|---|---|
| 6b442b728a | |||
| d4dceafb8c | |||
| 1ea019717e | |||
| 6e118f5a3a | |||
| d6a43ad78b | |||
| 250e3bb9bb | |||
| d6d463e866 | |||
| f6544c3ce7 | |||
| 11538db808 | |||
| 8f00abdf28 | |||
| d8fe8796c2 | |||
| d5a097793f | |||
| 529a73d932 | |||
| 262bc9b810 | |||
| d077a2945e | |||
| 1d75289cfe | |||
| 11050a71b2 | |||
| 9da194cb69 | |||
| 0e007eed23 | |||
| 975ea5b9d2 | |||
| e2cc315694 | |||
| 5107c79885 | |||
| ffcc046e38 | |||
| 89f75af049 | |||
| 9784fa10c4 | |||
| ab52e540b5 | |||
| 6f35053842 | |||
| 6ae9a99b8a | |||
| 25793b75f1 | |||
| 2904ec7aca | |||
| 8fd615eb68 | |||
| 515998e708 | |||
| 89d529def1 | |||
| 703933a222 | |||
| 0a97af35a0 | |||
| a7716a912c | |||
| 4b5a5f9885 | |||
| 033c3a2694 | |||
| 196023b1fa | |||
| 35cdd062df | |||
| 4941c7bb15 | |||
| 85a4e06740 | |||
| 93adac3a24 | |||
| 3f736dd3b2 | |||
| 0af30526ba | |||
| 8090c382fd | |||
| 76a11c16eb | |||
| a118ca9102 | |||
| c90c2015d7 | |||
| 20ca563537 | |||
| 107dba9bf8 | |||
| 7bfa2d54a4 | |||
| 18e8bb4db8 | |||
| c8dd48b104 | |||
| 04c1de1467 | |||
| 17f2acedbf | |||
| e1dce09027 | |||
| 66c17604c6 | |||
| 187403470a | |||
| 8f9b299c46 | |||
| c17d3d77d2 | |||
| 731ac3d7d5 | |||
| 2ccc680abc | |||
| ad73ae43a1 | |||
| 2c6c85df47 | |||
| 6a5d02b21b | |||
| b96697689e | |||
| a7b26bbe6f | |||
| 0b74f8f246 | |||
| 8ba289e248 | |||
| 386591401b | |||
| 34730f5407 | |||
| 0799662bd7 | |||
| 137225aae2 | |||
| dbbb78b2b1 | |||
| f2b5a734d6 | |||
| 0599402bdf | |||
| 1872b234b8 | |||
| 3fcba505ed | |||
| ba81692477 | |||
| d77ca493bc | |||
| b9e041e09a | |||
| 668a62585e | |||
| 53cb75335e | |||
| 3736bdc92a | |||
| b64ed0bef5 | |||
| c210ee222f | |||
| 224b310b71 | |||
| cbb1e367af | |||
| fbc2b73f49 | |||
| 1ef3600b56 | |||
| 84902910cc | |||
| 9aff02ea24 | |||
| 488c95048d | |||
| a5f23660e7 | |||
| 6278918f62 | |||
| d4aeacbc88 | |||
| a882d2b296 | |||
| e3f753b2d7 | |||
| 4958cbc794 | |||
| 933f05bbf4 | |||
| 754997d29f | |||
| 5a5d3272c1 | |||
| c7fd259ee4 | |||
| eaab0b917f | |||
| ada80c434f | |||
| afbc7f53b5 | |||
| 0619a824e4 | |||
| 0cab53df67 | |||
| d88e17efcd | |||
| c5ecd5986d | |||
| 45393e99e3 | |||
| 64c7d13104 | |||
| 0efd5341c8 | |||
| 923263f27e | |||
| c3c7efa2ec | |||
| b6f00d0140 | |||
| 9119f221ca | |||
| feffc4a0dd | |||
| 603be0fc8e | |||
| a89b4e1678 | |||
| f28a8a87bb | |||
| e72a6e482e | |||
| a8f17a910b | |||
| d06ecd7502 | |||
| 27fabf9b24 | |||
| 581240bec5 | |||
| 63f0349879 | |||
| 8eb500a99b | |||
| 6c53ee8d23 | |||
| c8aa1862c6 | |||
| bd6d2e5825 | |||
| b69c377696 | |||
| 5255c165fc | |||
| 5fa5ccd197 | |||
| 15ad09a55c | |||
| 15f6f3842f | |||
| 653828d1a1 | |||
| 9dbd91280d | |||
| 45b4623531 | |||
| f2484fc1fc | |||
| 2aa025296f | |||
| c727cbd38b | |||
| 95e1bc2bce | |||
| cf6071ee4e | |||
| 89c01c83ea | |||
| c796aacfec | |||
| 26ae14105a | |||
| 17dcd78a31 | |||
| 3016a8d0f3 | |||
| 16d9f1df34 | |||
| 3fe182f6ba | |||
| 91a305117c | |||
| 62b8ddb6c7 | |||
| a44781a4c7 | |||
| 3e80270ec9 | |||
| d1c71b22af | |||
| 26727e23cd | |||
| 4324087ecb | |||
| 1f86ec4702 | |||
| 8fc1165cc0 | |||
| 72be4562ec | |||
| cd4269e485 | |||
| 55856e8a15 | |||
| ea6032d2fa | |||
| f4eb314c46 | |||
| 46515bdc6d | |||
|
|
a3d1fcd6cd | ||
| 0f014ec66d | |||
| ecd37c7793 | |||
| 0581b3cb40 | |||
| 5edfc815e0 | |||
| d3e62ef96a | |||
| 58e4fbbf56 | |||
| 3b5db030ee | |||
| 672f5b0935 | |||
| 4ead42d438 | |||
| b86d63541a | |||
| 0b7da6761c | |||
| abc995cae1 | |||
| e4f1fc958d | |||
| a76b6cd0b9 | |||
| d5a79df839 | |||
| bc39b04bb4 | |||
| 8059824d42 | |||
| 3bb7305ac9 | |||
| d7ce4a3ccc | |||
| 63dcef953b | |||
| d9f220ac4e | |||
| 82a9957831 | |||
| 21371c5a88 | |||
| e89d22f03d | |||
| 77bf938120 | |||
| 516168d3e5 | |||
| 619fc74394 | |||
| 4628a78f54 | |||
| 57067590b7 | |||
| 86f43d20be | |||
| ccdfee21c2 | |||
| fa832ef64d | |||
| 9e3a5c7488 | |||
| 69bb362d57 | |||
| 4724380c3f | |||
| 525d06a715 | |||
| df768c9031 | |||
| 602cabf041 | |||
| 9f03ea3b30 | |||
| f261b6fac4 | |||
| bd5059863e | |||
| 1348ab51f8 | |||
| e98c99ef9c | |||
| 8f6aa7bd61 | |||
| 74f79898e2 | |||
| 1933ed7a81 | |||
| 5831e1956d | |||
| 70accb15fb | |||
| d6ea1c47e7 | |||
| 63ca2fa1b4 | |||
| caa385be8d | |||
| b05ab8766a | |||
| 2d32ad307a | |||
| 830f49ca6a | |||
| bb6ada6f15 | |||
| 08ffc1aaee | |||
| a84b754903 | |||
| 07e3ea1e8b | |||
| 95299a4d28 | |||
| ff7bec1733 | |||
| 187317ba2e | |||
| 13129c5b0e | |||
| 9f175dd49f | |||
| b2f3f18b4f | |||
| fd2a0e4748 | |||
| 48a280b4aa | |||
| ff57154064 | |||
| 82d7b64322 | |||
| 516f304dbe | |||
| 99ce41c430 | |||
| 949f11769c | |||
| 4bbb33391b | |||
| ef03aa7a25 | |||
| c71b356017 | |||
| 70b64d0213 | |||
| 8a63192c60 | |||
| 47cdb6893f | |||
| 636e1a3267 | |||
| c21960843a | |||
| 1f3700887a | |||
| 252457cc7d | |||
| 2697c0aea6 | |||
| a979145d9e | |||
| 39d344b52e | |||
| 6e0f980bab | |||
| 9a68d82f83 | |||
| 2f8a0d1841 | |||
| 6a75addfa8 | |||
| 23fa5fb6d0 | |||
| 23b62970dd | |||
| ec89adccfc | |||
| ec5a9b2cf6 | |||
| 64f268aed8 | |||
| ddb8ea9a05 | |||
| 9d41316730 | |||
| cf49bbb20c | |||
| 9cf9e1622c | |||
| 901da39e24 | |||
| 6f247e0903 | |||
| c43357c7c4 | |||
| c0731f893a | |||
| e6c2157036 | |||
| ce1ea789c1 | |||
| 23615dbdf1 | |||
| 739d1fa4d7 | |||
| 5b887c5ea3 | |||
| ae8680ce63 | |||
| 81e8425379 | |||
| c8e97f5619 | |||
| 1e5a359aab | |||
| 8bf021c6c3 | |||
| 3b50141790 | |||
| 5f46937a4e | |||
| 4c8a194452 | |||
| 044ea968c0 | |||
| 7be1fbc1f8 | |||
| 57b8332da2 | |||
| fc81537d18 | |||
| 6efb893187 | |||
| 6c6520f3bc | |||
| 9adb0154f1 | |||
| c23a5b2683 | |||
| 16a268c9e7 | |||
| 56e18266e4 | |||
| e3f2fc19d7 | |||
| 42abc7daca | |||
| 39879df061 | |||
| 2db32f6db7 | |||
| eb6e9924ab | |||
| ec1999fb7d | |||
| 1bcba7a4d8 | |||
| 84b7bda9d4 | |||
| 3cf2f4b087 | |||
| c2ca39fb76 | |||
| 6fc79b2526 | |||
| ca8e52a54d | |||
| 36a01ebbb7 | |||
| de8d5d5b58 | |||
| 4c8be01ecf | |||
| 892af5ca7d | |||
| 9cbb18c4f4 | |||
| a226e9b982 | |||
| 8fd546728d | |||
| 205bbbaac9 | |||
| ae9dddfdf5 | |||
| b44527ac20 | |||
| 4538d1ed64 | |||
| 3345136e4b | |||
| 4502e596d1 | |||
| 0e5520c36a | |||
| 5df774a1d1 | |||
| 0d11c779fa | |||
| 74ba1b4204 | |||
| 456384df7d | |||
| ea4f919568 | |||
| a42bf41dea | |||
| 2fed17a433 | |||
| 90e580b1b5 | |||
| e8892b14e9 | |||
| a62f61606a | |||
| c2da7d5d73 | |||
| 11e12e8556 | |||
| a3ecd961d3 | |||
| 335cbe38e0 | |||
| 34d1b3a594 | |||
| f0f8890dc9 | |||
| ffafa40208 | |||
| 2218588ecf | |||
| 1a9b0d2686 | |||
| 72241ab088 | |||
| 49d1ac23d4 | |||
| da678cf970 | |||
| 3da466beab | |||
| 669848c3d5 | |||
| 8dc7ccc43c | |||
| 7f4796431b | |||
| 197cccc536 | |||
| 133fe712e4 | |||
| 6371ac1d74 | |||
| 5a97e286f7 | |||
| cb477c00c1 | |||
| 344ab797ad | |||
| 4862b5f745 | |||
| f1b4e1afc2 | |||
| 2f5901d383 | |||
| 9b9cf55f5b | |||
| 7b1e5da19e | |||
| 80b6796a41 | |||
| 9576468fe6 | |||
| 474834ea2d | |||
| 89191478ac | |||
| a11198b94c | |||
| 1da7d9ca85 | |||
| 30777bdd84 | |||
| 1b26e7224a | |||
| 01d537630e | |||
| dd4559b416 | |||
| 2607278cd3 | |||
| f18a213af9 | |||
| 1e7212e113 | |||
| 663eabb929 | |||
| 97377ca90c | |||
| 47ba9252a1 | |||
| 3ba148bf40 | |||
| a1e598d182 | |||
| 87af7826d4 | |||
| 94c9e40240 | |||
| db7620ab8e | |||
| cb8513ae16 | |||
| 9758633c9e | |||
| 5710275453 | |||
| 956ff9fc47 | |||
| cbb451f4a5 | |||
| 33aa120d91 | |||
| 5db7b3d12e | |||
| 46c738d076 | |||
| 9ed309c6d1 | |||
| d6ffc4540d | |||
| 8de7bc9920 | |||
| fd3d1068b5 | |||
| 4a67b30183 | |||
| 7c7c965f23 | |||
| ebbc2539af | |||
| bbe5317113 | |||
| 4c976b8d3e | |||
| 211a0ac1c0 | |||
| 023a379f28 | |||
| 49ad373fd4 | |||
| 91b1167b49 | |||
| 898d101f64 | |||
| 8ba1c93269 | |||
| 57c5b383bb | |||
| 6e5725f008 | |||
| de9a2398d9 | |||
| ef22cfac0a | |||
| b7025e3743 | |||
| 24026defaa | |||
| 0e50cbebd9 | |||
| 95bf51060a | |||
| 0f9728a38f | |||
| 1da7dc74db | |||
| 4297338d49 | |||
| c7a267c49d | |||
| 6ac1b8b573 | |||
| 6a9f669198 | |||
| 1c6bbef39b | |||
| 25d07f8dd4 | |||
| 2df70e0078 | |||
| 7a18806609 | |||
| dbf60df2f1 | |||
| d099a3120a | |||
| dcfb1853f8 | |||
| 631f6ff1e5 | |||
| c171c50341 | |||
|
|
13ca226fc7 | ||
| c1088aa57e | |||
| bdc36d5699 | |||
| 0db823e727 | |||
| f2ac11b608 | |||
| c314dd6f3e | |||
| e509f0d1bd | |||
| 784acb51c1 | |||
| 338880efb6 | |||
| d13e5346f7 | |||
| 8736b79cc1 | |||
| 06cb419cab | |||
| bf400f8e27 | |||
| 179d26a67b | |||
| 69aee1e265 | |||
| bc867c8136 | |||
| d4996ab1ef | |||
| b4b29ec271 | |||
| d9f70a731d | |||
| 7a7a905b41 | |||
| 2e9258ed7c | |||
| 1e1242ca6e | |||
| 99cf6a9bd9 | |||
| 585d9c6b19 | |||
| 634fd9b80b | |||
| 25dec131c6 | |||
| ce01d8d5aa | |||
| 66f8c6a883 | |||
| e169fa6470 | |||
| e11fbd3285 | |||
| 8d4dcf9331 | |||
| 3b00e780d4 | |||
| 4a21fe98a7 | |||
| f71dac54b2 | |||
| 23a3ce7478 | |||
| fd27072cb6 | |||
| 22686543e8 | |||
| a78a2da146 | |||
| b705b595ef | |||
| 7adcd45c76 | |||
| bdbd0faca2 | |||
| 82d102f83f | |||
| fb61fed358 | |||
| 891d0ef73a | |||
| c7069687a9 | |||
| 9eafb328f7 | |||
| 73450413b8 | |||
| 6044624b10 | |||
| 582a9ea511 | |||
| f50e21d191 | |||
| 07369892e6 | |||
| b790323e74 | |||
| 735b875873 | |||
| e08e386f3c | |||
| 5c610e6b55 | |||
| 878c33988f | |||
| f9d5839ca6 | |||
| 307aab13c6 | |||
| 7c59a97416 | |||
| 6c0212d903 | |||
| f94ddfeb41 | |||
| b0dbb40418 | |||
| b330ca44ae | |||
| 6e540afae1 | |||
| fb907d0e95 | |||
| 958c37f7d1 | |||
| 05886d56be | |||
| b28947421d | |||
| f9b46555a5 | |||
| 27c97aecd8 | |||
| c3018a21ba | |||
| 5b76953cbd | |||
| b60ebde576 | |||
| f8dea2e387 | |||
| 9d2c5e6162 | |||
| 79884138cd | |||
| 3a32f97dcc | |||
| ab004e4542 | |||
| b5095de6ee | |||
| be073a2367 | |||
| 782b938b7c | |||
| 1f1ef5aa7f | |||
| 290e8bf569 | |||
| 0a153c19a4 | |||
| 9ec67f1f33 | |||
| d57ebf4a24 | |||
| dcc77d3597 | |||
| d06be6330f | |||
| eec0b59fc1 | |||
| 0a75da6a3d | |||
| b05ac5b2ff | |||
| 11a46ec0b6 | |||
| 8b1ded50cd | |||
| 5ef01cbb10 | |||
| 84ca54d4c8 | |||
| 2a14437029 | |||
| 9e35c2f9c9 | |||
| 7831b5b9c4 | |||
| 136e267cae | |||
| 13c7c6831c | |||
| 7334dd9523 | |||
| 55139be7da | |||
| e0c7fc4646 | |||
| 04c577f23a | |||
| 8c82d598fa | |||
| 7a015f3475 | |||
| d390e3ed08 | |||
| 66839f5f63 | |||
| de3e54c800 | |||
| e3a774d8db | |||
| c544742717 | |||
| 9dc9d58bd8 | |||
| f9edf168ea | |||
| 77e20e2c63 | |||
| 6b00448a42 | |||
| faeefa1fc2 | |||
| 173df38044 | |||
| 60f93ef509 | |||
| 618d0fb4cf | |||
| 0bfcd903bf | |||
| fb042fea27 | |||
| dbaa2444fe | |||
| 53e9bfbc2f | |||
| cc3327f644 | |||
| 90a210eda3 | |||
| 36b2781ddc | |||
| bba1e71189 | |||
| c56ac54e3f | |||
| 498d0759f4 | |||
| 6870d4aeff | |||
| a252c74fb6 | |||
| 955697c005 | |||
| 381b833f9b | |||
| 15916f2944 | |||
| 2221fdcfb0 | |||
| be138e8bd3 | |||
| 5b5f77efc2 | |||
| 6f2b6b05d0 | |||
| e534a7fdb9 | |||
| 0fddd7c010 | |||
| 0b8c896b14 | |||
| 00af14577c | |||
| 912147501b | |||
| 24c028281c | |||
| 61c33afbc2 | |||
| fa85be9647 | |||
| 4efc04e67e | |||
| 73a5d3a551 | |||
| fb041354f3 | |||
| fed21c4421 | |||
| 4c2d60830c | |||
| 33bbc4eed9 | |||
| e058624244 | |||
| 73a6f622a2 | |||
| 74bb38e31c | |||
| 80fefda951 | |||
| 76a0a0da7f | |||
| 97c3ec0de0 | |||
| 771f4df8dd | |||
| d904fc2fa2 | |||
| faecbd6d18 | |||
| a746f358ff | |||
| fe0c1c0223 | |||
| 905e3acdfd | |||
| ba1574540c | |||
| 90c996c100 | |||
| ac8f7f3bb0 | |||
| 187d95ec17 | |||
| 979dce07f6 | |||
| 76e9e2acb1 | |||
| b27314be7b | |||
| 5b5268a05e | |||
| 351cbce298 |
@@ -2,11 +2,12 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: adguard-home
|
||||
namespace: flux-system
|
||||
namespace: adguard-home
|
||||
spec:
|
||||
interval: 1h
|
||||
targetNamespace: flux-system
|
||||
path: ./kubernetes/apps/adguard-home
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
path: ./kubernetes/apps/adguard-home/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
|
||||
86
kubernetes/apps/adguard-home/app/deployment.yaml
Normal file
86
kubernetes/apps/adguard-home/app/deployment.yaml
Normal file
@@ -0,0 +1,86 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: adguard-home
|
||||
namespace: adguard-home
|
||||
labels:
|
||||
app.kubernetes.io/name: adguard-home
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: adguard-home
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: adguard-home
|
||||
rpi5.cluster.policy/egress-kubeapi: "true"
|
||||
rpi5.cluster.policy/egress-namespace: "true"
|
||||
rpi5.cluster.policy/egress-world: "true"
|
||||
rpi5.cluster.policy/ingress-namespace: "true"
|
||||
rpi5.cluster.policy/ingress-nginx: "true"
|
||||
rpi5.cluster.policy/ingress-nodes: "true"
|
||||
rpi5.cluster.policy/ingress-world: "true"
|
||||
spec:
|
||||
containers:
|
||||
- name: adguard-home
|
||||
image: adguard/adguardhome:v0.107.51
|
||||
ports:
|
||||
- protocol: TCP
|
||||
containerPort: 53
|
||||
name: dns-tcp
|
||||
- protocol: UDP
|
||||
containerPort: 53
|
||||
name: dns-udp
|
||||
- protocol: UDP
|
||||
containerPort: 67
|
||||
name: dhcps-udp
|
||||
- protocol: UDP
|
||||
containerPort: 68
|
||||
name: dhcpc-udp
|
||||
- protocol: TCP
|
||||
containerPort: 80
|
||||
name: http-tcp
|
||||
- protocol: TCP
|
||||
containerPort: 443
|
||||
name: https-tcp
|
||||
- protocol: UDP
|
||||
containerPort: 443
|
||||
name: https-udp
|
||||
- protocol: TCP
|
||||
containerPort: 853
|
||||
name: dns-tls-tcp
|
||||
- protocol: UDP
|
||||
containerPort: 853
|
||||
name: dns-tls-udp
|
||||
- protocol: TCP
|
||||
containerPort: 3000
|
||||
name: http-alt-tcp
|
||||
- protocol: UDP
|
||||
containerPort: 3000
|
||||
name: http-alt-udp
|
||||
- protocol: TCP
|
||||
containerPort: 5443
|
||||
name: dnscrypt-tcp
|
||||
- protocol: UDP
|
||||
containerPort: 5443
|
||||
name: dnscrypt-udp
|
||||
- protocol: TCP
|
||||
containerPort: 6060
|
||||
name: http-pprof
|
||||
env:
|
||||
- name: TZ
|
||||
value: Australia/Sydney
|
||||
volumeMounts:
|
||||
- name: adguard-home-data
|
||||
mountPath: /opt/adguardhome/work
|
||||
- name: adguard-home-config
|
||||
mountPath: /opt/adguardhome/conf
|
||||
volumes:
|
||||
- name: adguard-home-data
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/adguardhome/work
|
||||
type: Directory
|
||||
- name: adguard-home-config
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/adguardhome/conf
|
||||
type: Directory
|
||||
61
kubernetes/apps/adguard-home/app/ingress.yaml
Normal file
61
kubernetes/apps/adguard-home/app/ingress.yaml
Normal file
@@ -0,0 +1,61 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: adguard-home-ingress
|
||||
namespace: adguard-home
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "adguard-home.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: adguard-home
|
||||
port:
|
||||
number: 10080
|
||||
- host: "adguard-home.cluster.local"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: adguard-home
|
||||
port:
|
||||
number: 10080
|
||||
- host: "setup.adguard-home.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: adguard-home
|
||||
port:
|
||||
number: 13000
|
||||
- host: "setup.adguard-home.cluster.local"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: adguard-home
|
||||
port:
|
||||
number: 13000
|
||||
- host: "doh.adguard-home.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: adguard-home
|
||||
port:
|
||||
number: 443
|
||||
69
kubernetes/apps/adguard-home/app/service.yaml
Normal file
69
kubernetes/apps/adguard-home/app/service.yaml
Normal file
@@ -0,0 +1,69 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: adguard-home
|
||||
namespace: adguard-home
|
||||
labels:
|
||||
app.kubernetes.io/name: adguard-home
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: adguard-home
|
||||
type: ClusterIP
|
||||
internalTrafficPolicy: Cluster
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 53
|
||||
targetPort: 53
|
||||
name: dns-tcp
|
||||
- protocol: UDP
|
||||
port: 53
|
||||
targetPort: 53
|
||||
name: dns-udp
|
||||
- protocol: UDP
|
||||
port: 67
|
||||
targetPort: 67
|
||||
name: dhcps-udp
|
||||
- protocol: UDP
|
||||
port: 68
|
||||
targetPort: 68
|
||||
name: dhcpc-udp
|
||||
- protocol: TCP
|
||||
port: 10080
|
||||
targetPort: 80
|
||||
name: http-tcp
|
||||
- protocol: TCP
|
||||
port: 443
|
||||
targetPort: 443
|
||||
name: https-tcp
|
||||
- protocol: UDP
|
||||
port: 443
|
||||
targetPort: 443
|
||||
name: https-udp
|
||||
- protocol: TCP
|
||||
port: 853
|
||||
targetPort: 853
|
||||
name: dns-tls-tcp
|
||||
- protocol: UDP
|
||||
port: 853
|
||||
targetPort: 853
|
||||
name: dns-tls-udp
|
||||
- protocol: TCP
|
||||
port: 13000
|
||||
targetPort: 3000
|
||||
name: https-alt-tcp
|
||||
- protocol: UDP
|
||||
port: 13000
|
||||
targetPort: 3000
|
||||
name: https-alt-udp
|
||||
- protocol: TCP
|
||||
port: 5443
|
||||
targetPort: 5443
|
||||
name: dnscrypt-tcp
|
||||
- protocol: UDP
|
||||
port: 5443
|
||||
targetPort: 5443
|
||||
name: dnscrypt-udp
|
||||
- protocol: TCP
|
||||
port: 6060
|
||||
targetPort: 6060
|
||||
name: https-pprof
|
||||
@@ -1,53 +0,0 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: adguard-home
|
||||
namespace: adguard-home
|
||||
spec:
|
||||
releaseName: adguard-home
|
||||
chart:
|
||||
spec:
|
||||
chart: adguard-home
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: truecharts
|
||||
namespace: flux-system
|
||||
interval: 5m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
main:
|
||||
port: 10080
|
||||
protocol: http
|
||||
setup:
|
||||
enabled: true
|
||||
ports:
|
||||
setup:
|
||||
enabled: true
|
||||
port: 13000
|
||||
targetPort: 3000
|
||||
persistence:
|
||||
config:
|
||||
enabled: true
|
||||
hostPath: /mnt/nfs/AppData/adguardhome/conf
|
||||
type: Directory
|
||||
work:
|
||||
enabled: true
|
||||
hostPath: /mnt/nfs/AppData/adguardhome/work
|
||||
type: Directory
|
||||
portal:
|
||||
open:
|
||||
enabled: true
|
||||
container:
|
||||
volumeMounts:
|
||||
- name: work
|
||||
mountPath: /opt/adguardhome/work
|
||||
readOnly: false
|
||||
- name: config
|
||||
mountPath: /opt/adguardhome/conf
|
||||
readOnly: false
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
spec:
|
||||
ports:
|
||||
- name: dns-tcp
|
||||
port: 53
|
||||
targetPort: 53
|
||||
protocol: TCP
|
||||
- name: dns-udp
|
||||
port: 53
|
||||
targetPort: 53
|
||||
protocol: UDP
|
||||
- name: dhcps-udp
|
||||
port: 67
|
||||
targetPort: 67
|
||||
protocol: UDP
|
||||
- name: dhcpc-udp
|
||||
port: 68
|
||||
targetPort: 68
|
||||
protocol: UDP
|
||||
- name: dns-tls-tcp
|
||||
port: 853
|
||||
targetPort: 853
|
||||
protocol: TCP
|
||||
- name: dns-tls-udp
|
||||
port: 853
|
||||
targetPort: 853
|
||||
protocol: UDP
|
||||
- name: dnscrypt-tcp
|
||||
port: 5443
|
||||
targetPort: 5443
|
||||
protocol: TCP
|
||||
- name: dnscrypt-udp
|
||||
port: 5443
|
||||
targetPort: 5443
|
||||
protocol: UDP
|
||||
- name: https-pprof
|
||||
port: 6060
|
||||
targetPort: 6060
|
||||
protocol: TCP
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
kubectl patch service ingress-nginx-controller -n ingress-nginx --patch "$(cat ingress-nginx-svc-controller-patch.yaml)"
|
||||
21
kubernetes/apps/capacitor/app/ingress.yaml
Normal file
21
kubernetes/apps/capacitor/app/ingress.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: capacitor-ingress
|
||||
namespace: capacitor
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "capacitor.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: capacitor
|
||||
port:
|
||||
number: 9000
|
||||
84
kubernetes/apps/capacitor/app/manifest.yaml
Normal file
84
kubernetes/apps/capacitor/app/manifest.yaml
Normal file
@@ -0,0 +1,84 @@
|
||||
---
|
||||
# Source: onechart/templates/service.yaml
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: capacitor
|
||||
namespace: capacitor
|
||||
labels:
|
||||
helm.sh/chart: onechart-0.63.0
|
||||
app.kubernetes.io/name: onechart
|
||||
app.kubernetes.io/instance: capacitor
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 9000
|
||||
targetPort: 9000
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app.kubernetes.io/name: onechart
|
||||
app.kubernetes.io/instance: capacitor
|
||||
---
|
||||
# Source: onechart/templates/deployment.yaml
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: capacitor
|
||||
namespace: capacitor
|
||||
labels:
|
||||
helm.sh/chart: onechart-0.63.0
|
||||
app.kubernetes.io/name: onechart
|
||||
app.kubernetes.io/instance: capacitor
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
annotations:
|
||||
kubectl.kubernetes.io/default-container: capacitor
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: onechart
|
||||
app.kubernetes.io/instance: capacitor
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
checksum/config: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
||||
labels:
|
||||
app.kubernetes.io/name: onechart
|
||||
app.kubernetes.io/instance: capacitor
|
||||
rpi5.cluster.policy/egress-kubeapi: "true"
|
||||
rpi5.cluster.policy/egress-namespace: "true"
|
||||
rpi5.cluster.policy/egress-world: "true"
|
||||
rpi5.cluster.policy/ingress-namespace: "true"
|
||||
rpi5.cluster.policy/ingress-nginx: "true"
|
||||
rpi5.cluster.policy/ingress-nodes: "true"
|
||||
rpi5.cluster.policy/ingress-world: "true"
|
||||
spec:
|
||||
containers:
|
||||
- image: ghcr.io/gimlet-io/capacitor:v0.4.2
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: capacitor
|
||||
ports:
|
||||
- containerPort: 9000
|
||||
name: http
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /
|
||||
port: 9000
|
||||
scheme: HTTP
|
||||
initialDelaySeconds: 0
|
||||
periodSeconds: 10
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 3
|
||||
resources:
|
||||
requests:
|
||||
cpu: 200m
|
||||
memory: 200Mi
|
||||
securityContext: {}
|
||||
initContainers: null
|
||||
securityContext:
|
||||
fsGroup: 999
|
||||
serviceAccountName: capacitor
|
||||
58
kubernetes/apps/capacitor/app/rbac.yaml
Normal file
58
kubernetes/apps/capacitor/app/rbac.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: capacitor
|
||||
namespace: capacitor
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: capacitor
|
||||
rules:
|
||||
- apiGroups:
|
||||
- networking.k8s.io
|
||||
- apps
|
||||
- ""
|
||||
resources:
|
||||
- pods
|
||||
- pods/log
|
||||
- ingresses
|
||||
- deployments
|
||||
- services
|
||||
- secrets
|
||||
- events
|
||||
- configmaps
|
||||
verbs:
|
||||
- get
|
||||
- watch
|
||||
- list
|
||||
- apiGroups:
|
||||
- source.toolkit.fluxcd.io
|
||||
- kustomize.toolkit.fluxcd.io
|
||||
- helm.toolkit.fluxcd.io
|
||||
resources:
|
||||
- gitrepositories
|
||||
- ocirepositories
|
||||
- buckets
|
||||
- helmrepositories
|
||||
- helmcharts
|
||||
- kustomizations
|
||||
- helmreleases
|
||||
verbs:
|
||||
- get
|
||||
- watch
|
||||
- list
|
||||
- patch # to allow force reconciling by adding an annotation
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: capacitor
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: capacitor
|
||||
namespace: flux-system
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: capacitor
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
@@ -1,27 +1,29 @@
|
||||
apiVersion: source.toolkit.fluxcd.io/v1beta2
|
||||
kind: OCIRepository
|
||||
metadata:
|
||||
name: capacitor
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 12h
|
||||
url: oci://ghcr.io/gimlet-io/capacitor-manifests
|
||||
ref:
|
||||
semver: ">=0.1.0"
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: capacitor
|
||||
namespace: flux-system
|
||||
namespace: capacitor
|
||||
spec:
|
||||
targetNamespace: flux-system
|
||||
interval: 1h
|
||||
retryInterval: 2m
|
||||
timeout: 5m
|
||||
wait: true
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
path: ./kubernetes/apps/capacitor/app
|
||||
prune: true
|
||||
path: "./"
|
||||
sourceRef:
|
||||
kind: OCIRepository
|
||||
name: capacitor
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
patches:
|
||||
- target:
|
||||
kind: (Service|Deployment)
|
||||
name: capacitor
|
||||
namespace: flux-system
|
||||
patch: |
|
||||
- op: replace
|
||||
path: "/metadata/labels/app.kubernetes.io~1managed-by"
|
||||
value: Flux
|
||||
- op: remove
|
||||
path: "/metadata/labels/helm.sh~1chart"
|
||||
- op: add
|
||||
path: "/metadata/labels/patched"
|
||||
value: "true"
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: cert-manager-secrets
|
||||
namespace: flux-system
|
||||
spec:
|
||||
suspend: true
|
||||
interval: 1h
|
||||
path: ./cert-manager
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: home-cluster-ops-secrets
|
||||
dependsOn:
|
||||
- name: repositories
|
||||
namespace: flux-system
|
||||
- name: cert-manager
|
||||
namespace: flux-system
|
||||
decryption:
|
||||
provider: sops
|
||||
secretRef:
|
||||
name: sops-age
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: cert-manager
|
||||
namespace: flux-system
|
||||
spec:
|
||||
suspend: true
|
||||
interval: 1h
|
||||
targetNamespace: cert-manager
|
||||
path: ./kubernetes/templates/apps/cert-manager/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
postBuild:
|
||||
substituteFrom:
|
||||
- kind: Secret
|
||||
name: cert-manager-secrets
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: cert-manager-issuers
|
||||
namespace: flux-system
|
||||
spec:
|
||||
suspend: true
|
||||
interval: 1h
|
||||
targetNamespace: cert-manager
|
||||
path: ./kubernetes/templates/apps/cert-manager/issuers
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
dependsOn:
|
||||
- name: cert-manager-secrets
|
||||
postBuild:
|
||||
substituteFrom:
|
||||
- kind: Secret
|
||||
name: cert-manager-secrets
|
||||
@@ -1,35 +0,0 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cert-manager
|
||||
namespace: cert-manager
|
||||
spec:
|
||||
releaseName: cert-manager
|
||||
chart:
|
||||
spec:
|
||||
chart: cert-manager
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: truecharts
|
||||
namespace: flux-system
|
||||
interval: 5m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
service:
|
||||
main:
|
||||
enabled: true
|
||||
ports:
|
||||
main:
|
||||
enabled: true
|
||||
workload:
|
||||
main:
|
||||
enabled: true
|
||||
portal:
|
||||
open:
|
||||
enabled: true
|
||||
certmanager:
|
||||
prometheus:
|
||||
servicemonitor:
|
||||
enabled: false
|
||||
@@ -1,82 +0,0 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: clusterissuer
|
||||
namespace: clusterissuer
|
||||
spec:
|
||||
releaseName: clusterissuer
|
||||
chart:
|
||||
spec:
|
||||
chart: clusterissuer
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: truecharts
|
||||
namespace: flux-system
|
||||
interval: 5m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
dependsOn:
|
||||
- name: cert-manager
|
||||
namespace: flux-system
|
||||
- name: repositories
|
||||
namespace: flux-system
|
||||
values:
|
||||
image:
|
||||
repository: hello-world
|
||||
tag: latest@sha256:266b191e926f65542fa8daaec01a192c4d292bff79426f47300a046e1bc576fd
|
||||
pullPolicy: IfNotPresent
|
||||
manifestManager:
|
||||
enabled: true
|
||||
workload:
|
||||
main:
|
||||
enabled: true
|
||||
podSpec:
|
||||
containers:
|
||||
main:
|
||||
enabled: true
|
||||
probes:
|
||||
liveness:
|
||||
enabled: false
|
||||
readiness:
|
||||
enabled: false
|
||||
startup:
|
||||
enabled: false
|
||||
service:
|
||||
main:
|
||||
enabled: true
|
||||
ports:
|
||||
main:
|
||||
enabled: true
|
||||
port: 9999
|
||||
portal:
|
||||
open:
|
||||
enabled: true
|
||||
operator:
|
||||
cert-manager:
|
||||
namespace: cert-manager
|
||||
|
||||
clusterIssuer:
|
||||
ACME:
|
||||
- name: letsencrypt
|
||||
# Used for both logging in to the DNS provider AND ACME registration
|
||||
email: ${email}
|
||||
server: 'https://acme-v02.api.letsencrypt.org/directory'
|
||||
# Used primarily for the SCALE GUI
|
||||
customServer: 'https://acme-v02.api.letsencrypt.org/directory'
|
||||
# Options: HTTP01, cloudflare, route53, akamai, digitalocean, rfc2136, acmedns
|
||||
type: "cloudflare"
|
||||
# for cloudflare
|
||||
cfapitoken: ${cloudflare_api_token}
|
||||
|
||||
clusterCertificates:
|
||||
# Namespaces in which the certificates must be available
|
||||
# Accepts comma-separated regex expressions
|
||||
# replicationNamespaces: 'ix-.*'
|
||||
certificates:
|
||||
- name: cluster-certificate
|
||||
enabled: true
|
||||
certificateIssuer: ACME
|
||||
hosts:
|
||||
- ${cluster_cert_domain}
|
||||
- ${cluster_cert_domain_wildcard}
|
||||
@@ -1,21 +0,0 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: clusterissuer-secrets
|
||||
namespace: flux-system
|
||||
spec:
|
||||
suspend: true
|
||||
interval: 1d
|
||||
path: ./clusterissuer
|
||||
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
|
||||
21
kubernetes/apps/code-server/app/ingress.yaml
Normal file
21
kubernetes/apps/code-server/app/ingress.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: code-server-ingress
|
||||
namespace: code-server
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "code-server.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: code-server
|
||||
port:
|
||||
number: 8443
|
||||
46
kubernetes/apps/code-server/app/pvc.yaml
Normal file
46
kubernetes/apps/code-server/app/pvc.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: code-server-pv
|
||||
namespace: code-server
|
||||
labels:
|
||||
type: local
|
||||
spec:
|
||||
storageClassName: local-path
|
||||
volumeMode: Filesystem
|
||||
capacity:
|
||||
storage: 8Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
local:
|
||||
path: "/mnt/nfs/AppData/code-server"
|
||||
claimRef:
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
name: code-server-pvc
|
||||
namespace: code-server
|
||||
nodeAffinity:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- rpi5-cluster-node-3
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: code-server-pvc
|
||||
namespace: code-server
|
||||
labels:
|
||||
name: code-server-pvc
|
||||
spec:
|
||||
storageClassName: local-path
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 8Gi
|
||||
31
kubernetes/apps/code-server/app/release.yaml
Normal file
31
kubernetes/apps/code-server/app/release.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: code-server
|
||||
namespace: code-server
|
||||
spec:
|
||||
releaseName: code-server
|
||||
targetNamespace: code-server
|
||||
chart:
|
||||
spec:
|
||||
chart: code-server
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: nicholaswilde
|
||||
namespace: flux-system
|
||||
interval: 1h
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
secret:
|
||||
PASSWORD: ${password}
|
||||
SUDO_PASSWORD: ${sudo_password}
|
||||
|
||||
env:
|
||||
TZ: "Australia/Sydney"
|
||||
|
||||
persistence:
|
||||
config:
|
||||
enabled: true
|
||||
existingClaim: code-server-pvc
|
||||
47
kubernetes/apps/code-server/code-server.yaml
Normal file
47
kubernetes/apps/code-server/code-server.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: code-server-secrets
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
targetNamespace: code-server
|
||||
path: ./code-server
|
||||
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: code-server
|
||||
namespace: code-server
|
||||
spec:
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
targetNamespace: code-server
|
||||
path: ./kubernetes/apps/code-server/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
dependsOn:
|
||||
- name: code-server-secrets
|
||||
namespace: flux-system
|
||||
postBuild:
|
||||
substituteFrom:
|
||||
- kind: Secret
|
||||
name: code-server-secrets
|
||||
31
kubernetes/apps/dokuwiki/app/ingress.yaml
Normal file
31
kubernetes/apps/dokuwiki/app/ingress.yaml
Normal 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
|
||||
34
kubernetes/apps/dokuwiki/app/release.yaml
Normal file
34
kubernetes/apps/dokuwiki/app/release.yaml
Normal 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
|
||||
46
kubernetes/apps/dokuwiki/app/volume.yaml
Normal file
46
kubernetes/apps/dokuwiki/app/volume.yaml
Normal 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
|
||||
46
kubernetes/apps/dokuwiki/dokuwiki.yaml
Normal file
46
kubernetes/apps/dokuwiki/dokuwiki.yaml
Normal 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
|
||||
32
kubernetes/apps/gitea/app/ingress.yaml
Normal file
32
kubernetes/apps/gitea/app/ingress.yaml
Normal 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
|
||||
56
kubernetes/apps/gitea/app/release.yaml
Normal file
56
kubernetes/apps/gitea/app/release.yaml
Normal 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}
|
||||
46
kubernetes/apps/gitea/app/volume.yaml
Normal file
46
kubernetes/apps/gitea/app/volume.yaml
Normal 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
|
||||
@@ -1,11 +1,14 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: clusterissuer-secrets
|
||||
name: gitea-secrets
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1h
|
||||
path: ./clusterissuer
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
targetNamespace: gitea
|
||||
path: ./gitea
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
@@ -14,8 +17,6 @@ spec:
|
||||
dependsOn:
|
||||
- name: repositories
|
||||
namespace: flux-system
|
||||
- name: cert-manager
|
||||
namespace: flux-system
|
||||
decryption:
|
||||
provider: sops
|
||||
secretRef:
|
||||
@@ -24,21 +25,23 @@ spec:
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: clusterissuer
|
||||
namespace: flux-system
|
||||
name: gitea
|
||||
namespace: gitea
|
||||
spec:
|
||||
suspend: false
|
||||
interval: 1h
|
||||
targetNamespace: cert-manager
|
||||
path: ./kubernetes/apps/clusterissuer
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
path: ./kubernetes/apps/gitea/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
dependsOn:
|
||||
- name: clusterissuer-secrets
|
||||
- name: gitea-secrets
|
||||
namespace: flux-system
|
||||
postBuild:
|
||||
substituteFrom:
|
||||
- kind: Secret
|
||||
name: clusterissuer-secrets
|
||||
name: gitea-secrets
|
||||
|
||||
43
kubernetes/apps/homer/app/development.yaml
Normal file
43
kubernetes/apps/homer/app/development.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: homer
|
||||
namespace: homer
|
||||
labels:
|
||||
app.kubernetes.io/name: homer
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: homer
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: homer
|
||||
rpi5.cluster.policy/egress-world: "true"
|
||||
rpi5.cluster.policy/ingress-world: "true"
|
||||
spec:
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
containers:
|
||||
- name: homer
|
||||
image: b4bz/homer:v24.05.1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
env:
|
||||
- name: PORT
|
||||
value: "8088"
|
||||
- name: INIT_ASSETS
|
||||
value: "0"
|
||||
ports:
|
||||
- protocol: TCP
|
||||
containerPort: 8088
|
||||
name: http
|
||||
volumeMounts:
|
||||
- name: assets
|
||||
mountPath: /www/assets
|
||||
volumes:
|
||||
- name: assets
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/homer/www/assets
|
||||
type: Directory
|
||||
21
kubernetes/apps/homer/app/ingress.yaml
Normal file
21
kubernetes/apps/homer/app/ingress.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: homer-ingress
|
||||
namespace: homer
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "home.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: homer
|
||||
port:
|
||||
number: 8088
|
||||
17
kubernetes/apps/homer/app/service.yaml
Normal file
17
kubernetes/apps/homer/app/service.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: homer
|
||||
namespace: homer
|
||||
labels:
|
||||
app.kubernetes.io/name: homer
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: homer
|
||||
type: ClusterIP
|
||||
internalTrafficPolicy: Cluster
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8088
|
||||
targetPort: 8088
|
||||
name: http
|
||||
15
kubernetes/apps/homer/homer.yaml
Normal file
15
kubernetes/apps/homer/homer.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: homer
|
||||
namespace: homer
|
||||
spec:
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
path: ./kubernetes/apps/homer/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
31
kubernetes/apps/jellyfin/app/ingress.yaml
Normal file
31
kubernetes/apps/jellyfin/app/ingress.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: jellyfin-ingress
|
||||
namespace: jellyfin
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
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:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: jellyfin
|
||||
port:
|
||||
number: 8096
|
||||
51
kubernetes/apps/jellyfin/app/pvc.yaml
Normal file
51
kubernetes/apps/jellyfin/app/pvc.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: jellyfin-config
|
||||
namespace: jellyfin
|
||||
labels:
|
||||
type: local
|
||||
spec:
|
||||
storageClassName: local-path
|
||||
volumeMode: Filesystem
|
||||
capacity:
|
||||
storage: 250Mi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
local:
|
||||
path: "/mnt/nfs/AppData/jellyfin/config"
|
||||
nodeAffinity:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- rpi5-cluster-node-3
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: jellyfin-data
|
||||
namespace: jellyfin
|
||||
labels:
|
||||
type: local
|
||||
spec:
|
||||
storageClassName: local-path
|
||||
volumeMode: Filesystem
|
||||
capacity:
|
||||
storage: 2Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
local:
|
||||
path: "/mnt/nfs/AppData/jellyfin/data"
|
||||
nodeAffinity:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- rpi5-cluster-node-3
|
||||
169
kubernetes/apps/jellyfin/app/release.yaml
Normal file
169
kubernetes/apps/jellyfin/app/release.yaml
Normal file
@@ -0,0 +1,169 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: jellyfin
|
||||
namespace: jellyfin
|
||||
spec:
|
||||
releaseName: jellyfin
|
||||
targetNamespace: jellyfin
|
||||
chart:
|
||||
spec:
|
||||
chart: jellyfin
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: beluga-cloud
|
||||
namespace: flux-system
|
||||
interval: 1h
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
persistence:
|
||||
config:
|
||||
enabled: true
|
||||
volumeClaimSpec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
volumeName: jellyfin-config
|
||||
storageClassName: local-path
|
||||
data:
|
||||
enabled: true
|
||||
volumeClaimSpec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
volumeName: jellyfin-data
|
||||
storageClassName: local-path
|
||||
jellyfin:
|
||||
mediaVolumes:
|
||||
- name: movies
|
||||
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-movies
|
||||
namespace: jellyfin
|
||||
hostPath:
|
||||
path: "/mnt/nfs/AppData/jellyfin/media/movies"
|
||||
type: "Directory"
|
||||
- name: series
|
||||
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-series
|
||||
namespace: jellyfin
|
||||
hostPath:
|
||||
path: "/mnt/nfs/AppData/jellyfin/media/series"
|
||||
type: "Directory"
|
||||
- name: music-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-music-videos
|
||||
namespace: jellyfin
|
||||
hostPath:
|
||||
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
|
||||
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-gv
|
||||
namespace: jellyfin
|
||||
hostPath:
|
||||
path: "/mnt/nfs/AppData/jellyfin/media/gv"
|
||||
type: "Directory"
|
||||
persistentTranscodes: true
|
||||
|
||||
16
kubernetes/apps/jellyfin/jellyfin.yaml
Normal file
16
kubernetes/apps/jellyfin/jellyfin.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: jellyfin
|
||||
namespace: jellyfin
|
||||
spec:
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
path: ./kubernetes/apps/jellyfin/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
|
||||
58
kubernetes/apps/kavita/app/development.yaml
Normal file
58
kubernetes/apps/kavita/app/development.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: kavita
|
||||
namespace: kavita
|
||||
labels:
|
||||
app.kubernetes.io/name: kavita
|
||||
app.kubernetes.io/instance: kavita
|
||||
annotations:
|
||||
kubectl.kubernetes.io/default-container: kavita
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: kavita
|
||||
app.kubernetes.io/instance: kavita
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: kavita
|
||||
app.kubernetes.io/instance: kavita
|
||||
spec:
|
||||
containers:
|
||||
- image: jvmilazz0/kavita:0.8.1
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: kavita
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
name: http
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: TZ
|
||||
value: Australia/Sydney
|
||||
volumeMounts:
|
||||
- name: kavita-config
|
||||
mountPath: /kavita/config
|
||||
- name: kavita-manga
|
||||
mountPath: /manga
|
||||
- name: kavita-book
|
||||
mountPath: /book
|
||||
- name: kavita-doc
|
||||
mountPath: /doc
|
||||
volumes:
|
||||
- name: kavita-config
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/kavita/config
|
||||
type: Directory
|
||||
- name: kavita-manga
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/kavita/manga
|
||||
type: Directory
|
||||
- name: kavita-book
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/kavita/book
|
||||
type: Directory
|
||||
- name: kavita-doc
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/kavita/doc
|
||||
type: Directory
|
||||
21
kubernetes/apps/kavita/app/ingress.yaml
Normal file
21
kubernetes/apps/kavita/app/ingress.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: kavita-ingress
|
||||
namespace: kavita
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "kavita.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: kavita
|
||||
port:
|
||||
number: 5000
|
||||
18
kubernetes/apps/kavita/app/service.yaml
Normal file
18
kubernetes/apps/kavita/app/service.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: kavita
|
||||
namespace: kavita
|
||||
labels:
|
||||
app.kubernetes.io/name: kavita
|
||||
app.kubernetes.io/instance: kavita
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 5000
|
||||
targetPort: 5000
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app.kubernetes.io/name: kavita
|
||||
app.kubernetes.io/instance: kavita
|
||||
16
kubernetes/apps/kavita/kavita.yaml
Normal file
16
kubernetes/apps/kavita/kavita.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: kavita
|
||||
namespace: kavita
|
||||
spec:
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
path: ./kubernetes/apps/kavita/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
|
||||
@@ -3,6 +3,16 @@ kind: Kustomization
|
||||
resources:
|
||||
- ./adguard-home/adguard-home.yaml
|
||||
- ./capacitor/capacitor.yaml
|
||||
- ./cert-manager/cert-manager.yaml
|
||||
- ./clusterissuer/clusterissuer.yaml
|
||||
- ./podinfo/podinfo.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
|
||||
- ./qbittorrent/qbittorrent.yaml
|
||||
- ./snippet-box/snippet-box.yaml
|
||||
- ./sonarqube/sonarqube.yaml
|
||||
- ./uptime-kuma/uptime-kuma.yaml
|
||||
- ./weave-gitops/weave-gitops.yaml
|
||||
38
kubernetes/apps/nexus/app/deployment.yaml
Normal file
38
kubernetes/apps/nexus/app/deployment.yaml
Normal 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
|
||||
17
kubernetes/apps/nexus/app/service.yaml
Normal file
17
kubernetes/apps/nexus/app/service.yaml
Normal 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
|
||||
15
kubernetes/apps/nexus/nexus.yaml
Normal file
15
kubernetes/apps/nexus/nexus.yaml
Normal 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
|
||||
@@ -2,10 +2,12 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: podinfo
|
||||
namespace: flux-system
|
||||
namespace: podinfo
|
||||
spec:
|
||||
interval: 1h
|
||||
path: ./kubernetes/apps/podinfo
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
path: ./kubernetes/apps/podinfo/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
|
||||
21
kubernetes/apps/qbittorrent/app/ingress.yaml
Normal file
21
kubernetes/apps/qbittorrent/app/ingress.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: qbittorrent-ingress
|
||||
namespace: qbittorrent
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "qbittorrent.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: qbittorrent
|
||||
port:
|
||||
number: 8888
|
||||
30
kubernetes/apps/qbittorrent/app/release.yaml
Normal file
30
kubernetes/apps/qbittorrent/app/release.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: qbittorrent
|
||||
namespace: qbittorrent
|
||||
spec:
|
||||
targetNamespace: qbittorrent
|
||||
chart:
|
||||
spec:
|
||||
chart: qbittorrent
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: adminafk
|
||||
namespace: flux-system
|
||||
interval: 1h
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
service:
|
||||
web:
|
||||
port: 8888
|
||||
torrent:
|
||||
port: 8388
|
||||
config:
|
||||
persistence:
|
||||
name: "qbittorrent-config-pvc"
|
||||
volumeMounts:
|
||||
- name: qbittorrent-download-pvc
|
||||
mountPath: /download
|
||||
93
kubernetes/apps/qbittorrent/app/volume.yaml
Normal file
93
kubernetes/apps/qbittorrent/app/volume.yaml
Normal file
@@ -0,0 +1,93 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: qbittorrent-config
|
||||
namespace: qbittorrent
|
||||
labels:
|
||||
type: local
|
||||
spec:
|
||||
storageClassName: local-path
|
||||
volumeMode: Filesystem
|
||||
capacity:
|
||||
storage: 5Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
local:
|
||||
path: "/mnt/nfs/AppData/qbittorrent/config"
|
||||
claimRef:
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
name: qbittorrent-config-pvc
|
||||
namespace: qbittorrent
|
||||
nodeAffinity:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- rpi5-cluster-node-3
|
||||
---
|
||||
#apiVersion: v1
|
||||
#kind: PersistentVolumeClaim
|
||||
#metadata:
|
||||
# name: qbittorrent-config-pvc
|
||||
# namespace: qbittorrent
|
||||
# labels:
|
||||
# name: qbittorrent-config-pvc
|
||||
#spec:
|
||||
# storageClassName: local-path
|
||||
# volumeMode: Filesystem
|
||||
# accessModes:
|
||||
# - ReadWriteOnce
|
||||
# resources:
|
||||
# requests:
|
||||
# storage: 5Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: qbittorrent-download
|
||||
namespace: qbittorrent
|
||||
labels:
|
||||
type: local
|
||||
spec:
|
||||
storageClassName: local-path
|
||||
volumeMode: Filesystem
|
||||
capacity:
|
||||
storage: 5Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
local:
|
||||
path: "/mnt/nfs/AppData/qbittorrent/download"
|
||||
claimRef:
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
name: qbittorrent-download-pvc
|
||||
namespace: qbittorrent
|
||||
nodeAffinity:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- rpi5-cluster-node-3
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: qbittorrent-download-pvc
|
||||
namespace: qbittorrent
|
||||
labels:
|
||||
name: qbittorrent-download-pvc
|
||||
spec:
|
||||
storageClassName: local-path
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 64Gi
|
||||
16
kubernetes/apps/qbittorrent/qbittorrent.yaml
Normal file
16
kubernetes/apps/qbittorrent/qbittorrent.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: qbittorrent
|
||||
namespace: qbittorrent
|
||||
spec:
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
path: ./kubernetes/apps/qbittorrent/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
spec:
|
||||
ports:
|
||||
- name: torrent-tcp
|
||||
port: 8388
|
||||
targetPort: 8388
|
||||
protocol: TCP
|
||||
- name: torrent-udp
|
||||
port: 8388
|
||||
targetPort: 8388
|
||||
protocol: UDP
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
kubectl patch service ingress-nginx-controller -n ingress-nginx --patch "$(cat kubernetes/apps/qbittorrent/scripts/ingress-nginx-svc-controller-patch.yaml)"
|
||||
34
kubernetes/apps/snippet-box/app/development.yaml
Normal file
34
kubernetes/apps/snippet-box/app/development.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: snippet-box
|
||||
namespace: snippet-box
|
||||
labels:
|
||||
app.kubernetes.io/name: snippet-box
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: snippet-box
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: snippet-box
|
||||
spec:
|
||||
containers:
|
||||
- name: snippet-box
|
||||
image: pawelmalak/snippet-box:arm
|
||||
ports:
|
||||
- protocol: TCP
|
||||
containerPort: 5000
|
||||
name: snippet-box
|
||||
env:
|
||||
- name: TZ
|
||||
value: Australia/Sydney
|
||||
volumeMounts:
|
||||
- name: snippet-box-data
|
||||
mountPath: /app/data
|
||||
volumes:
|
||||
- name: snippet-box-data
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/snippet-box
|
||||
type: Directory
|
||||
21
kubernetes/apps/snippet-box/app/ingress.yaml
Normal file
21
kubernetes/apps/snippet-box/app/ingress.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: snippet-box-ingress
|
||||
namespace: snippet-box
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "snippet-box.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: snippet-box
|
||||
port:
|
||||
number: 5000
|
||||
17
kubernetes/apps/snippet-box/app/service.yaml
Normal file
17
kubernetes/apps/snippet-box/app/service.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: snippet-box
|
||||
namespace: snippet-box
|
||||
labels:
|
||||
app.kubernetes.io/name: snippet-box
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: snippet-box
|
||||
type: ClusterIP
|
||||
internalTrafficPolicy: Cluster
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 5000
|
||||
targetPort: 5000
|
||||
name: snippet-box
|
||||
15
kubernetes/apps/snippet-box/snippet-box.yaml
Normal file
15
kubernetes/apps/snippet-box/snippet-box.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: snippet-box
|
||||
namespace: snippet-box
|
||||
spec:
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
path: ./kubernetes/apps/snippet-box/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
47
kubernetes/apps/sonarqube/app/release.yaml
Normal file
47
kubernetes/apps/sonarqube/app/release.yaml
Normal 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}
|
||||
46
kubernetes/apps/sonarqube/app/volume.yaml
Normal file
46
kubernetes/apps/sonarqube/app/volume.yaml
Normal 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
|
||||
46
kubernetes/apps/sonarqube/sonarqube.yaml
Normal file
46
kubernetes/apps/sonarqube/sonarqube.yaml
Normal 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
|
||||
21
kubernetes/apps/uptime-kuma/app/ingress.yaml
Normal file
21
kubernetes/apps/uptime-kuma/app/ingress.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: uptime-kuma-ingress
|
||||
namespace: uptime-kuma
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "uptime-kuma.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: uptime-kuma
|
||||
port:
|
||||
number: 3001
|
||||
46
kubernetes/apps/uptime-kuma/app/pvc.yaml
Normal file
46
kubernetes/apps/uptime-kuma/app/pvc.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: uptime-kuma-pv
|
||||
namespace: uptime-kuma
|
||||
labels:
|
||||
type: local
|
||||
spec:
|
||||
storageClassName: local-path
|
||||
volumeMode: Filesystem
|
||||
capacity:
|
||||
storage: 4Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
local:
|
||||
path: "/mnt/nfs/AppData/uptime-kuma"
|
||||
claimRef:
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
name: uptime-kuma-pvc
|
||||
namespace: uptime-kuma
|
||||
nodeAffinity:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- rpi5-cluster-node-1
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: uptime-kuma-pvc
|
||||
namespace: uptime-kuma
|
||||
labels:
|
||||
name: uptime-kuma-pvc
|
||||
spec:
|
||||
storageClassName: local-path
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 4Gi
|
||||
26
kubernetes/apps/uptime-kuma/app/release.yaml
Normal file
26
kubernetes/apps/uptime-kuma/app/release.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: uptime-kuma
|
||||
namespace: uptime-kuma
|
||||
spec:
|
||||
releaseName: uptime-kuma
|
||||
targetNamespace: uptime-kuma
|
||||
chart:
|
||||
spec:
|
||||
chart: uptime-kuma
|
||||
version: 2.18.1
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: irsigler
|
||||
namespace: flux-system
|
||||
interval: 1h
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
volume:
|
||||
enabled: true
|
||||
accessMode: ReadWriteOnce
|
||||
size: 4Gi
|
||||
existingClaim: "uptime-kuma-pvc"
|
||||
15
kubernetes/apps/uptime-kuma/uptime-kuma.yaml
Normal file
15
kubernetes/apps/uptime-kuma/uptime-kuma.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: uptime-kuma
|
||||
namespace: uptime-kuma
|
||||
spec:
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
path: ./kubernetes/apps/uptime-kuma/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
31
kubernetes/apps/weave-gitops/app/ingress.yaml
Normal file
31
kubernetes/apps/weave-gitops/app/ingress.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: weave-gitops-ingress
|
||||
namespace: flux-system
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "weave-gitops.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: ww-gitops-weave-gitops
|
||||
port:
|
||||
number: 9001
|
||||
- host: "weave-gitops.cluster.local"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: ww-gitops-weave-gitops
|
||||
port:
|
||||
number: 9001
|
||||
41
kubernetes/apps/weave-gitops/app/release.yaml
Normal file
41
kubernetes/apps/weave-gitops/app/release.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1beta2
|
||||
kind: HelmRepository
|
||||
metadata:
|
||||
annotations:
|
||||
metadata.weave.works/description: This is the source location for the Weave GitOps
|
||||
Dashboard's helm chart.
|
||||
labels:
|
||||
app.kubernetes.io/component: ui
|
||||
app.kubernetes.io/created-by: weave-gitops-cli
|
||||
app.kubernetes.io/name: weave-gitops-dashboard
|
||||
app.kubernetes.io/part-of: weave-gitops
|
||||
name: ww-gitops
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1h0m0s
|
||||
type: oci
|
||||
url: oci://ghcr.io/weaveworks/charts
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
annotations:
|
||||
metadata.weave.works/description: This is the Weave GitOps Dashboard. It provides
|
||||
a simple way to get insights into your GitOps workloads.
|
||||
name: ww-gitops
|
||||
namespace: flux-system
|
||||
spec:
|
||||
chart:
|
||||
spec:
|
||||
chart: weave-gitops
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: ww-gitops
|
||||
interval: 1h0m0s
|
||||
values:
|
||||
adminUser:
|
||||
create: true
|
||||
passwordHash: $2a$10$gnPEHsFzIJXg/eron5LiQ.teGZkKETxuA2WAyKSbxHvxpkzWJvbDe
|
||||
username: admin
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: cert-manager
|
||||
name: weave-gitops
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1h
|
||||
targetNamespace: flux-system
|
||||
path: ./kubernetes/apps/cert-manager
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
path: ./kubernetes/apps/weave-gitops/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
125
kubernetes/infrastructure/cert-manager/cert-manager.yaml
Normal file
125
kubernetes/infrastructure/cert-manager/cert-manager.yaml
Normal file
@@ -0,0 +1,125 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: cert-manager
|
||||
namespace: cert-manager
|
||||
spec:
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
targetNamespace: cert-manager
|
||||
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: flux-system
|
||||
spec:
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
targetNamespace: cert-manager
|
||||
path: ./clusterissuer
|
||||
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: clusterissuer
|
||||
namespace: cert-manager
|
||||
spec:
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
targetNamespace: cert-manager
|
||||
path: ./kubernetes/infrastructure/cert-manager/clusterissuer
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
dependsOn:
|
||||
- name: clusterissuer-secrets
|
||||
namespace: flux-system
|
||||
- name: cert-manager
|
||||
namespace: cert-manager
|
||||
postBuild:
|
||||
substituteFrom:
|
||||
- kind: Secret
|
||||
name: clusterissuer-secrets
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: certificate-secrets
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
targetNamespace: cert-manager
|
||||
path: ./certificates
|
||||
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: certificates
|
||||
namespace: cert-manager
|
||||
spec:
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
targetNamespace: cert-manager
|
||||
path: ./kubernetes/infrastructure/cert-manager/certificates
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
dependsOn:
|
||||
- name: certificate-secrets
|
||||
namespace: flux-system
|
||||
- name: cert-manager
|
||||
namespace: cert-manager
|
||||
- name: clusterissuer
|
||||
namespace: cert-manager
|
||||
postBuild:
|
||||
substituteFrom:
|
||||
- kind: Secret
|
||||
name: certificate-secrets
|
||||
@@ -0,0 +1,64 @@
|
||||
#apiVersion: cert-manager.io/v1
|
||||
#kind: Certificate
|
||||
#metadata:
|
||||
# name: adguard-home-cert
|
||||
# namespace: cert-manager
|
||||
#spec:
|
||||
# # Secret names are always required.
|
||||
# secretName: adguard-home.cluster.edward.sydney-tls
|
||||
#
|
||||
# privateKey:
|
||||
# algorithm: RSA
|
||||
# encoding: PKCS1
|
||||
# size: 2048
|
||||
#
|
||||
# # keystores allows adding additional output formats. This is an example for reference only.
|
||||
# keystores:
|
||||
# pkcs12:
|
||||
# create: true
|
||||
# passwordSecretRef:
|
||||
# name: adguard-home-tls-keystore
|
||||
# key: ${adguard_home_certificate_tls_keystore_password}
|
||||
# profile: Modern2023
|
||||
#
|
||||
# duration: 2160h # 90d
|
||||
# renewBefore: 360h # 15d
|
||||
#
|
||||
# isCA: false
|
||||
# usages:
|
||||
# - server auth
|
||||
# - client auth
|
||||
#
|
||||
# subject:
|
||||
# organizations:
|
||||
# - edward.sydney
|
||||
#
|
||||
# # The literalSubject field is exclusive with subject and commonName. It allows
|
||||
# # specifying the subject directly as a string. This is useful for when the order
|
||||
# # of the subject fields is important or when the subject contains special types
|
||||
# # which can be specified by their OID.
|
||||
# #
|
||||
# # literalSubject: "O=jetstack, CN=example.com, 2.5.4.42=John, 2.5.4.4=Doe"
|
||||
#
|
||||
# # At least one of commonName (possibly through literalSubject), dnsNames, uris, emailAddresses, ipAddresses or otherNames is required.
|
||||
# dnsNames:
|
||||
# - "${adguard_home_certificate_dns_name}"
|
||||
# - "*.${adguard_home_certificate_dns_name}"
|
||||
# emailAddresses:
|
||||
# - ${adguard_home_certificate_email}
|
||||
#
|
||||
# # Issuer references are always required.
|
||||
# issuerRef:
|
||||
# name: clusterissuer
|
||||
# # We can reference ClusterIssuers by changing the kind here.
|
||||
# # The default value is Issuer (i.e. a locally namespaced Issuer)
|
||||
# kind: ClusterIssuer
|
||||
# # This is optional since cert-manager will default to this value however
|
||||
# # if you are using an external issuer, change this to that issuer group.
|
||||
# group: cert-manager.io
|
||||
|
||||
#The certificate request has failed to complete and will be retried:
|
||||
# Failed to wait for order resource "adguard-home-cert-1-1931876784" to become
|
||||
# ready: order is in "errored" state: Failed to create Order: 429 urn:ietf:params:acme:error:rateLimited:
|
||||
# Error creating new order :: too many certificates already issued for "edward.sydney".
|
||||
# Retry after 2024-06-25T21:00:00Z: see https://letsencrypt.org/docs/rate-limits/
|
||||
@@ -0,0 +1,22 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: ClusterIssuer
|
||||
metadata:
|
||||
name: clusterissuer
|
||||
namespace: cert-manager
|
||||
spec:
|
||||
acme:
|
||||
email: ${email}
|
||||
server: https://acme-v02.api.letsencrypt.org/directory
|
||||
privateKeySecretRef:
|
||||
name: cluster-issuer-account-key
|
||||
solvers:
|
||||
- dns01:
|
||||
cloudflare:
|
||||
email: ${email}
|
||||
apiTokenSecretRef:
|
||||
name: clusterissuer-secrets
|
||||
key: cloudflare_api_token
|
||||
selector:
|
||||
dnsNames:
|
||||
- "${cluster_cert_domain}"
|
||||
- "*.${cluster_cert_domain}"
|
||||
@@ -1,16 +1,18 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: cilium
|
||||
namespace: kube-system
|
||||
name: cilium
|
||||
namespace: kube-system
|
||||
spec:
|
||||
interval: 1h
|
||||
path: ./kubernetes/infrastructure/cilium/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
path: ./kubernetes/infrastructure/cilium/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
@@ -18,7 +20,10 @@ metadata:
|
||||
name: cilium-networkpolicies
|
||||
namespace: kube-system
|
||||
spec:
|
||||
interval: 1h
|
||||
suspend: false
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
path: ./kubernetes/infrastructure/cilium/networkpolicies
|
||||
prune: true
|
||||
sourceRef:
|
||||
@@ -26,7 +31,5 @@ spec:
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
dependsOn:
|
||||
- name: cilium
|
||||
namespace: kube-system
|
||||
- name: ingress-nginx
|
||||
namespace: flux-system
|
||||
namespace: ingress-nginx
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: egress-world-with-lan
|
||||
namespace: kube-system
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
rpi5.cluster.policy/egress-world-with-lan: "true"
|
||||
egress:
|
||||
- toCIDRSet:
|
||||
- cidr: 0.0.0.0/0
|
||||
@@ -10,7 +10,3 @@ spec:
|
||||
egress:
|
||||
- toCIDRSet:
|
||||
- cidr: 0.0.0.0/0
|
||||
except:
|
||||
- 192.168.1.0/24
|
||||
- 192.168.2.0/24
|
||||
- 100.64.0.0/10
|
||||
|
||||
@@ -2,7 +2,7 @@ apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: ingress-ingress
|
||||
namespace: ingress-nginx
|
||||
namespace: kube-system
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
@@ -18,7 +18,7 @@ apiVersion: cilium.io/v2
|
||||
kind: CiliumNetworkPolicy
|
||||
metadata:
|
||||
name: ingress-nginx
|
||||
namespace: ingress-nginx
|
||||
namespace: kube-system
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
@@ -36,7 +36,7 @@ apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: egress-ingress
|
||||
namespace: ingress-nginx
|
||||
namespace: kube-system
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
@@ -52,7 +52,7 @@ apiVersion: cilium.io/v2
|
||||
kind: CiliumNetworkPolicy
|
||||
metadata:
|
||||
name: egress-nginx
|
||||
namespace: ingress-nginx
|
||||
namespace: kube-system
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
|
||||
16
kubernetes/infrastructure/consul/app/service.yaml
Normal file
16
kubernetes/infrastructure/consul/app/service.yaml
Normal 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
|
||||
46
kubernetes/infrastructure/consul/app/statefulset.yaml
Normal file
46
kubernetes/infrastructure/consul/app/statefulset.yaml
Normal 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
|
||||
18
kubernetes/infrastructure/consul/consul.yaml
Normal file
18
kubernetes/infrastructure/consul/consul.yaml
Normal 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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -82,6 +82,20 @@ spec:
|
||||
labels:
|
||||
rpi5.cluster.policy/egress-kubeapi: "true"
|
||||
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
volumeMounts:
|
||||
- mountPath: /etc/nginx/template
|
||||
name: nginx-template-volume
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: nginx-template-volume
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/ingress-nginx/etc/nginx/template
|
||||
type: Directory
|
||||
|
||||
defaultBackend:
|
||||
enabled: true
|
||||
image:
|
||||
@@ -4,14 +4,13 @@ metadata:
|
||||
name: tcp-services
|
||||
namespace: ingress-nginx
|
||||
data:
|
||||
"53": "adguard-home/adguard-home:53"
|
||||
"853": "adguard-home/adguard-home:853"
|
||||
"5443": "adguard-home/adguard-home:5443"
|
||||
"6060": "adguard-home/adguard-home:6060"
|
||||
"9099": "flux-system/capacitor:9000"
|
||||
"10080": "adguard-home/adguard-home:80"
|
||||
"10443": "adguard-home/adguard-home:443"
|
||||
"13000": "adguard-home/adguard-home::3000"
|
||||
"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"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
@@ -19,10 +18,9 @@ metadata:
|
||||
name: udp-services
|
||||
namespace: ingress-nginx
|
||||
data:
|
||||
"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"
|
||||
"10443": "adguard-home/adguard-home:443"
|
||||
"13000": "adguard-home/adguard-home:3000"
|
||||
"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"
|
||||
|
||||
@@ -2,9 +2,8 @@ apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: ingress-nginx-values
|
||||
namespace: flux-system
|
||||
namespace: ingress-nginx
|
||||
data:
|
||||
use_geoip2: "false"
|
||||
metrics_enabled: "true"
|
||||
disable_ipv6: "true"
|
||||
disable_ipv6_dns: "true"
|
||||
@@ -2,11 +2,11 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: ingress-nginx-config
|
||||
namespace: flux-system
|
||||
namespace: ingress-nginx
|
||||
spec:
|
||||
interval: 1h
|
||||
timeout: 5m
|
||||
retryInterval: 5m
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
path: ./kubernetes/infrastructure/ingress-nginx/config
|
||||
prune: true
|
||||
sourceRef:
|
||||
|
||||
@@ -2,13 +2,13 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: ingress-nginx
|
||||
namespace: flux-system
|
||||
namespace: ingress-nginx
|
||||
spec:
|
||||
interval: 1h
|
||||
timeout: 5m
|
||||
retryInterval: 5m
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
targetNamespace: ingress-nginx
|
||||
path: ./kubernetes/templates/apps/ingress-nginx
|
||||
path: ./kubernetes/infrastructure/ingress-nginx/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
@@ -29,7 +29,63 @@ spec:
|
||||
- op: add
|
||||
path: /spec/ports/-
|
||||
value:
|
||||
name: proxied-tcp-9099
|
||||
port: 9099
|
||||
targetPort: 9099
|
||||
name: dns-tcp
|
||||
port: 53
|
||||
targetPort: 53
|
||||
protocol: TCP
|
||||
- op: add
|
||||
path: /spec/ports/-
|
||||
value:
|
||||
name: dns-udp
|
||||
port: 53
|
||||
targetPort: 53
|
||||
protocol: UDP
|
||||
- op: add
|
||||
path: /spec/ports/-
|
||||
value:
|
||||
name: dhcps-udp
|
||||
port: 67
|
||||
targetPort: 67
|
||||
protocol: UDP
|
||||
- op: add
|
||||
path: /spec/ports/-
|
||||
value:
|
||||
name: dhcpc-udp
|
||||
port: 68
|
||||
targetPort: 68
|
||||
protocol: UDP
|
||||
- op: add
|
||||
path: /spec/ports/-
|
||||
value:
|
||||
name: dns-tls-tcp
|
||||
port: 853
|
||||
targetPort: 853
|
||||
protocol: TCP
|
||||
- op: add
|
||||
path: /spec/ports/-
|
||||
value:
|
||||
name: dns-tls-udp
|
||||
port: 853
|
||||
targetPort: 853
|
||||
protocol: UDP
|
||||
- op: add
|
||||
path: /spec/ports/-
|
||||
value:
|
||||
name: dnscrypt-tcp
|
||||
port: 5443
|
||||
targetPort: 5443
|
||||
protocol: TCP
|
||||
- op: add
|
||||
path: /spec/ports/-
|
||||
value:
|
||||
name: dnscrypt-udp
|
||||
port: 5443
|
||||
targetPort: 5443
|
||||
protocol: UDP
|
||||
- op: add
|
||||
path: /spec/ports/-
|
||||
value:
|
||||
name: https-pprof
|
||||
port: 6060
|
||||
targetPort: 6060
|
||||
protocol: TCP
|
||||
|
||||
@@ -1,6 +1,18 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./repositories/repositories.yaml
|
||||
- ./cilium/cilium.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
|
||||
- ./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
|
||||
@@ -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
|
||||
@@ -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
|
||||
51
kubernetes/infrastructure/minio/app/ingress.yaml
Normal file
51
kubernetes/infrastructure/minio/app/ingress.yaml
Normal 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
|
||||
31
kubernetes/infrastructure/minio/app/release.yaml
Normal file
31
kubernetes/infrastructure/minio/app/release.yaml
Normal 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"
|
||||
46
kubernetes/infrastructure/minio/app/volume.yaml
Normal file
46
kubernetes/infrastructure/minio/app/volume.yaml
Normal 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
|
||||
50
kubernetes/infrastructure/minio/minio.yaml
Normal file
50
kubernetes/infrastructure/minio/minio.yaml
Normal 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
|
||||
16
kubernetes/infrastructure/namespaces/namespaces.yaml
Normal file
16
kubernetes/infrastructure/namespaces/namespaces.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
# 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: namespaces
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
path: ./kubernetes/infrastructure/namespaces/namespaces
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: capacitor
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: code-server
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: consul
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: dokuwiki
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user