Compare commits
608 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e3b1ef76da | |||
| 6663fc2cc5 | |||
| dd7e28c2e2 | |||
| 6976ea8d93 | |||
| 8421acaa25 | |||
| f425a1c551 | |||
| d8a3706305 | |||
| 1ef512e2eb | |||
| 39e69dff7f | |||
| 5d86e81fb0 | |||
| 265f188f66 | |||
| 2508817f30 | |||
| e04dd170ac | |||
| 861f288ec0 | |||
| 20de965607 | |||
| b63d89d9e6 | |||
| c9ba27539e | |||
| daa4a87597 | |||
| a96c6c28a9 | |||
| 45f598fb8b | |||
| b0cdab1790 | |||
| 28e2ba87eb | |||
| 89e99bed42 | |||
| d30ec463bb | |||
| 0f8dae5436 | |||
| 2422db91e2 | |||
| d7117d18b8 | |||
| befe13225c | |||
| bc71b78da6 | |||
| f1385b8d0b | |||
| 87e3219c0c | |||
| 74fa77e91c | |||
| 5940db6833 | |||
| c02d40564d | |||
| 934ea43ae9 | |||
| f0eae55b5e | |||
| 423b9ce28c | |||
| a93031b11b | |||
| 4fc69cafe6 | |||
| 089096f936 | |||
| e3c174a995 | |||
| 4830a58ed9 | |||
| d47ee8f5f1 | |||
| 211db0669f | |||
| 386c098373 | |||
| fcde51b19e | |||
| 20a34d6bf0 | |||
| 8d666f5722 | |||
| a0c5699c71 | |||
| ea7b4d7d01 | |||
| b20300e315 | |||
| fa552169bc | |||
| f2bfd484b4 | |||
| e1317584ce | |||
| ff3407f80c | |||
| d05f619618 | |||
| aaf7fad09a | |||
| 4498df8aea | |||
| 0726aa922b | |||
| b291bba5d1 | |||
| 2f8e31b829 | |||
| 45b46e2394 | |||
| f9231e96a0 | |||
| fcc0994c38 | |||
| f065b69ab7 | |||
| 2ea3e85c3c | |||
| d176df16dd | |||
| 43c6077d9a | |||
| 3d67b97222 | |||
| 3706f37030 | |||
| dee898a97d | |||
| ce1bbcfda2 | |||
| 3a17a72924 | |||
| b46c2cb456 | |||
| 2531e40a80 | |||
| fdc3de12fd | |||
| ae707279e7 | |||
| 0ce818e2f5 | |||
| 4c7315c5ba | |||
| 768c54db1a | |||
| 0f62b0b01c | |||
| 13178964cb | |||
| 83241d90f9 | |||
| fc24cee169 | |||
| 768ccb8fd3 | |||
| d2b03dd2eb | |||
| 22cab489a5 | |||
| 5081ef9a13 | |||
| 38f80bdf48 | |||
| 674dfa1ed5 | |||
| 1f7a82e895 | |||
| 1a39118763 | |||
| 50aabe96b8 | |||
| 261f287e53 | |||
| 3b1d5e0ee1 | |||
| c58e2f675f | |||
| d836ff2cef | |||
| e68c57ed05 | |||
| 1c713f324a | |||
| b7631bf882 | |||
| c21945811e | |||
| 426fe34412 | |||
| dd3f44ff52 | |||
| d299f4a21c | |||
| 000161461f | |||
| d69830cc47 | |||
| 675e3299a1 | |||
| 219bc47465 | |||
| c31bf79671 | |||
| 903fbdbaa8 | |||
| 83a025cdcf | |||
| bc7c15db24 | |||
| 73555a2d80 | |||
| b19abf333d | |||
| 5b8732ae04 | |||
| 3a49ef6c53 | |||
| 4d9c401ab8 | |||
| ec0344ffe8 | |||
| cc85d8eccf | |||
| 4131917813 | |||
| 0f3f8b7a38 | |||
| 64048984a6 | |||
| 8989cdb100 | |||
| 95fa446986 | |||
| d2e50f1776 | |||
| a0d937e40a | |||
| eba8f961f0 | |||
| 8edbe0e078 | |||
| 61403261cd | |||
| 721049e742 | |||
| 69cb89aba1 | |||
| b55c36832f | |||
| 90e1e35e0a | |||
| a8c29c6b00 | |||
| 57a9246b35 | |||
| c96fae310d | |||
| 4e5fcda742 | |||
| b331dff18e | |||
| d1e9df5b35 | |||
| 4ece141ce0 | |||
| 9d9836bffb | |||
| b12146c054 | |||
| ce94dc0a3b | |||
| db011cfb4d | |||
| 9b1a687ef5 | |||
| e51c5eb248 | |||
| 1dfdf226d5 | |||
| a04cbeadad | |||
| 3283758478 | |||
| 5296c67194 | |||
| 9eb9714c7f | |||
| 70a78699e3 | |||
| ca6b80d13f | |||
| 6ba97b006b | |||
| 1feb953dc4 | |||
| a2203fc1d7 | |||
| c520f042c6 | |||
| e6788bbc41 | |||
| c75378a0e3 | |||
| e8e652039c | |||
| 993612f3bd | |||
| b45432c826 | |||
| 414c993fe1 | |||
| 5c044cbbfe | |||
| 243260f479 | |||
| 8510a9b8a2 | |||
| 77ed76758e | |||
| f8d82f4f46 | |||
| 50bf3814a5 | |||
| a8da4c1198 | |||
| 35b5882d3e | |||
| 2203b09fb4 | |||
| 673bb00a9a | |||
| 01b9bc4465 | |||
| ef6282ca17 | |||
| 503128903b | |||
| 7ca0a2d397 | |||
| 474d04862c | |||
| ea929b7dc4 | |||
| 354bd72248 | |||
| ed26ad8af2 | |||
| 372c11c31e | |||
| 91b56423f2 | |||
| 768cb1ddef | |||
| a5cf93c758 | |||
| 11b398801d | |||
| 61379ad665 | |||
| eb2eebaa34 | |||
| 15dae312ef | |||
| 2e00aceed1 | |||
| 1eb0e6c630 | |||
| bcf6d5b582 | |||
| 7b046c343f | |||
| 2bc0748ab8 | |||
| dbc230de9c | |||
| 58abecc074 | |||
| aac2b7bd2c | |||
| c4b8ed8185 | |||
| b5a3585fa7 | |||
| 2a37d6d182 | |||
| 0f6f5cf14e | |||
| 50d2c88be2 | |||
| 06b5b3e4a4 | |||
| a1c6852173 | |||
| 7d044764cb | |||
| 74d429ee49 | |||
| de4e9b9b22 | |||
| bfbf4ffba7 | |||
| 1ecd8eeb91 | |||
| 02ea91bb03 | |||
| 9115931e76 | |||
| 3896e1ec4f | |||
| 625b0bf319 | |||
| 0b99b54825 | |||
| 00f02e5067 | |||
| 2affcfb103 | |||
| ee491e25c0 | |||
| 189a6546f8 | |||
| a5175488f6 | |||
| 7fda8cecd9 | |||
| e4bb425944 | |||
| d235a3cdea | |||
| 74936fe9b7 | |||
| 9dbedbcf75 | |||
| 5c95f39c84 | |||
| 055aa404aa | |||
| a24e467991 | |||
| 2c7a1baffe | |||
| b23305c5d9 | |||
| ba56ee5dac | |||
| 2316c661b0 | |||
| 91407d6ff4 | |||
| acd2f17076 | |||
| 898fa6e0c6 | |||
| d7df338c95 | |||
| f9796e5208 | |||
| a839bb48ec | |||
| e536345fe1 | |||
| 070220a26c | |||
| 1b44b49a4b | |||
| 4419f911af | |||
| 696755f2dc | |||
| 2b473364be | |||
| 52514f32b8 | |||
| ed71d76790 | |||
| 29fc43f796 | |||
| a78ebd1a96 | |||
| dcfd063be4 | |||
| 56ada0e393 | |||
| e50d16dfec | |||
| 6f239fe48c | |||
| a7b722b616 | |||
| 3636f2eea4 | |||
| 818f037feb | |||
| 1b7e0e6635 | |||
| c4b8cee3f8 | |||
| 7851681c35 | |||
| 2a2e23b79f | |||
| 1dcac4767d | |||
| e5b086f973 | |||
| 3bce847954 | |||
| e2a3ad50cb | |||
| 7146d19f3c | |||
| 823fabfae4 | |||
| 17a4fb1622 | |||
| e8f70357bf | |||
| 8b48106f06 | |||
| 7f08fefd56 | |||
| e922693b52 | |||
| da2ceeed52 | |||
| a278190fd3 | |||
| 032f4701b9 | |||
| d8e5b48488 | |||
| 394d035969 | |||
| a8e17b0bca | |||
| 83a2e97568 | |||
| 5cb15f3a87 | |||
| 5b72f938ba | |||
| 2f2d5ba787 | |||
| 5e3dbe5e6d | |||
| ef1136f16d | |||
| df481c0cd2 | |||
| f7a704cf84 | |||
| 30191b1491 | |||
| 6422c7e7f2 | |||
| 7b42000743 | |||
| ee9b8c0e10 | |||
| 4c4edc285c | |||
| ed486baefd | |||
| cb80883161 | |||
| b61f29d8ee | |||
| e462f0b4ec | |||
| b3fa5bac98 | |||
| 306a223592 | |||
| e9da4a9ab6 | |||
| 1e90a6bfab | |||
| c243de22c8 | |||
| 00c0873eed | |||
| c6b66cf363 | |||
| ff584303c4 | |||
| bbcf79aeb3 | |||
| 4bce2dd19f | |||
| 8fd46c5362 | |||
| 2e096f77c8 | |||
| 621120aa03 | |||
| 27b6edb2f8 | |||
| ac213969e1 | |||
| 91bb327f25 | |||
| 09f6bd9e11 | |||
| daefa1130d | |||
| 2b4b619236 | |||
| a70ca81fb3 | |||
| f297475534 | |||
| 3eaf3d61fc | |||
| 0b50437b9b | |||
| 2112d3decc | |||
| 3b0b261092 | |||
| 8827153ac3 | |||
| 423d6c7a63 | |||
| 05295eafe7 | |||
| fd2d757504 | |||
| 9b7dc4d51b | |||
| a7382d8cdf | |||
| 63dabec1b9 | |||
| 2a4ff8ce59 | |||
| f2ee92c78f | |||
| 5d9930cba2 | |||
| 7a53370c6c | |||
| bfef95f5ec | |||
| 569e12ad59 | |||
| 3229012a3c | |||
| 73a828c8e9 | |||
| 21323e0b37 | |||
| 9dbfde76bd | |||
| 832eb5766b | |||
| 351939706a | |||
| 06affea347 | |||
| 4c35c489b3 | |||
| eebfe4e583 | |||
| 4b7337677b | |||
| 3457879466 | |||
| c7338b4dce | |||
| 148170c3ed | |||
| 156da412f3 | |||
| 1fad11992f | |||
| 50925f3f9e | |||
| 2fc4249a22 | |||
| 75a61bfd60 | |||
| 3430c02d40 | |||
| 8966224736 | |||
| 3b4c727619 | |||
| 2cdab2c5c9 | |||
| 80742c41dc | |||
| a2f066ac28 | |||
| 178c1310ad | |||
| 8fb71916b1 | |||
| 052b06843d | |||
| e146a67afd | |||
| dd769158ae | |||
| d07fdbe356 | |||
| 956838404b | |||
| 07bc85ee48 | |||
| 5fef65774a | |||
| 3166dc921a | |||
| 713e9f1fc4 | |||
| accd4d3e4e | |||
| e0af3046ca | |||
| 9939db5afb | |||
| a45351700e | |||
| 501d6bbe7d | |||
| 1fd1c78eb9 | |||
| dee2082624 | |||
| 317ebe4403 | |||
| 0c53cc454f | |||
| c0f9f38207 | |||
| 351fce65f5 | |||
| 10ee204d98 | |||
| 84d6a8a401 | |||
| e4cfba439a | |||
| f37c8654e4 | |||
| 01a1893a4a | |||
| c71a991a8d | |||
| e102552fdc | |||
| ae15aed80b | |||
| e1ae63a355 | |||
| c8c827d59d | |||
| 32c18be199 | |||
| 81ca527d9d | |||
| becb14d9f0 | |||
| 7ea9b64fd3 | |||
| 03fe52f4d9 | |||
| 5d597499ea | |||
| 9e52ab30c1 | |||
| 68f32481ba | |||
| 5678309d12 | |||
| dcd1c6c7de | |||
| 71efeaff2b | |||
| 9acb343ee4 | |||
| 8489c19069 | |||
| 3338eff2ab | |||
| d7226d1493 | |||
| 131ffc99ad | |||
| 8d61a21ef3 | |||
| bf288d1820 | |||
| 01743a0422 | |||
| 637336630b | |||
| 2ed24b105a | |||
| 9f8871197f | |||
| 4a10713f43 | |||
| 3a3a1e949d | |||
| c58c71f2af | |||
| 60e0a02ff1 | |||
| c687beeb67 | |||
| 8eb6749eb8 | |||
| 79ff024dfb | |||
| 0ca373930e | |||
| 8851c07257 | |||
| 9bc56bdcb9 | |||
| 36bf5a667e | |||
| e0c0f144d1 | |||
| 0673b6699a | |||
| bbe6a13229 | |||
| 973dcdf490 | |||
| 876f7cf55b | |||
| be3be3c816 | |||
| 9c489ab651 | |||
| 17aeae836f | |||
| 7220cad121 | |||
| b4499db3ea | |||
| 10be10574e | |||
| 5af465c307 | |||
| bd036bb4e8 | |||
| 1548508954 | |||
| 13bf08aebd | |||
| 69a7bd2943 | |||
| 0714cefb2b | |||
| 665d23c7e4 | |||
| c4ff6923a5 | |||
| dc2012b083 | |||
| 95e8e5940c | |||
| 65ee4efd62 | |||
| af1b0d7ee0 | |||
| 9e4457cae4 | |||
| 06e963ddc6 | |||
| 6eb95bfd3f | |||
| d69c2069b5 | |||
| 9b8d50c00d | |||
| e6e5d074e8 | |||
| 90e2d0a20d | |||
| 6b66bc23a3 | |||
| 6ad2b10fe0 | |||
| e188378eb8 | |||
| e782577311 | |||
| 7e58e93184 | |||
| 8a02bd8f84 | |||
| e643eecb7a | |||
| 545e8657c1 | |||
| e993393f88 | |||
| e1f68b3942 | |||
| 1f63af30ad | |||
| 72a7b18da6 | |||
| b82cb90e53 | |||
| 486a2ea8e1 | |||
| 5eca3281c9 | |||
| 92fc9996a4 | |||
| d94981a81d | |||
| 3bc988c2d9 | |||
| 22ba3b81a9 | |||
| 1ffe86c69b | |||
| fdbe5c0d3d | |||
| feabf3edf2 | |||
| 0db89c5c92 | |||
| 36b954b9f7 | |||
| 426f049af5 | |||
| 0894be86f4 | |||
| 7c18a9bfdb | |||
| ba2b1d9b2c | |||
| 62d65e5573 | |||
| 39b254637c | |||
| d435b1c42a | |||
| b5983a23ca | |||
| 44223c5ed1 | |||
| c96a86a141 | |||
| 3b44b6040f | |||
| 32dbc9b4d2 | |||
| 361d067638 | |||
| 6b749bc975 | |||
| 1b76b76f1f | |||
| b91f4b829b | |||
| 74181b06b9 | |||
| 1fdf1e0cf8 | |||
| cd0eb2455b | |||
| cb135c9eba | |||
| d14799703d | |||
| fc771cd38e | |||
| eda80a5ff5 | |||
| e498f85302 | |||
| 48776c52af | |||
| 3cbd136ce7 | |||
| bc13003c33 | |||
| ec935572ba | |||
| c7fc1c7c32 | |||
| 86a49dbd5c | |||
| 6d288c37be | |||
| 9ea8ce6315 | |||
| da9ce1dfb2 | |||
| e2359cdaf3 | |||
| 7dabdf2846 | |||
| 2d834c44a1 | |||
| 16b98ca445 | |||
| 608cf98661 | |||
| 40b0ff7a41 | |||
| 4549005ada | |||
| e66dc910c7 | |||
| c7f624b33d | |||
| db42092f47 | |||
| 064c953d45 | |||
| 497ee084e6 | |||
| 48bc79853f | |||
| d7a3658c5b | |||
| 2e34c48c7a | |||
| debfb1e3b1 | |||
| 6bfc37c723 | |||
| 39f9f70a70 | |||
| 7fc84977b1 | |||
| 2aa6de5d99 | |||
| 467a3b5545 | |||
| 920defbaaf | |||
| 5bbc37277c | |||
| ca428222ad | |||
| e45d4cb473 | |||
| c44fa90d5e | |||
| 50b4cb669a | |||
| f3e9d171c0 | |||
| 09d1387ff7 | |||
| ec0733d54f | |||
| 46279ece77 | |||
| 77b7ec0037 | |||
| 017463a330 | |||
| 72f1abb06e | |||
| 61ce347927 | |||
| e3ce874d50 | |||
| 62a5b0860c | |||
| 0d224acda3 | |||
| ebf4b140b2 | |||
| e7161a6666 | |||
| a4ac65c40a | |||
| 39d6c6ee7d | |||
| 33891cd20e | |||
| e7629a49d3 | |||
| 085ffb523e | |||
| 89827a4399 | |||
| 4f21bc07bf | |||
| b03f196727 | |||
| 0449e904b4 | |||
| 656ae05253 | |||
| 06cc2561a1 | |||
| 758ef9adde | |||
| afb6e3914d | |||
| 72a41d732e | |||
| 9866036272 | |||
| 017f14e95f | |||
| 5467bcdd79 | |||
| 97157e5911 | |||
| e68d39e883 | |||
| 944e19a8de | |||
| 020efc1627 | |||
| 5f4b7c413a | |||
| 8cefc5fa10 | |||
| 1c56a7127a | |||
| b00af494fd | |||
| a035db6c72 | |||
| fcdc019cb5 | |||
| 6a1400b106 | |||
| e8de9a6780 | |||
| 1132a9f58a | |||
| 57fb261a66 | |||
| 00ad12d88a | |||
| f42f311ac9 | |||
| 5b538414e2 | |||
| e81af536c3 | |||
| 62ae4bd74b | |||
| 6914a3762c | |||
| 4e15e8357f | |||
| b9a84f8682 | |||
| 8c59ebc5b4 | |||
| ec8ec832ec | |||
| f9886a5f76 | |||
| 2410295c03 | |||
| 8d94406425 | |||
| 547c5b2eae | |||
| 3a552e5206 | |||
| 54a5313131 | |||
| b20cca5b57 | |||
| 976967e1dd | |||
| f33eea3044 | |||
| 38898cd7bd | |||
| 3caaf20d45 | |||
| 4e9eed9004 | |||
| e1e9cddea4 | |||
| b1817e8690 | |||
| ff5ff14d49 | |||
| ea3b0b71b9 | |||
| 4dd5e2f4db | |||
| 5627b3e332 | |||
| f3b77e91b3 | |||
| 70755932b2 | |||
| 12a6b001e5 |
@@ -1,2 +1,6 @@
|
|||||||
|
*.tgz
|
||||||
|
_*/
|
||||||
|
.direnv/
|
||||||
|
.pre-commit-config.yaml
|
||||||
_manifest.yaml
|
_manifest.yaml
|
||||||
_resources.yaml
|
_resources.yaml
|
||||||
|
|||||||
+4
-4
@@ -14,8 +14,8 @@ release:
|
|||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
cd $CI_PROJECT_DIR
|
cd $CI_PROJECT_DIR
|
||||||
for i in $(git show --pretty="" --name-only | grep '^[^/]*/chart/Chart.yaml' | cut -d/ -f1); do
|
for i in $(git show --pretty="" --name-only | grep '^charts/.*/Chart.yaml' | cut -d/ -f2); do
|
||||||
pack=$(helm package $i/chart | sed 's/Success.*: \(.*\)/\1/')
|
pack=$(helm package ./charts/$i | sed 's/Success.*: \(.*\)/\1/')
|
||||||
if [ ! -z $pack ]; then
|
if [ ! -z $pack ]; then
|
||||||
chart=$(basename $pack)
|
chart=$(basename $pack)
|
||||||
curl --request POST \
|
curl --request POST \
|
||||||
@@ -33,8 +33,8 @@ rebuild:
|
|||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
cd $CI_PROJECT_DIR
|
cd $CI_PROJECT_DIR
|
||||||
for i in $(find -maxdepth 3 -name Chart.yaml | cut -d/ -f2); do
|
for i in $(find ./charts -maxdepth 2 -name Chart.yaml | cut -d/ -f3); do
|
||||||
pack=$(helm package $i/chart | sed 's/Success.*: \(.*\)/\1/')
|
pack=$(helm package ./charts/$i | sed 's/Success.*: \(.*\)/\1/')
|
||||||
if [ ! -z $pack ]; then
|
if [ ! -z $pack ]; then
|
||||||
chart=$(basename $pack)
|
chart=$(basename $pack)
|
||||||
curl --request POST \
|
curl --request POST \
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: atlantis-host-cluster-resources
|
|
||||||
namespace: argocd
|
|
||||||
spec:
|
|
||||||
project: atlantis
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
syncPolicy:
|
|
||||||
automated: {}
|
|
||||||
source:
|
|
||||||
repoURL: https://gitlab.com/oceanbox/manifests.git
|
|
||||||
targetRevision: dev
|
|
||||||
path: resources/atlantis/host-manifests
|
|
||||||
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: ApplicationSet
|
|
||||||
metadata:
|
|
||||||
name: atlantis-resources
|
|
||||||
namespace: argocd
|
|
||||||
spec:
|
|
||||||
generators:
|
|
||||||
- list:
|
|
||||||
elements:
|
|
||||||
- cluster: https://kubernetes.default.svc
|
|
||||||
env: prod
|
|
||||||
- cluster: https://staging-vcluster.staging-vcluster:443
|
|
||||||
env: staging
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
name: '{{ env }}-atlantis-resources'
|
|
||||||
spec:
|
|
||||||
project: atlantis
|
|
||||||
syncPolicy:
|
|
||||||
automated: {}
|
|
||||||
destination:
|
|
||||||
server: '{{ cluster }}'
|
|
||||||
namespace: atlantis
|
|
||||||
sources:
|
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
|
||||||
targetRevision: dev
|
|
||||||
path: 'resources/atlantis/manifests/{{ env }}'
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: ApplicationSet
|
|
||||||
metadata:
|
|
||||||
name: redis
|
|
||||||
namespace: argocd
|
|
||||||
spec:
|
|
||||||
generators:
|
|
||||||
- list:
|
|
||||||
elements:
|
|
||||||
- cluster: https://kubernetes.default.svc
|
|
||||||
env: prod
|
|
||||||
hostname: redis.srv.oceanbox.io
|
|
||||||
- cluster: https://kubernetes.default.svc
|
|
||||||
env: staging
|
|
||||||
hostname: redis.beta.oceanbox.io
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
name: '{{ env }}-redis'
|
|
||||||
spec:
|
|
||||||
project: atlantis
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: redis
|
|
||||||
sources:
|
|
||||||
# - repoURL: https://charts.bitnami.com/bitnami
|
|
||||||
# targetRevision: 18.9.1
|
|
||||||
# chart: redis
|
|
||||||
# helm:
|
|
||||||
# valueFiles:
|
|
||||||
# - $values/redis/values.yaml
|
|
||||||
# - repoURL: https://gitlab.com/oceanbox/manifests.git
|
|
||||||
# targetRevision: HEAD
|
|
||||||
# path: charts/redis/{{ env }}
|
|
||||||
# ref: values
|
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
|
||||||
targetRevision: dev
|
|
||||||
path: charts/redis
|
|
||||||
plugin:
|
|
||||||
name: kustomize-helm-with-rewrite
|
|
||||||
parameters:
|
|
||||||
- name: env
|
|
||||||
string: '{{ env }}'
|
|
||||||
- name: hostname
|
|
||||||
string: '{{ hostname }}'
|
|
||||||
- name: chart
|
|
||||||
string: bitnami/redis
|
|
||||||
@@ -13,11 +13,11 @@ spec:
|
|||||||
hostname: archmeister.srv.oceanbox.io
|
hostname: archmeister.srv.oceanbox.io
|
||||||
autoSync: false
|
autoSync: false
|
||||||
prune: true
|
prune: true
|
||||||
- cluster: https://staging-vcluster.staging-vcluster:443
|
# - cluster: https://staging-vcluster.staging-vcluster
|
||||||
env: staging
|
# env: staging
|
||||||
hostname: archmeister.beta.oceanbox.io
|
# hostname: archmeister.beta.oceanbox.io
|
||||||
autoSync: true
|
# autoSync: true
|
||||||
prune: true
|
# prune: true
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ .env }}-archmeister"
|
name: "{{ .env }}-archmeister"
|
||||||
@@ -28,8 +28,8 @@ spec:
|
|||||||
server: "{{ .cluster }}"
|
server: "{{ .cluster }}"
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: main
|
||||||
path: charts/archmeister
|
path: values/archmeister
|
||||||
plugin:
|
plugin:
|
||||||
name: kustomize-helm-with-rewrite
|
name: kustomize-helm-with-rewrite
|
||||||
parameters:
|
parameters:
|
||||||
@@ -43,4 +43,5 @@ spec:
|
|||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
automated:
|
||||||
prune: {{ .prune }}
|
prune: {{ .prune }}
|
||||||
|
selfHeal: false
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: atlantis-cluster-resources
|
||||||
|
namespace: argocd
|
||||||
|
# annotations: # close, but no cigar
|
||||||
|
# argocd.argoproj.io/compare-options: ServerSideDiff=true,IncludeMutationWebhook=true
|
||||||
|
spec:
|
||||||
|
project: atlantis
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: false
|
||||||
|
selfHeal: false
|
||||||
|
# ignoreDifferences:
|
||||||
|
# - kind: Secret
|
||||||
|
# name: prod-rabbitmq
|
||||||
|
# jqPathExpressions:
|
||||||
|
# - '.data'
|
||||||
|
# - '.metadata.annotations.clone'
|
||||||
|
# - '.metadata.labels'
|
||||||
|
sources:
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: main
|
||||||
|
path: resources/atlantis
|
||||||
|
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
# Currently not in use. Configured via the create-vcluster script.
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: ApplicationSet
|
||||||
|
metadata:
|
||||||
|
name: atlantis-resources
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
goTemplate: true
|
||||||
|
generators:
|
||||||
|
- list:
|
||||||
|
elements:
|
||||||
|
- cluster: https://kubernetes.default.svc
|
||||||
|
env: prod
|
||||||
|
autoSync: false
|
||||||
|
prune: false
|
||||||
|
# - cluster: https://staging-vcluster.staging-vcluster
|
||||||
|
# env: staging
|
||||||
|
# autoSync: false
|
||||||
|
# prune: false
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: "{{ .env }}-atlantis-resources"
|
||||||
|
spec:
|
||||||
|
project: aux
|
||||||
|
syncPolicy:
|
||||||
|
automated: {}
|
||||||
|
destination:
|
||||||
|
server: "{{ .cluster }}"
|
||||||
|
namespace: atlantis
|
||||||
|
sources: {}
|
||||||
|
# - repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
# targetRevision: main
|
||||||
|
# path: 'resources/atlantis/manifests/{{ env }}'
|
||||||
|
templatePatch: |
|
||||||
|
{{- if .autoSync }}
|
||||||
|
spec:
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: {{ .prune }}
|
||||||
|
selfHeal: false
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
{ lib, config, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.apps.atlantis;
|
||||||
|
env = config.apps.env;
|
||||||
|
|
||||||
|
values = lib.apps.appValues {
|
||||||
|
inherit env;
|
||||||
|
base = ../values/atlantis;
|
||||||
|
extraValues = {};
|
||||||
|
};
|
||||||
|
|
||||||
|
kustomize = r:
|
||||||
|
if r.kind == "Deployment" then
|
||||||
|
lib.attrsets.recursiveUpdate r {
|
||||||
|
spec.template.spec.containers =
|
||||||
|
builtins.map (x:
|
||||||
|
x // {
|
||||||
|
livenessProbe.httpGet.path = "/healthz";
|
||||||
|
readinessProble.httpGet.path = "/healthz";
|
||||||
|
env = x.env ++ [ { name = "INERNAL_PORT"; value = 8000; } ];
|
||||||
|
}) r.spec.template.spec.containers;
|
||||||
|
}
|
||||||
|
else if r.kind == "Service" then
|
||||||
|
{}
|
||||||
|
else r;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.apps.atlantis = lib.apps.appOptions {
|
||||||
|
revision = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "main";
|
||||||
|
description = "Revision";
|
||||||
|
};
|
||||||
|
|
||||||
|
hostname = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = if env == "prod"
|
||||||
|
then "maps.oceanbox.io"
|
||||||
|
else "atlantis.beta.oceanbox.io";
|
||||||
|
description = "Revision";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.apps.appConfig cfg "${env}-atlantis" {
|
||||||
|
helm.releases."${env}-atlantis" = {
|
||||||
|
inherit values;
|
||||||
|
chart = ../charts/atlantis;
|
||||||
|
transformer = rs: builtins.map (x: kustomize x) rs;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -13,11 +13,11 @@ spec:
|
|||||||
hostname: atlantis.srv.oceanbox.io
|
hostname: atlantis.srv.oceanbox.io
|
||||||
autoSync: false
|
autoSync: false
|
||||||
prune: true
|
prune: true
|
||||||
- cluster: https://staging-vcluster.staging-vcluster:443
|
# - cluster: https://staging-vcluster.staging-vcluster
|
||||||
env: staging
|
# env: staging
|
||||||
hostname: atlantis.beta.oceanbox.io
|
# hostname: atlantis.beta.oceanbox.io
|
||||||
autoSync: true
|
# autoSync: true
|
||||||
prune: true
|
# prune: true
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: '{{ .env }}-atlantis'
|
name: '{{ .env }}-atlantis'
|
||||||
@@ -28,8 +28,8 @@ spec:
|
|||||||
server: '{{ .cluster }}'
|
server: '{{ .cluster }}'
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: main
|
||||||
path: charts/atlantis
|
path: values/atlantis
|
||||||
plugin:
|
plugin:
|
||||||
name: kustomize-helm-with-rewrite
|
name: kustomize-helm-with-rewrite
|
||||||
parameters:
|
parameters:
|
||||||
@@ -37,13 +37,11 @@ spec:
|
|||||||
string: '{{ .env }}'
|
string: '{{ .env }}'
|
||||||
- name: hostname
|
- name: hostname
|
||||||
string: '{{ .hostname }}'
|
string: '{{ .hostname }}'
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
|
||||||
targetRevision: dev
|
|
||||||
path: charts/atlantis/manifests
|
|
||||||
templatePatch: |
|
templatePatch: |
|
||||||
{{- if .autoSync }}
|
{{- if .autoSync }}
|
||||||
spec:
|
spec:
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
automated:
|
||||||
prune: {{ .prune }}
|
prune: {{ .prune }}
|
||||||
|
selfHeal: false
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -7,24 +7,24 @@ spec:
|
|||||||
generators:
|
generators:
|
||||||
- list:
|
- list:
|
||||||
elements:
|
elements:
|
||||||
- cluster: https://kubernetes.default.svc
|
# - cluster: https://kubernetes.default.svc
|
||||||
env: prod
|
# env: prod
|
||||||
hostname: busynix.srv.oceanbox.io
|
# hostname: busynix.srv.oceanbox.io
|
||||||
- cluster: https://staging-vcluster.staging-vcluster:443
|
- cluster: https://staging-vcluster.staging-vcluster
|
||||||
env: staging
|
env: staging
|
||||||
hostname: busynix.beta.oceanbox.io
|
hostname: busynix.beta.oceanbox.io
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: '{{ env }}-busynix'
|
name: '{{ env }}-busynix'
|
||||||
spec:
|
spec:
|
||||||
project: atlantis
|
project: aux
|
||||||
destination:
|
destination:
|
||||||
namespace: default
|
namespace: default
|
||||||
server: '{{ cluster }}'
|
server: '{{ cluster }}'
|
||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/oceanbox/manifests.git
|
repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: main
|
||||||
path: charts/busynix
|
path: values/busynix
|
||||||
plugin:
|
plugin:
|
||||||
name: kustomize-helm-with-rewrite
|
name: kustomize-helm-with-rewrite
|
||||||
parameters:
|
parameters:
|
||||||
@@ -9,13 +9,13 @@ spec:
|
|||||||
elements:
|
elements:
|
||||||
- cluster: https://kubernetes.default.svc
|
- cluster: https://kubernetes.default.svc
|
||||||
env: prod
|
env: prod
|
||||||
- cluster: https://staging-vcluster.staging-vcluster:443
|
- cluster: https://staging-vcluster.staging-vcluster
|
||||||
env: staging
|
env: staging
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: '{{ env }}-cerbos'
|
name: '{{ env }}-cerbos'
|
||||||
spec:
|
spec:
|
||||||
project: atlantis
|
project: aux
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: idp
|
namespace: idp
|
||||||
@@ -25,8 +25,8 @@ spec:
|
|||||||
chart: cerbos
|
chart: cerbos
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/charts/cerbos/values.yaml
|
- $values/values/cerbos/values.yaml
|
||||||
- $values/charts/cerbos/values-{{ env }}.yaml
|
- $values/values/cerbos/values-{{ env }}.yaml
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: dapr
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: dapr-system
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: default
|
||||||
|
syncPolicy:
|
||||||
|
# managedNamespaceMetadata:
|
||||||
|
# labels:
|
||||||
|
# component: aux
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
sources:
|
||||||
|
- repoURL: https://dapr.github.io/helm-charts/
|
||||||
|
targetRevision: 1.14.4
|
||||||
|
chart: dapr
|
||||||
|
helm:
|
||||||
|
values: |
|
||||||
|
global:
|
||||||
|
ha:
|
||||||
|
enabled: true
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./atlantis.nix
|
||||||
|
./openfga.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -4,12 +4,12 @@ metadata:
|
|||||||
name: dex
|
name: dex
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
spec:
|
spec:
|
||||||
project: atlantis
|
project: aux
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: idp
|
namespace: idp
|
||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/oceanbox/manifests.git
|
repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: nixidy
|
||||||
path: charts/dex/manifests
|
path: values/dex/manifests
|
||||||
|
|
||||||
@@ -17,14 +17,14 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
name: '{{ env }}-geoserver'
|
name: '{{ env }}-geoserver'
|
||||||
spec:
|
spec:
|
||||||
project: atlantis
|
project: aux
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: geoserver
|
namespace: geoserver
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: main
|
||||||
path: charts/geoserver
|
path: values/geoserver
|
||||||
plugin:
|
plugin:
|
||||||
name: kustomize-helm-with-rewrite
|
name: kustomize-helm-with-rewrite
|
||||||
parameters:
|
parameters:
|
||||||
@@ -13,11 +13,11 @@ spec:
|
|||||||
hostname: hipster.srv.oceanbox.io
|
hostname: hipster.srv.oceanbox.io
|
||||||
autoSync: false
|
autoSync: false
|
||||||
prune: true
|
prune: true
|
||||||
- cluster: https://staging-vcluster.staging-vcluster:443
|
# - cluster: https://staging-vcluster.staging-vcluster
|
||||||
env: staging
|
# env: staging
|
||||||
hostname: hipster.beta.oceanbox.io
|
# hostname: hipster.beta.oceanbox.io
|
||||||
autoSync: true
|
# autoSync: true
|
||||||
prune: true
|
# prune: true
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: '{{ .env }}-hipster'
|
name: '{{ .env }}-hipster'
|
||||||
@@ -28,8 +28,8 @@ spec:
|
|||||||
server: '{{ .cluster }}'
|
server: '{{ .cluster }}'
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: main
|
||||||
path: charts/hipster
|
path: values/hipster
|
||||||
plugin:
|
plugin:
|
||||||
name: kustomize-helm-with-rewrite
|
name: kustomize-helm-with-rewrite
|
||||||
parameters:
|
parameters:
|
||||||
@@ -43,4 +43,5 @@ spec:
|
|||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
automated:
|
||||||
prune: {{ .prune }}
|
prune: {{ .prune }}
|
||||||
|
selfHeal: false
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -10,13 +10,13 @@ spec:
|
|||||||
namespace: jaeger
|
namespace: jaeger
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://jaegertracing.github.io/helm-charts
|
- repoURL: https://jaegertracing.github.io/helm-charts
|
||||||
targetRevision: 2.50.1
|
targetRevision: 2.54.0
|
||||||
chart: jaeger-operator
|
chart: jaeger-operator
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/charts/jaeger/values.yaml
|
- $values/values/jaeger/values.yaml
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: main
|
||||||
# path: charts/jaeger/manifests
|
# path: values/jaeger/manifests
|
||||||
ref: values
|
ref: values
|
||||||
|
|
||||||
@@ -4,18 +4,18 @@ metadata:
|
|||||||
name: keycloak
|
name: keycloak
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
spec:
|
spec:
|
||||||
project: atlantis
|
project: aux
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: idp
|
namespace: idp
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://charts.bitnami.com/bitnami
|
- repoURL: https://charts.bitnami.com/bitnami
|
||||||
targetRevision: 18.3.4
|
targetRevision: 24.0.2
|
||||||
chart: keycloak
|
chart: keycloak
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/charts/keycloak/values.yaml
|
- $values/values/keycloak/values.yaml
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: nixidy
|
||||||
ref: values
|
ref: values
|
||||||
|
|
||||||
+150
@@ -0,0 +1,150 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: loki
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: loki
|
||||||
|
server: 'https://kubernetes.default.svc'
|
||||||
|
project: aux
|
||||||
|
ignoreDifferences:
|
||||||
|
- group: apps
|
||||||
|
kind: StatefulSet
|
||||||
|
jsonPointers:
|
||||||
|
- /spec/persistentVolumeClaimRetentionPolicy
|
||||||
|
syncPolicy:
|
||||||
|
managedNamespaceMetadata:
|
||||||
|
labels:
|
||||||
|
component: aux
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
sources:
|
||||||
|
- repoURL: https://gitlab.com/serit/k8s/serit-platform-manifests.git
|
||||||
|
path: network-policies/netpol-loki
|
||||||
|
targetRevision: HEAD
|
||||||
|
- repoURL: 'https://grafana.github.io/helm-charts'
|
||||||
|
targetRevision: 6.12.0
|
||||||
|
chart: loki
|
||||||
|
helm:
|
||||||
|
values: |
|
||||||
|
loki:
|
||||||
|
auth_enabled: false
|
||||||
|
storage:
|
||||||
|
bucketNames:
|
||||||
|
chunks: loki-chunks
|
||||||
|
ruler: loki-chunks
|
||||||
|
admin: loki-chunks
|
||||||
|
s3:
|
||||||
|
endpoint: http://10.255.241.30:30080
|
||||||
|
region: tos
|
||||||
|
accessKeyId: ${S3KEY}
|
||||||
|
secretAccessKey: ${S3SECRET}
|
||||||
|
s3ForcePathStyle: true
|
||||||
|
http_config:
|
||||||
|
insecure_skip_verify: true
|
||||||
|
schemaConfig:
|
||||||
|
configs:
|
||||||
|
- from: "2024-04-01"
|
||||||
|
index:
|
||||||
|
period: 24h
|
||||||
|
prefix: loki_index_
|
||||||
|
object_store: s3
|
||||||
|
schema: v13
|
||||||
|
store: tsdb
|
||||||
|
compactor:
|
||||||
|
compaction_interval: 10m
|
||||||
|
working_directory: /tmp/loki/compactor
|
||||||
|
retention_enabled: true
|
||||||
|
retention_delete_delay: 2h
|
||||||
|
retention_delete_worker_count: 150
|
||||||
|
delete_request_store: s3
|
||||||
|
limits_config:
|
||||||
|
retention_period: 744h
|
||||||
|
write:
|
||||||
|
extraArgs:
|
||||||
|
- -config.expand-env=true
|
||||||
|
extraEnv:
|
||||||
|
- name: S3KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: loki-s3
|
||||||
|
key: AWS_ACCESS_KEY_ID
|
||||||
|
- name: S3SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: loki-s3
|
||||||
|
key: AWS_ACCESS_KEY_SECRET
|
||||||
|
tolerations:
|
||||||
|
- effect: "NoSchedule"
|
||||||
|
operator: "Equal"
|
||||||
|
key: "unschedulable"
|
||||||
|
value: "true"
|
||||||
|
read:
|
||||||
|
extraArgs:
|
||||||
|
- -config.expand-env=true
|
||||||
|
extraEnv:
|
||||||
|
- name: S3KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: loki-s3
|
||||||
|
key: AWS_ACCESS_KEY_ID
|
||||||
|
- name: S3SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: loki-s3
|
||||||
|
key: AWS_ACCESS_KEY_SECRET
|
||||||
|
tolerations:
|
||||||
|
- effect: "NoSchedule"
|
||||||
|
operator: "Equal"
|
||||||
|
key: "unschedulable"
|
||||||
|
value: "true"
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
ingressClassName: nginx
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-staging
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
atlantis.oceanbox.io/expose: internal
|
||||||
|
hosts:
|
||||||
|
- loki.adm.oceanbox.io
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- loki.adm.oceanbox.io
|
||||||
|
secretName: loki-distributed-tls
|
||||||
|
compactor:
|
||||||
|
extraArgs:
|
||||||
|
- -config.expand-env=true
|
||||||
|
extraEnv:
|
||||||
|
- name: S3KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: loki-s3
|
||||||
|
key: AWS_ACCESS_KEY_ID
|
||||||
|
- name: S3SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: loki-s3
|
||||||
|
key: AWS_ACCESS_KEY_SECRET
|
||||||
|
backend:
|
||||||
|
extraArgs:
|
||||||
|
- -config.expand-env=true
|
||||||
|
extraEnv:
|
||||||
|
- name: S3KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: loki-s3
|
||||||
|
key: AWS_ACCESS_KEY_ID
|
||||||
|
- name: S3SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: loki-s3
|
||||||
|
key: AWS_ACCESS_KEY_SECRET
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{ lib, config, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.apps.openfga;
|
||||||
|
env = config.apps.env;
|
||||||
|
|
||||||
|
values = lib.apps.appValues {
|
||||||
|
inherit env;
|
||||||
|
base = ../values/openfga;
|
||||||
|
extraValues = {};
|
||||||
|
};
|
||||||
|
|
||||||
|
kustomize = r:
|
||||||
|
if r.kind == "Job" then
|
||||||
|
lib.attrsets.recursiveUpdate r { spec.backoffLimit = 2; }
|
||||||
|
else r;
|
||||||
|
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.apps.openfga = lib.apps.appOptions {};
|
||||||
|
|
||||||
|
config = lib.apps.appConfig cfg "${env}-openfga" {
|
||||||
|
helm.releases."${env}-openfga" = {
|
||||||
|
inherit values;
|
||||||
|
chart = lib.helm.downloadHelmChart {
|
||||||
|
repo = "https://openfga.github.io/helm-charts";
|
||||||
|
chart = "openfga";
|
||||||
|
version = "0.2.12";
|
||||||
|
chartHash = "sha256-7yLcw9/oNPvCePrtTJwKAG88t0Ym5Dl/S83Gz+gQdDU=";
|
||||||
|
};
|
||||||
|
transformer = rs: builtins.map (x: kustomize x) rs;
|
||||||
|
};
|
||||||
|
|
||||||
|
annotations = {};
|
||||||
|
resources = {
|
||||||
|
services.poop.spec = {
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,109 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: opentelemetry-collector
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: otel
|
||||||
|
server: 'https://kubernetes.default.svc'
|
||||||
|
project: aux
|
||||||
|
syncPolicy:
|
||||||
|
# managedNamespaceMetadata:
|
||||||
|
# labels:
|
||||||
|
# component: aux
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
sources:
|
||||||
|
- repoURL: 'https://open-telemetry.github.io/opentelemetry-helm-charts'
|
||||||
|
targetRevision: 0.107.0
|
||||||
|
chart: opentelemetry-collector
|
||||||
|
helm:
|
||||||
|
values: |
|
||||||
|
mode: deployment
|
||||||
|
image:
|
||||||
|
repository: otel/opentelemetry-collector-k8s
|
||||||
|
service:
|
||||||
|
type: LoadBalancer
|
||||||
|
loadBalancerIP: 10.255.241.12
|
||||||
|
config:
|
||||||
|
receivers:
|
||||||
|
prometheus/collector:
|
||||||
|
config:
|
||||||
|
scrape_configs:
|
||||||
|
- job_name: 'opentelemetry-collector'
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- ${env:MY_POD_IP}:8888
|
||||||
|
zipkin:
|
||||||
|
endpoint: ${env:MY_POD_IP}:9411
|
||||||
|
exporters:
|
||||||
|
otlp:
|
||||||
|
endpoint: "tempo.tempo.svc:4317"
|
||||||
|
tls:
|
||||||
|
insecure: true
|
||||||
|
otlphttp/metrics:
|
||||||
|
endpoint: http://prom-prometheus.prometheus:9090/api/v1/otlp
|
||||||
|
tls:
|
||||||
|
insecure: true
|
||||||
|
otlphttp/logs:
|
||||||
|
endpoint: http://loki-write-headless.loki:3100/otlp
|
||||||
|
tls:
|
||||||
|
insecure: true
|
||||||
|
debug/metrics:
|
||||||
|
verbosity: detailed
|
||||||
|
debug/traces:
|
||||||
|
verbosity: detailed
|
||||||
|
debug/logs:
|
||||||
|
verbosity: detailed
|
||||||
|
service:
|
||||||
|
telemetry:
|
||||||
|
logs:
|
||||||
|
level: "info"
|
||||||
|
pipelines:
|
||||||
|
traces:
|
||||||
|
receivers: [otlp,zipkin]
|
||||||
|
processors: [batch]
|
||||||
|
exporters: [otlp]
|
||||||
|
# exporters: [otlphttp/traces,debug/traces]
|
||||||
|
metrics:
|
||||||
|
receivers: [otlp,prometheus/collector]
|
||||||
|
processors: [batch]
|
||||||
|
exporters: [otlphttp/metrics]
|
||||||
|
# exporters: [otlphttp/metrics,debug/metrics]
|
||||||
|
logs:
|
||||||
|
receivers: [otlp]
|
||||||
|
processors: [batch]
|
||||||
|
exporters: [otlphttp/logs]
|
||||||
|
# exporters: [otlphttp/logs,debug/logs]
|
||||||
|
ports:
|
||||||
|
metrics:
|
||||||
|
enabled: true
|
||||||
|
# presets:
|
||||||
|
# logsCollection:
|
||||||
|
# enabled: true
|
||||||
|
ingress:
|
||||||
|
enabled: false
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
atlantis.oceanbox.io/expose: internal
|
||||||
|
ingressClassName: nginx
|
||||||
|
hosts:
|
||||||
|
- host: opentelemetry-collector.adm.oceanbox.io
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
port: 4318
|
||||||
|
tls:
|
||||||
|
- secretName: collector-tls
|
||||||
|
hosts:
|
||||||
|
- opentelemetry-collector.adm.oceanbox.io
|
||||||
@@ -10,21 +10,21 @@ spec:
|
|||||||
- cluster: https://kubernetes.default.svc
|
- cluster: https://kubernetes.default.svc
|
||||||
env: prod
|
env: prod
|
||||||
hostname: osm.srv.oceanbox.io
|
hostname: osm.srv.oceanbox.io
|
||||||
- cluster: https://staging-vcluster.staging-vcluster:443
|
- cluster: https://staging-vcluster.staging-vcluster
|
||||||
env: staging
|
env: staging
|
||||||
hostname: osm.beta.oceanbox.io
|
hostname: osm.beta.oceanbox.io
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: '{{ env }}-osm-tile-server'
|
name: '{{ env }}-osm-tile-server'
|
||||||
spec:
|
spec:
|
||||||
project: atlantis
|
project: aux
|
||||||
destination:
|
destination:
|
||||||
namespace: oceanbox
|
namespace: oceanbox
|
||||||
server: '{{ cluster }}'
|
server: '{{ cluster }}'
|
||||||
source:
|
source:
|
||||||
repoURL: https://gitlab.com/oceanbox/charts.git
|
repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: HEAD
|
targetRevision: HEAD
|
||||||
path: charts/osm-tile-server
|
path: values/osm-tile-server
|
||||||
plugin:
|
plugin:
|
||||||
name: kustomize-helm-with-rewrite
|
name: kustomize-helm-with-rewrite
|
||||||
parameters:
|
parameters:
|
||||||
@@ -13,11 +13,11 @@ spec:
|
|||||||
hostname: petimeter.srv.oceanbox.io
|
hostname: petimeter.srv.oceanbox.io
|
||||||
autoSync: false
|
autoSync: false
|
||||||
prune: true
|
prune: true
|
||||||
- cluster: https://staging-vcluster.staging-vcluster:443
|
# - cluster: https://staging-vcluster.staging-vcluster
|
||||||
env: staging
|
# env: staging
|
||||||
hostname: petimeter.beta.oceanbox.io
|
# hostname: petimeter.beta.oceanbox.io
|
||||||
autoSync: true
|
# autoSync: true
|
||||||
prune: true
|
# prune: true
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: '{{ .env }}-petimeter'
|
name: '{{ .env }}-petimeter'
|
||||||
@@ -28,8 +28,8 @@ spec:
|
|||||||
server: '{{ .cluster }}'
|
server: '{{ .cluster }}'
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: main
|
||||||
path: charts/petimeter
|
path: values/petimeter
|
||||||
plugin:
|
plugin:
|
||||||
name: kustomize-helm-with-rewrite
|
name: kustomize-helm-with-rewrite
|
||||||
parameters:
|
parameters:
|
||||||
@@ -38,12 +38,13 @@ spec:
|
|||||||
- name: hostname
|
- name: hostname
|
||||||
string: '{{ .hostname }}'
|
string: '{{ .hostname }}'
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: main
|
||||||
path: charts/petimeter/manifests
|
path: values/petimeter/manifests
|
||||||
templatePatch: |
|
templatePatch: |
|
||||||
{{- if .autoSync }}
|
{{- if .autoSync }}
|
||||||
spec:
|
spec:
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
automated:
|
||||||
prune: {{ .prune }}
|
prune: {{ .prune }}
|
||||||
|
selfHeal: false
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: prod-atlantis
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: prod-atlantis
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: atlantis
|
||||||
|
sources:
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: nixidy
|
||||||
|
ref: values
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: nixidy
|
||||||
|
path: values/atlantis
|
||||||
|
plugin:
|
||||||
|
name: kustomize-helm-with-rewrite
|
||||||
|
parameters:
|
||||||
|
- name: env
|
||||||
|
string: prod
|
||||||
|
- name: hostname
|
||||||
|
string: maps.oceanbox.io
|
||||||
|
- repoURL: https://charts.bitnami.com/bitnami
|
||||||
|
targetRevision: 20.1.7
|
||||||
|
chart: redis
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/values/atlantis/prod/redis.yaml
|
||||||
|
ignoreDifferences:
|
||||||
|
- kind: Secret
|
||||||
|
name: azure-keyvault
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.data'
|
||||||
|
- '.metadata.labels'
|
||||||
|
- '.metadata.annotations'
|
||||||
|
- kind: Secret
|
||||||
|
name: prod-atlantis-rabbitmq
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.data'
|
||||||
|
- '.metadata.labels'
|
||||||
|
- '.metadata.annotations'
|
||||||
|
- kind: Secret
|
||||||
|
name: prod-archmeister-replication
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.data'
|
||||||
|
- '.metadata.labels'
|
||||||
|
- '.metadata.annotations'
|
||||||
|
- kind: Secret
|
||||||
|
name: prod-archmeister-ca
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.data'
|
||||||
|
- '.metadata.labels'
|
||||||
|
- '.metadata.annotations'
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
# automated:
|
||||||
|
# prune: true
|
||||||
|
# selfHeal: false
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: prod-keycloak
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
project: aux
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: keycloak
|
||||||
|
syncPolicy:
|
||||||
|
managedNamespaceMetadata:
|
||||||
|
labels:
|
||||||
|
component: aux
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
sources:
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: nixidy
|
||||||
|
path: values/keycloak/prod
|
||||||
|
- repoURL: https://charts.bitnami.com/bitnami
|
||||||
|
targetRevision: 24.0.2
|
||||||
|
chart: keycloak
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/values/keycloak/values-prod.yaml
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: nixidy
|
||||||
|
ref: values
|
||||||
|
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: prod-openfga
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: openfga
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: aux
|
||||||
|
# ignoreDifferences:
|
||||||
|
# - group: apps
|
||||||
|
# kind: StatefulSet
|
||||||
|
# jsonPointers:
|
||||||
|
# - /spec/persistentVolumeClaimRetentionPolicy
|
||||||
|
syncPolicy:
|
||||||
|
managedNamespaceMetadata:
|
||||||
|
labels:
|
||||||
|
component: aux
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
sources:
|
||||||
|
- repoURL: https://openfga.github.io/helm-charts
|
||||||
|
targetRevision: 0.2.19
|
||||||
|
chart: openfga
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/values/openfga/values-prod.yaml
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: nixidy
|
||||||
|
ref: values
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: prod-sorcerer
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: prod-sorcerer
|
||||||
|
server: https://10.255.241.99:4443
|
||||||
|
project: atlantis
|
||||||
|
sources:
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: nixidy
|
||||||
|
ref: values
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: nixidy
|
||||||
|
path: values/sorcerer
|
||||||
|
plugin:
|
||||||
|
name: kustomize-helm-with-rewrite
|
||||||
|
parameters:
|
||||||
|
- name: env
|
||||||
|
string: prod
|
||||||
|
- name: hostname
|
||||||
|
string: sorcerer.data.oceanbox.io
|
||||||
|
- repoURL: https://charts.bitnami.com/bitnami
|
||||||
|
targetRevision: 20.1.7
|
||||||
|
chart: redis
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/values/sorcerer/prod/redis.yaml
|
||||||
|
ignoreDifferences:
|
||||||
|
- kind: Secret
|
||||||
|
name: azure-keyvault
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.data'
|
||||||
|
- '.metadata.labels'
|
||||||
|
- '.metadata.annotations'
|
||||||
|
- kind: Secret
|
||||||
|
name: prod-atlantis-rabbitmq
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.data'
|
||||||
|
- '.metadata.labels'
|
||||||
|
- '.metadata.annotations'
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
# automated:
|
||||||
|
# prune: true
|
||||||
|
# selfHeal: false
|
||||||
@@ -17,7 +17,7 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
name: '{{ env }}-rabbitmq'
|
name: '{{ env }}-rabbitmq'
|
||||||
spec:
|
spec:
|
||||||
project: atlantis
|
project: aux
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: rabbitmq
|
namespace: rabbitmq
|
||||||
@@ -27,8 +27,8 @@ spec:
|
|||||||
chart: rabbitmq
|
chart: rabbitmq
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/charts/rabbitmq/values-{{ env }}.yaml
|
- $values/values/rabbitmq/values-{{ env }}.yaml
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: main
|
||||||
path: charts/rabbitmq/{{ env }}
|
path: values/rabbitmq/{{ env }}
|
||||||
ref: values
|
ref: values
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: ApplicationSet
|
||||||
|
metadata:
|
||||||
|
name: redis
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
generators:
|
||||||
|
- list:
|
||||||
|
elements:
|
||||||
|
- cluster: https://kubernetes.default.svc
|
||||||
|
env: prod
|
||||||
|
- cluster: https://kubernetes.default.svc
|
||||||
|
env: staging
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: '{{ env }}-redis'
|
||||||
|
spec:
|
||||||
|
project: aux
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: redis
|
||||||
|
sources:
|
||||||
|
- repoURL: https://charts.bitnami.com/bitnami
|
||||||
|
targetRevision: 19.5.2
|
||||||
|
chart: redis
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/values/redis/values-{{ env }}.yaml
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
ref: values
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: main
|
||||||
|
path: values/redis/{{ env }}
|
||||||
|
ignoreDifferences:
|
||||||
|
- group: apps
|
||||||
|
kind: StatefulSet
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.spec.template.spec.containers[].resources.limits.cpu'
|
||||||
@@ -4,7 +4,7 @@ metadata:
|
|||||||
name: seq
|
name: seq
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
spec:
|
spec:
|
||||||
project: atlantis
|
project: aux
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: seq
|
namespace: seq
|
||||||
@@ -14,7 +14,7 @@ spec:
|
|||||||
chart: seq
|
chart: seq
|
||||||
helm:
|
helm:
|
||||||
valueFiles:
|
valueFiles:
|
||||||
- $values/charts/seq/values.yaml
|
- $values/values/seq/values.yaml
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: main
|
||||||
ref: values
|
ref: values
|
||||||
@@ -10,26 +10,26 @@ spec:
|
|||||||
elements:
|
elements:
|
||||||
- cluster: https://10.255.241.99:4443
|
- cluster: https://10.255.241.99:4443
|
||||||
env: prod
|
env: prod
|
||||||
hostname: sorcerer.srv.archive.oceanbox.io
|
hostname: sorcerer.data.oceanbox.io
|
||||||
autoSync: false
|
autoSync: false
|
||||||
prune: true
|
prune: true
|
||||||
- cluster: https://10.255.241.99:4443
|
# - cluster: https://10.255.241.99:4443
|
||||||
env: staging
|
# env: staging
|
||||||
hostname: sorcerer.beta.archive.oceanbox.io
|
# hostname: sorcerer.ekman.oceanbox.io
|
||||||
autoSync: true
|
# autoSync: true
|
||||||
prune: true
|
# prune: true
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: '{{ .env }}-sorcerer'
|
name: '{{ .env }}-sorcerer'
|
||||||
spec:
|
spec:
|
||||||
project: atlantis
|
project: atlantis
|
||||||
destination:
|
destination:
|
||||||
namespace: oceanbox
|
namespace: sorcerer
|
||||||
server: '{{ .cluster }}'
|
server: '{{ .cluster }}'
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: main
|
||||||
path: charts/sorcerer
|
path: values/sorcerer
|
||||||
plugin:
|
plugin:
|
||||||
name: kustomize-helm-with-rewrite
|
name: kustomize-helm-with-rewrite
|
||||||
parameters:
|
parameters:
|
||||||
@@ -43,4 +43,5 @@ spec:
|
|||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
automated:
|
||||||
prune: {{ .prune }}
|
prune: {{ .prune }}
|
||||||
|
selfHeal: false
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: staging-atlantis
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: staging-atlantis
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: atlantis
|
||||||
|
sources:
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: nixidy
|
||||||
|
ref: values
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: nixidy
|
||||||
|
path: values/atlantis
|
||||||
|
plugin:
|
||||||
|
name: kustomize-helm-with-rewrite
|
||||||
|
parameters:
|
||||||
|
- name: env
|
||||||
|
string: staging
|
||||||
|
- name: hostname
|
||||||
|
string: atlantis.beta.oceanbox.io
|
||||||
|
- repoURL: https://charts.bitnami.com/bitnami
|
||||||
|
targetRevision: 20.1.7
|
||||||
|
chart: redis
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/values/atlantis/staging/redis.yaml
|
||||||
|
ignoreDifferences:
|
||||||
|
- kind: Secret
|
||||||
|
name: azure-keyvault
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.data'
|
||||||
|
- '.metadata.labels'
|
||||||
|
- '.metadata.annotations'
|
||||||
|
- kind: Secret
|
||||||
|
name: staging-atlantis-rabbitmq
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.data'
|
||||||
|
- '.metadata.labels'
|
||||||
|
- '.metadata.annotations'
|
||||||
|
- kind: Secret
|
||||||
|
name: prod-archmeister-replication
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.data'
|
||||||
|
- '.metadata.labels'
|
||||||
|
- '.metadata.annotations'
|
||||||
|
- kind: Secret
|
||||||
|
name: prod-archmeister-ca
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.data'
|
||||||
|
- '.metadata.labels'
|
||||||
|
- '.metadata.annotations'
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: false
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: staging-openfga
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: openfga
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: aux
|
||||||
|
# ignoreDifferences:
|
||||||
|
# - group: apps
|
||||||
|
# kind: StatefulSet
|
||||||
|
# jsonPointers:
|
||||||
|
# - /spec/persistentVolumeClaimRetentionPolicy
|
||||||
|
syncPolicy:
|
||||||
|
managedNamespaceMetadata:
|
||||||
|
labels:
|
||||||
|
component: aux
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
sources:
|
||||||
|
- repoURL: https://openfga.github.io/helm-charts
|
||||||
|
targetRevision: 0.2.19
|
||||||
|
chart: openfga
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/values/openfga/values-staging.yaml
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: nixidy
|
||||||
|
ref: values
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: staging-sorcerer
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: staging-sorcerer
|
||||||
|
server: https://10.255.241.99:4443
|
||||||
|
project: atlantis
|
||||||
|
sources:
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: nixidy
|
||||||
|
ref: values
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: nixidy
|
||||||
|
path: values/sorcerer
|
||||||
|
plugin:
|
||||||
|
name: kustomize-helm-with-rewrite
|
||||||
|
parameters:
|
||||||
|
- name: env
|
||||||
|
string: staging
|
||||||
|
- name: hostname
|
||||||
|
string: sorcerer.ekman.oceanbox.io
|
||||||
|
- repoURL: https://charts.bitnami.com/bitnami
|
||||||
|
targetRevision: 20.1.7
|
||||||
|
chart: redis
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/values/sorcerer/staging/redis.yaml
|
||||||
|
ignoreDifferences:
|
||||||
|
- kind: Secret
|
||||||
|
name: azure-keyvault
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.data'
|
||||||
|
- '.metadata.labels'
|
||||||
|
- '.metadata.annotations'
|
||||||
|
- kind: Secret
|
||||||
|
name: prod-atlantis-rabbitmq
|
||||||
|
jqPathExpressions:
|
||||||
|
- '.data'
|
||||||
|
- '.metadata.labels'
|
||||||
|
- '.metadata.annotations'
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
# automated:
|
||||||
|
# prune: true
|
||||||
|
# selfHeal: false
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: tempo
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: tempo
|
||||||
|
server: 'https://kubernetes.default.svc'
|
||||||
|
project: aux
|
||||||
|
syncPolicy:
|
||||||
|
# managedNamespaceMetadata:
|
||||||
|
# labels:
|
||||||
|
# component: aux
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
sources:
|
||||||
|
- repoURL: 'https://grafana.github.io/helm-charts'
|
||||||
|
targetRevision: 1.10.3
|
||||||
|
chart: tempo
|
||||||
|
helm:
|
||||||
|
values: |
|
||||||
|
tempo:
|
||||||
|
storage:
|
||||||
|
trace:
|
||||||
|
backend: s3
|
||||||
|
s3:
|
||||||
|
bucket: tempo-traces
|
||||||
|
endpoint: 10.255.241.30:30080
|
||||||
|
access_key: ${S3KEY}
|
||||||
|
secret_key: ${S3SECRET}
|
||||||
|
forcepathstyle: true
|
||||||
|
insecure: true
|
||||||
|
local:
|
||||||
|
path: /var/tempo/traces
|
||||||
|
wal:
|
||||||
|
path: /var/tempo/wal
|
||||||
|
metricsGenerator:
|
||||||
|
enabled: true
|
||||||
|
remoteWriteUrl: "http://prom-prometheus.prometheus:9090/api/v1/write"
|
||||||
|
extraArgs: { config.expand-env=true }
|
||||||
|
extraEnv:
|
||||||
|
- name: S3KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: tempo-s3
|
||||||
|
key: AWS_ACCESS_KEY_ID
|
||||||
|
- name: S3SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: tempo-s3
|
||||||
|
key: AWS_ACCESS_KEY_SECRET
|
||||||
|
tempoQuery:
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
ingressClassName: nginx
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-staging
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
atlantis.oceanbox.io/expose: internal
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
||||||
|
hosts:
|
||||||
|
- query.tempo.adm.oceanbox.io
|
||||||
|
tls:
|
||||||
|
- secretName: tempo-query-tls
|
||||||
|
hosts:
|
||||||
|
- query.tempo.adm.oceanbox.io
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: yolo-dl
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: aux
|
||||||
|
destination:
|
||||||
|
server: https://10.255.241.99:4443
|
||||||
|
namespace: oceanbox
|
||||||
|
sources:
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: main
|
||||||
|
path: charts/yolo-dl
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
managed-by: argocd.argoproj.io
|
|
||||||
labels:
|
|
||||||
argocd.argoproj.io/secret-type: cluster
|
|
||||||
name: staging-vcluster
|
|
||||||
namespace: argocd
|
|
||||||
stringData:
|
|
||||||
config: |
|
|
||||||
{"bearerToken":"eyJhbGciOiJSUzI1NiIsImtpZCI6IlVrakhGancyRzVMajNvQ3Jjb2FEU0kwRnlQeGsxc0Z3OThzLWV6akljVzAifQ.eyJhdWQiOlsiaHR0cHM6Ly9rdWJlcm5ldGVzLmRlZmF1bHQuc3ZjLmNsdXN0ZXIubG9jYWwiLCJodHRwczovL2t1YmVybmV0ZXMuZGVmYXVsdC5zdmMiLCJodHRwczovL2t1YmVybmV0ZXMuZGVmYXVsdCJdLCJleHAiOjIwMjM3MjEwMDksImlhdCI6MTcwODM2MTAwOSwiaXNzIjoiaHR0cHM6Ly9rdWJlcm5ldGVzLmRlZmF1bHQuc3ZjLmNsdXN0ZXIubG9jYWwiLCJrdWJlcm5ldGVzLmlvIjp7Im5hbWVzcGFjZSI6Imt1YmUtc3lzdGVtIiwic2VydmljZWFjY291bnQiOnsibmFtZSI6ImFkbWluIiwidWlkIjoiMDRlOGJlZDQtYWUwNy00MTBiLWI4NTYtNzg3MTkzNDAzYjcyIn19LCJuYmYiOjE3MDgzNjEwMDksInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDprdWJlLXN5c3RlbTphZG1pbiJ9.TJuQb9dpgOU6w42-WSJQmu39CZ7NyXWks6itH5qtUUkOvkwRwEtChV-53epM1HNOpK3mj2IWlJ7MaUb5AVFMx0alUJthBX_kL3mjdvUdn2MbPl-S0UFPclp8JoYeALjwtSFkuch1HqlMT7s-BbhXowo8AVFXDJE3rUJBrzzFqQ_e1IIf327qUfyo_TidwVoiya7q6cRU1n-XsP6sE0cgOxnScHXZ-DpysydjKCqXFYbnz9KYVagsOdK4LPb3x-Qb6Ae4PGJAfo3myzmiha3bTGO8HFF4WmMTWrlqeCXTPjER1vVJ_RQMY_LF4G8Of9zIX-8gvTZLcQAQ6BnlmY4QxQ","tlsClientConfig":{"insecure":true}}
|
|
||||||
name: staging-vcluster
|
|
||||||
server: https://staging-vcluster.staging-vcluster:443
|
|
||||||
type: Opaque
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
stringData:
|
||||||
|
config: |
|
||||||
|
{"bearerToken":"","tlsClientConfig":{"insecure":true}}
|
||||||
|
name: ekman
|
||||||
|
server: https://10.255.241.99:4443
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
argocd.argoproj.io/secret-type: cluster
|
||||||
|
name: cluster-10.255.241.99-4046803085
|
||||||
|
namespace: argocd
|
||||||
|
type: Opaque
|
||||||
|
|
||||||
+2
-5
@@ -1,10 +1,7 @@
|
|||||||
FROM alpine/k8s:1.28.3
|
FROM alpine/k8s:1.28.9
|
||||||
|
|
||||||
RUN mkdir -p /home/argocd/cmp-server/config/
|
RUN mkdir -p /home/argocd/cmp-server/config/
|
||||||
COPY plugin.yaml /home/argocd/cmp-server/config/
|
COPY plugin.yaml /home/argocd/cmp-server/config/
|
||||||
|
|
||||||
WORKDIR /plugin
|
WORKDIR /plugin
|
||||||
COPY init.sh get-values.sh generate.sh ./
|
COPY init-helm-repos.sh init.sh get-values.sh generate.sh ./
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
img=registry.gitlab.com/oceanbox/gitops-manifests/kustomize-helm-with-rewrite
|
img=registry.gitlab.com/oceanbox/manifests/kustomize-helm-with-rewrite
|
||||||
tag=${1:-latest}
|
tag=${1:-latest}
|
||||||
|
|
||||||
docker build -t $img:$tag .
|
docker build -t $img:$tag .
|
||||||
+7
-6
@@ -1,23 +1,24 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
export HOME=/tmp
|
export HOME=/helm-working-dir
|
||||||
|
|
||||||
env > /tmp/$ARGOCD_APP_NAME.env
|
env > /tmp/$ARGOCD_APP_NAME.env
|
||||||
|
|
||||||
echo "$ARGOCD_APP_PARAMETERS" | jq '.[] | select(.name == "helm-parameters") | .map' | yq -P -oy > parameters.yaml
|
echo "$ARGOCD_APP_PARAMETERS" | jq '.[] | select(.name == "helm-parameters") | .map' | yq -P -oy > parameters.yaml
|
||||||
cp parameters.yaml /tmp/$ARGOCD_APP_NAME-parameters.yaml
|
cp parameters.yaml /tmp/$ARGOCD_APP_NAME-parameters.yaml
|
||||||
|
|
||||||
if [ -d chart ]; then
|
if [ -n "$PARAM_CHART" -a "$PARAM_CHART" != "." ]; then
|
||||||
CHART=chart
|
|
||||||
elif [ -f chart -a "$PARAM_CHART" = "." ]; then
|
|
||||||
CHART=$(cat chart)
|
|
||||||
elif [ -n "$PARAM_CHART" ]; then
|
|
||||||
CHART=$PARAM_CHART
|
CHART=$PARAM_CHART
|
||||||
|
elif [ -d chart ]; then
|
||||||
|
CHART=chart
|
||||||
|
elif [ -f chart ]; then
|
||||||
|
CHART=$(cat chart)
|
||||||
else
|
else
|
||||||
CHART="."
|
CHART="."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -f chart/values.yaml ] && VALUES="-f chart/values.yaml"
|
[ -f chart/values.yaml ] && VALUES="-f chart/values.yaml"
|
||||||
|
[ -f values-chart.yaml ] && VALUES="$VALUES -f values-chart.yaml"
|
||||||
[ -f values.yaml ] && VALUES="$VALUES -f values.yaml"
|
[ -f values.yaml ] && VALUES="$VALUES -f values.yaml"
|
||||||
[ -f values-$PARAM_ENV.yaml ] && VALUES="$VALUES -f values-$PARAM_ENV.yaml"
|
[ -f values-$PARAM_ENV.yaml ] && VALUES="$VALUES -f values-$PARAM_ENV.yaml"
|
||||||
VALUES="$VALUES -f parameters.yaml"
|
VALUES="$VALUES -f parameters.yaml"
|
||||||
+2
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
if [ -f values.yaml ]; then
|
if [ -f values.yaml ]; then
|
||||||
VALUES="values.yaml"
|
VALUES="values.yaml"
|
||||||
|
elif [ -f values-chart.yaml ]; then
|
||||||
|
VALUES="values-chart.yaml"
|
||||||
elif [ -f chart/values.yaml ]; then
|
elif [ -f chart/values.yaml ]; then
|
||||||
VALUES="chart/values.yaml"
|
VALUES="chart/values.yaml"
|
||||||
else
|
else
|
||||||
+5
-2
@@ -1,12 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
export HOME=/tmp
|
export HOME=/helm-working-dir
|
||||||
|
|
||||||
|
helm repo add --username argocd-helm --password "$OCEANBOX_HELM_ACCESS_TOKEN" oceanbox \
|
||||||
|
https://gitlab.com/api/v4/projects/54396343/packages/helm/stable
|
||||||
|
|
||||||
helm repo add bitnami https://charts.bitnami.com/bitnami
|
helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||||
helm repo add cerbos https://download.cerbos.dev/helm-charts
|
helm repo add cerbos https://download.cerbos.dev/helm-charts
|
||||||
helm repo add dapr https://dapr.github.io/helm-charts/
|
helm repo add dapr https://dapr.github.io/helm-charts/
|
||||||
helm repo add ncsa https://opensource.ncsa.illinois.edu/charts
|
helm repo add ncsa https://opensource.ncsa.illinois.edu/charts
|
||||||
helm repo add dex https://charts.dexidp.io
|
helm repo add dex https://charts.dexidp.io
|
||||||
|
helm repo add openfga https://openfga.github.io/helm-charts
|
||||||
|
|
||||||
helm repo update
|
helm repo update
|
||||||
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export HOME=/helm-working-dir
|
||||||
|
|
||||||
|
helm repo update oceanbox
|
||||||
|
|
||||||
|
if [ -n "$PARAM_CHART" -a "$PARAM_CHART" != "." ]; then
|
||||||
|
helm show values $PARAM_CHART > values-chart.yaml
|
||||||
|
elif [ -f chart ]; then
|
||||||
|
CHART=$(cat chart)
|
||||||
|
helm show values $CHART > values-chart.yaml
|
||||||
|
fi
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
managed-by: argocd.argoproj.io
|
||||||
|
labels:
|
||||||
|
argocd.argoproj.io/secret-type: cluster
|
||||||
|
name: cluster-staging-vcluster
|
||||||
|
namespace: argocd
|
||||||
|
stringData:
|
||||||
|
config: |
|
||||||
|
{"bearerToken":"","tlsClientConfig":{"insecure":true}}
|
||||||
|
name: staging-vcluster
|
||||||
|
server: https://staging-vcluster.staging-vcluster
|
||||||
|
type: Opaque
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ description: Archive management for Atlantis
|
|||||||
type: application
|
type: application
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
version: v6.17.0
|
version: v6.20.0
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application.
|
# incremented each time you make changes to the application.
|
||||||
appVersion: v6.17.0
|
appVersion: v6.20.0
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
{
|
|
||||||
"connString": "Username=app;Password=secret;Host=prod-archmeister-rw;Port=5432;Database=app;Pooling=true;",
|
|
||||||
"oidc": {
|
|
||||||
"issuer": "https://idp.srv.oceanbox.io/dex",
|
|
||||||
"authorization_endpoint": "https://idp.srv.oceanbox.io/dex/auth",
|
|
||||||
"token_endpoint": "https://idp.srv.oceanbox.io/dex/token",
|
|
||||||
"jwks_uri": "https://idp.srv.oceanbox.io/dex/keys",
|
|
||||||
"userinfo_endpoint": "https://idp.srv.oceanbox.io/dex/userinfo",
|
|
||||||
"device_authorization_endpoint": "https://idp.srv.oceanbox.io/dex/device/code",
|
|
||||||
"clientId": "archmeister",
|
|
||||||
"clientSecret": "",
|
|
||||||
"scopes": [
|
|
||||||
"openid",
|
|
||||||
"email",
|
|
||||||
"offline_access",
|
|
||||||
"profile"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"sso": {
|
|
||||||
"cookieDomain": ".oceanbox.io",
|
|
||||||
"signedOutRedirectUri": "https://idp.srv.oceanbox.io/dex/static/logout.html",
|
|
||||||
"redis": "prod-redis-master.redis.svc,user=default,password=secret",
|
|
||||||
"appDomain": "atlantis",
|
|
||||||
"dataProtectionKeys": "DataProtection-Keys"
|
|
||||||
},
|
|
||||||
"allowedOrigins": [
|
|
||||||
"https://maps.oceanbox.io",
|
|
||||||
"https://atlantis.srv.oceanbox.io",
|
|
||||||
"https://maps.relic.oceanbox.io",
|
|
||||||
"https://sorcerer.data.oceanbox.io",
|
|
||||||
"https://sorcerer.hpc.oceanbox.io",
|
|
||||||
"https://jonas-sorcerer.ekman.oceanbox.io",
|
|
||||||
"https://beta.sorcerer.ekman.oceanbox.io",
|
|
||||||
"https://simkir-sorcerer.ekman.oceanbox.io",
|
|
||||||
"https://stig-sorcerer.ekman.oceanbox.io",
|
|
||||||
"https://atlantis.beta.oceanbox.io",
|
|
||||||
"https://jonas-atlantis.beta.oceanbox.io",
|
|
||||||
"https://simkir-atlantis.beta.oceanbox.io",
|
|
||||||
"https://stig-atlantis.beta.oceanbox.io",
|
|
||||||
"https://a.local.oceanbox.io:8080"
|
|
||||||
],
|
|
||||||
"logService" : "https://seq.oceanbox.io",
|
|
||||||
"logApiKey": "",
|
|
||||||
"cliUsers": [
|
|
||||||
"admin:en-to-tre-fire"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
{
|
|
||||||
"connString": "Username=app;Password=secret;Host=staging-archmeister-rw;Port=5432;Database=app;Pooling=true;",
|
|
||||||
"oidc": {
|
|
||||||
"issuer": "https://idp.srv.oceanbox.io/dex",
|
|
||||||
"authorization_endpoint": "https://idp.srv.oceanbox.io/dex/auth",
|
|
||||||
"token_endpoint": "https://idp.srv.oceanbox.io/dex/token",
|
|
||||||
"jwks_uri": "https://idp.srv.oceanbox.io/dex/keys",
|
|
||||||
"userinfo_endpoint": "https://idp.srv.oceanbox.io/dex/userinfo",
|
|
||||||
"device_authorization_endpoint": "https://idp.srv.oceanbox.io/dex/device/code",
|
|
||||||
"clientId": "archmeister_dev",
|
|
||||||
"clientSecret": "",
|
|
||||||
"scopes": [
|
|
||||||
"openid",
|
|
||||||
"email",
|
|
||||||
"offline_access",
|
|
||||||
"profile"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"sso": {
|
|
||||||
"cookieDomain": ".oceanbox.io",
|
|
||||||
"signedOutRedirectUri": "https://idp.srv.oceanbox.io/dex/static/logout.html",
|
|
||||||
"redis": "staging-redis-master.redis.svc,user=default,password=secret",
|
|
||||||
"appDomain": "atlantis",
|
|
||||||
"dataProtectionKeys": "DataProtection-Keys"
|
|
||||||
},
|
|
||||||
"allowedOrigins": [
|
|
||||||
"https://atlantis.beta.oceanbox.io",
|
|
||||||
"https://sorcerer.beta.data.oceanbox.io",
|
|
||||||
"https://sorcerer.hpc.oceanbox.io",
|
|
||||||
"https://s.local.oceanbox.io:8080",
|
|
||||||
"https://maps.oceanbox.io",
|
|
||||||
"https://jonas-atlantis.beta.oceanbox.io",
|
|
||||||
"https://simkir-atlantis.beta.oceanbox.io",
|
|
||||||
"https://stig-atlantis.beta.oceanbox.io",
|
|
||||||
"https://atlantis.local.oceanbox.io:8080"
|
|
||||||
],
|
|
||||||
"logService" : "https://seq.oceanbox.io",
|
|
||||||
"logApiKey": "",
|
|
||||||
"cliUsers": [
|
|
||||||
"admin:en-to-tre-fire"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
+2
-2
@@ -84,8 +84,8 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: appsettings
|
- name: appsettings
|
||||||
secret:
|
configMap:
|
||||||
secretName: {{ template "Archmeister.fullname" . }}-appsettings
|
name: {{ template "Archmeister.fullname" . }}-appsettings
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
ingress:
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
|
||||||
hosts:
|
|
||||||
- host: archmeister.srv.oceanbox.io
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- archmeister.srv.oceanbox.io
|
|
||||||
secretName: prod-archmeister-tls
|
|
||||||
|
|
||||||
cluster:
|
|
||||||
backupEnabled: true
|
|
||||||
backupRetention: 60d
|
|
||||||
instances: 2
|
|
||||||
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 1Gi
|
|
||||||
requests:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 1Gi
|
|
||||||
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
image:
|
|
||||||
tag: 04ca077a-debug
|
|
||||||
|
|
||||||
ingress:
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
|
||||||
atlantis.oceanbox.io/expose: global
|
|
||||||
hosts:
|
|
||||||
- host: archmeister.beta.oceanbox.io
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- archmeister.beta.oceanbox.io
|
|
||||||
secretName: staging-archmeister-tls
|
|
||||||
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 1Gi
|
|
||||||
requests:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 1Gi
|
|
||||||
|
|
||||||
@@ -5,12 +5,23 @@
|
|||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
image:
|
image:
|
||||||
repository: registry.gitlab.com/oceanbox/oceanbox.dataagent
|
repository: registry.gitlab.com/oceanbox/oceanbox.dataagent
|
||||||
tag: v6.17.0
|
tag: v6.20.0
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
init:
|
init:
|
||||||
enabled: false
|
enabled: false
|
||||||
image: ubuntu:rolling
|
image: ubuntu:rolling
|
||||||
command: ["/bin/sh", "-c", "true"]
|
command: ["/bin/sh", "-c", "true"]
|
||||||
|
env:
|
||||||
|
- name: LOG_LEVEL
|
||||||
|
value: "3"
|
||||||
|
- name: APP_NAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
|
- name: APP_NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: gitlab-pull-secret
|
- name: gitlab-pull-secret
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
@@ -58,7 +69,6 @@ persistence:
|
|||||||
# size: 10G
|
# size: 10G
|
||||||
# storageClass: ""
|
# storageClass: ""
|
||||||
# accessMode: ReadWriteMany
|
# accessMode: ReadWriteMany
|
||||||
|
|
||||||
cluster:
|
cluster:
|
||||||
enabled: true
|
enabled: true
|
||||||
instances: 1
|
instances: 1
|
||||||
@@ -74,7 +84,6 @@ cluster:
|
|||||||
- CREATE EXTENSION fuzzystrmatch;
|
- CREATE EXTENSION fuzzystrmatch;
|
||||||
- CREATE EXTENSION postgis_tiger_geocoder;
|
- CREATE EXTENSION postgis_tiger_geocoder;
|
||||||
- ALTER USER app WITH SUPERUSER;
|
- ALTER USER app WITH SUPERUSER;
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
# choice for the user. This also increases chances charts run on environments with little
|
# choice for the user. This also increases chances charts run on environments with little
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: atlantis
|
||||||
|
description: Atlantis map and simulation service
|
||||||
|
type: application
|
||||||
|
version: v2.87.1
|
||||||
|
appVersion: v2.87.1
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
apiVersion: v2
|
|
||||||
name: atlantis
|
|
||||||
description: Atlantis map and simulation service
|
|
||||||
|
|
||||||
# A chart can be either an 'application' or a 'library' chart.
|
|
||||||
#
|
|
||||||
# Application charts are a collection of templates that can be packaged into versioned archives
|
|
||||||
# to be deployed.
|
|
||||||
#
|
|
||||||
# Library charts provide useful utilities or functions for the chart developer. They're included as
|
|
||||||
# a dependency of application charts to inject those utilities and functions into the rendering
|
|
||||||
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
|
||||||
type: application
|
|
||||||
|
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
|
||||||
# to the chart and its templates, including the app version.
|
|
||||||
version: 1.0.1
|
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
|
||||||
# incremented each time you make changes to the application.
|
|
||||||
appVersion: 0.0.0
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
{{- if .Values.cluster.enabled -}}
|
|
||||||
apiVersion: postgresql.cnpg.io/v1
|
|
||||||
kind: Cluster
|
|
||||||
metadata:
|
|
||||||
name: {{ include "Atlantis.fullname" . }}
|
|
||||||
annotations:
|
|
||||||
linkerd.io/inject: disabled
|
|
||||||
labels:
|
|
||||||
{{- include "Atlantis.labels" . | nindent 4 }}
|
|
||||||
spec:
|
|
||||||
instances: {{ .Values.cluster.instances | default "2" }}
|
|
||||||
|
|
||||||
# Example of rolling update strategy:
|
|
||||||
# - unsupervised: automated update of the primary once all
|
|
||||||
# replicas have been upgraded (default)
|
|
||||||
# - supervised: requires manual supervision to perform
|
|
||||||
# the switchover of the primary
|
|
||||||
primaryUpdateStrategy: unsupervised
|
|
||||||
backup:
|
|
||||||
retentionPolicy: {{ .Values.cluster.backupRetention | default "60d" }}
|
|
||||||
|
|
||||||
storage:
|
|
||||||
size: {{ .Values.cluster.size | default "5Gi" }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
apiVersion: dapr.io/v1alpha1
|
|
||||||
kind: Subscription
|
|
||||||
metadata:
|
|
||||||
name: hipster-events
|
|
||||||
spec:
|
|
||||||
topic: hipster
|
|
||||||
route: /hipster-events
|
|
||||||
pubsubname: pubsub
|
|
||||||
scopes:
|
|
||||||
- atlantis
|
|
||||||
---
|
|
||||||
apiVersion: dapr.io/v1alpha1
|
|
||||||
kind: Subscription
|
|
||||||
metadata:
|
|
||||||
name: inbox-events
|
|
||||||
spec:
|
|
||||||
topic: inbox
|
|
||||||
route: /inbox-events
|
|
||||||
pubsubname: pubsub
|
|
||||||
scopes:
|
|
||||||
- atlantis
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
{
|
|
||||||
"oidc": {
|
|
||||||
"issuer": "https://idp.srv.oceanbox.io/dex",
|
|
||||||
"authorization_endpoint": "https://idp.srv.oceanbox.io/dex/auth",
|
|
||||||
"token_endpoint": "https://idp.srv.oceanbox.io/dex/token",
|
|
||||||
"jwks_uri": "https://idp.srv.oceanbox.io/dex/keys",
|
|
||||||
"userinfo_endpoint": "https://idp.srv.oceanbox.io/dex/userinfo",
|
|
||||||
"device_authorization_endpoint": "https://idp.srv.oceanbox.io/dex/device/code",
|
|
||||||
"clientId": "atlantis",
|
|
||||||
"clientSecret": "",
|
|
||||||
"scopes": [
|
|
||||||
"openid",
|
|
||||||
"email",
|
|
||||||
"offline_access",
|
|
||||||
"profile"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"sso": {
|
|
||||||
"cookieDomain": ".oceanbox.io",
|
|
||||||
"signedOutRedirectUri": "https://idp.srv.oceanbox.io/dex/static/logout.html",
|
|
||||||
"redis": "prod-redis-master.redis.svc,user=default,password=secret",
|
|
||||||
"appDomain": "atlantis",
|
|
||||||
"dataProtectionKeys": "DataProtection-Keys"
|
|
||||||
},
|
|
||||||
"archmeister" : "https://archmeister.srv.oceanbox.io",
|
|
||||||
"sorcerer" : "https://sorcerer.data.oceanbox.io",
|
|
||||||
"allowedOrigins": [
|
|
||||||
"http://maps.oceanbox.io",
|
|
||||||
"https://maps.oceanbox.io",
|
|
||||||
"http://atlantis.srv.oceanbox.io",
|
|
||||||
"https://atlantis.srv.oceanbox.io"
|
|
||||||
],
|
|
||||||
"logService" : "https://seq.oceanbox.io",
|
|
||||||
"logApiKey": ""
|
|
||||||
}
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
- op: add
|
|
||||||
path: /spec/template/metadata/annotations
|
|
||||||
value:
|
|
||||||
dapr.io/enabled: "true"
|
|
||||||
dapr.io/app-id: "atlantis"
|
|
||||||
dapr.io/app-port: "8000"
|
|
||||||
dapr.io/config: "tracing"
|
|
||||||
- op: replace
|
|
||||||
path: /spec/template/spec/containers/0/env/0
|
|
||||||
value:
|
|
||||||
name: LOG_LEVEL
|
|
||||||
value: "4"
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: BARENTSWATCH_SECRET
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: prod-atlantis-barentswatch
|
|
||||||
key: secret
|
|
||||||
optional: true
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: BARENTSWATCH_CLIENT_ID
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: prod-atlantis-barentswatch
|
|
||||||
key: client-id
|
|
||||||
optional: true
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: REDIS_USER
|
|
||||||
value: default
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: REDIS_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: prod-redis
|
|
||||||
key: redis-password
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/envFrom/-
|
|
||||||
value:
|
|
||||||
secretRef:
|
|
||||||
name: prod-atlantis-env
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
"oidc": {
|
|
||||||
"issuer": "https://idp.srv.oceanbox.io/dex",
|
|
||||||
"authorization_endpoint": "https://idp.srv.oceanbox.io/dex/auth",
|
|
||||||
"token_endpoint": "https://idp.srv.oceanbox.io/dex/token",
|
|
||||||
"jwks_uri": "https://idp.srv.oceanbox.io/dex/keys",
|
|
||||||
"userinfo_endpoint": "https://idp.srv.oceanbox.io/dex/userinfo",
|
|
||||||
"device_authorization_endpoint": "https://idp.srv.oceanbox.io/dex/device/code",
|
|
||||||
"clientId": "atlantis_dev",
|
|
||||||
"clientSecret": "",
|
|
||||||
"scopes": [
|
|
||||||
"openid",
|
|
||||||
"email",
|
|
||||||
"offline_access",
|
|
||||||
"profile"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"sso": {
|
|
||||||
"cookieDomain": ".oceanbox.io",
|
|
||||||
"signedOutRedirectUri": "https://idp.srv.oceanbox.io/dex/static/logout.html",
|
|
||||||
"redis": "staging-redis-master.redis.svc,user=default,password=secret",
|
|
||||||
"appDomain": "atlantis",
|
|
||||||
"dataProtectionKeys": "DataProtection-Keys"
|
|
||||||
},
|
|
||||||
"archmeister" : "https://archmeister.beta.oceanbox.io",
|
|
||||||
"sorcerer" : "https://sorcerer.beta.data.oceanbox.io",
|
|
||||||
"allowedOrigins": [
|
|
||||||
"http://atlantis.beta.oceanbox.io",
|
|
||||||
"https://atlantis.beta.oceanbox.io"
|
|
||||||
],
|
|
||||||
"logService" : "https://seq.oceanbox.io",
|
|
||||||
"logApiKey": ""
|
|
||||||
}
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
- op: add
|
|
||||||
path: /spec/template/metadata/annotations
|
|
||||||
value:
|
|
||||||
dapr.io/enabled: "true"
|
|
||||||
dapr.io/app-id: "atlantis"
|
|
||||||
dapr.io/app-port: "8000"
|
|
||||||
dapr.io/config: "tracing"
|
|
||||||
- op: replace
|
|
||||||
path: /spec/template/spec/containers/0/env/0
|
|
||||||
value:
|
|
||||||
name: LOG_LEVEL
|
|
||||||
value: "4"
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: BARENTSWATCH_SECRET
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: staging-atlantis-barentswatch
|
|
||||||
key: secret
|
|
||||||
optional: true
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: BARENTSWATCH_CLIENT_ID
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: staging-atlantis-barentswatch
|
|
||||||
key: client-id
|
|
||||||
optional: true
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: REDIS_USER
|
|
||||||
value: default
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/env/-
|
|
||||||
value:
|
|
||||||
name: REDIS_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: staging-redis
|
|
||||||
key: redis-password
|
|
||||||
- op: add
|
|
||||||
path: /spec/template/spec/containers/0/envFrom/-
|
|
||||||
value:
|
|
||||||
secretRef:
|
|
||||||
name: staging-atlantis-env
|
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
{{- if .Values.cluster.enabled -}}
|
||||||
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
|
kind: Cluster
|
||||||
|
metadata:
|
||||||
|
name: {{ include "Atlantis.fullname" . }}-db
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
annotations:
|
||||||
|
linkerd.io/inject: disabled
|
||||||
|
labels:
|
||||||
|
{{- include "Atlantis.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
instances: {{ .Values.cluster.instances | default "1" }}
|
||||||
|
imageName: ghcr.io/cloudnative-pg/postgis:15-3.3
|
||||||
|
# Example of rolling update strategy:
|
||||||
|
# - unsupervised: automated update of the primary once all
|
||||||
|
# replicas have been upgraded (default)
|
||||||
|
# - supervised: requires manual supervision to perform
|
||||||
|
# the switchover of the primary
|
||||||
|
primaryUpdateStrategy: unsupervised
|
||||||
|
backup:
|
||||||
|
retentionPolicy: {{ .Values.cluster.backupRetention | default "60d" }}
|
||||||
|
storage:
|
||||||
|
size: {{ .Values.cluster.size | default "5Gi" }}
|
||||||
|
{{- with .Values.cluster.bootstrap }}
|
||||||
|
bootstrap:
|
||||||
|
{{- if .enabled }}
|
||||||
|
pg_basebackup:
|
||||||
|
source: archmaester
|
||||||
|
externalClusters:
|
||||||
|
- name: archmaester
|
||||||
|
connectionParameters:
|
||||||
|
host: {{ .source.db }}-rw.{{ .source.namespace }}
|
||||||
|
user: streaming_replica
|
||||||
|
sslmode: verify-full
|
||||||
|
sslKey:
|
||||||
|
name: {{ .source.db }}-replication
|
||||||
|
key: tls.key
|
||||||
|
sslCert:
|
||||||
|
name: {{ .source.db }}-replication
|
||||||
|
key: tls.crt
|
||||||
|
sslRootCert:
|
||||||
|
name: {{ .source.db }}-ca
|
||||||
|
key: ca.crt
|
||||||
|
{{- else }}
|
||||||
|
initdb:
|
||||||
|
postInitTemplateSQL:
|
||||||
|
- CREATE EXTENSION postgis;
|
||||||
|
- CREATE EXTENSION postgis_topology;
|
||||||
|
- CREATE EXTENSION fuzzystrmatch;
|
||||||
|
- CREATE EXTENSION postgis_tiger_geocoder;
|
||||||
|
- ALTER USER app WITH SUPERUSER;
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
+3
-2
@@ -2,6 +2,7 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "Atlantis.fullname" . }}
|
name: {{ include "Atlantis.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "Atlantis.labels" . | nindent 4 }}
|
{{- include "Atlantis.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
@@ -83,8 +84,8 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: appsettings
|
- name: appsettings
|
||||||
secret:
|
configMap:
|
||||||
secretName: {{ template "Atlantis.fullname" . }}-appsettings
|
name: {{ template "Atlantis.fullname" . }}-appsettings
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
@@ -3,6 +3,7 @@ apiVersion: autoscaling/v2beta1
|
|||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "Atlantis.fullname" . }}
|
name: {{ include "Atlantis.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "Atlantis.labels" . | nindent 4 }}
|
{{- include "Atlantis.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
{{- if .Values.ingress.enabled -}}
|
||||||
|
{{- $fullName := include "Atlantis.fullname" . -}}
|
||||||
|
{{- $svcPort := .Values.service.port -}}
|
||||||
|
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
|
||||||
|
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
|
||||||
|
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
{{- else -}}
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
{{- end }}
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: {{ $fullName }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
{{- include "Atlantis.labels" . | nindent 4 }}
|
||||||
|
{{- with .Values.ingress.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
|
||||||
|
ingressClassName: {{ .Values.ingress.className }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.ingress.tls }}
|
||||||
|
tls:
|
||||||
|
{{- range .Values.ingress.tls }}
|
||||||
|
- hosts:
|
||||||
|
{{- range .hosts }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
secretName: {{ .secretName }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
rules:
|
||||||
|
{{- range .Values.ingress.hosts }}
|
||||||
|
- host: {{ .host | quote }}
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
{{- range .paths }}
|
||||||
|
- path: {{ .path }}
|
||||||
|
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
|
||||||
|
pathType: {{ .pathType }}
|
||||||
|
{{- end }}
|
||||||
|
backend:
|
||||||
|
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
|
service:
|
||||||
|
name: {{ $fullName }}
|
||||||
|
port:
|
||||||
|
number: {{ $svcPort }}
|
||||||
|
{{- else }}
|
||||||
|
serviceName: {{ .serviceName | default $fullName }}
|
||||||
|
servicePort: {{ .servicePort | default $svcPort }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
+3
-2
@@ -15,11 +15,12 @@ apiVersion: extensions/v1beta1
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $fullName }}
|
name: {{ $fullName }}-internal
|
||||||
labels:
|
labels:
|
||||||
{{- include "Atlantis.labels" . | nindent 4 }}
|
{{- include "Atlantis.labels" . | nindent 4 }}
|
||||||
{{- with .Values.ingress.annotations }}
|
{{- with .Values.ingress.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
|
atlantis.oceanbox.io/expose: internal
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
@@ -41,7 +42,7 @@ spec:
|
|||||||
- host: {{ .host | quote }}
|
- host: {{ .host | quote }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
{{- range .paths }}
|
{{- range .internal }}
|
||||||
- path: {{ .path }}
|
- path: {{ .path }}
|
||||||
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
|
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
|
||||||
pathType: {{ .pathType }}
|
pathType: {{ .pathType }}
|
||||||
@@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "Atlantis.fullname" . }}
|
name: {{ template "Atlantis.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- with .Values.persistence.annotations }}
|
{{- with .Values.persistence.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{ toYaml . | indent 4 }}
|
{{ toYaml . | indent 4 }}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
{{- if not .Values.cluster.enabled }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kyverno/clone: "true"
|
||||||
|
name: {{ include "Atlantis.fullname" . }}-db-superuser
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
type: kubernetes.io/basic-auth
|
||||||
|
data:
|
||||||
|
username:
|
||||||
|
password:
|
||||||
|
{{- else }}
|
||||||
|
{{- if .Values.cluster.bootstrap.enabled }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kyverno/clone: "true"
|
||||||
|
name: {{ .Values.cluster.bootstrap.source.db }}-replication
|
||||||
|
type: kubernetes.io/tls
|
||||||
|
data:
|
||||||
|
tls.crt: ""
|
||||||
|
tls.key: ""
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
type: Opaque
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kyverno/clone: "true"
|
||||||
|
name: {{ .Values.cluster.bootstrap.source.db }}-ca
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
data:
|
||||||
|
ca.crt: ""
|
||||||
|
ca.key: ""
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -2,6 +2,7 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "Atlantis.fullname" . }}
|
name: {{ include "Atlantis.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "Atlantis.labels" . | nindent 4 }}
|
{{- include "Atlantis.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
+1
@@ -3,6 +3,7 @@ apiVersion: v1
|
|||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "Atlantis.serviceAccountName" . }}
|
name: {{ include "Atlantis.serviceAccountName" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "Atlantis.labels" . | nindent 4 }}
|
{{- include "Atlantis.labels" . | nindent 4 }}
|
||||||
{{- with .Values.serviceAccount.annotations }}
|
{{- with .Values.serviceAccount.annotations }}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{{- if .Values.serviceMonitor.enabled }}
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: {{ include "Atlantis.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
spec:
|
||||||
|
endpoints:
|
||||||
|
- honorLabels: false
|
||||||
|
path: /metrics
|
||||||
|
port: http
|
||||||
|
jobLabel: {{ .Values.serviceMonitor.label | default (include "Atlantis.fullname" .) }}
|
||||||
|
namespaceSelector:
|
||||||
|
matchNames:
|
||||||
|
- {{ .Release.Namespace }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/instance: {{ include "Atlantis.fullname" . }}
|
||||||
|
app.kubernetes.io/name: atlantis
|
||||||
|
{{- end }}
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
ingress:
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
|
||||||
nginx.ingress.kubernetes.io/proxy-buffer-size: 128k
|
|
||||||
hosts:
|
|
||||||
- host: atlantis.srv.oceanbox.io
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
- host: maps.srv.oceanbox.io
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- atlantis.srv.oceanbox.io
|
|
||||||
- maps.srv.oceanbox.io
|
|
||||||
secretName: atlantis-tls
|
|
||||||
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 250m
|
|
||||||
memory: 1Gi
|
|
||||||
requests:
|
|
||||||
cpu: 250m
|
|
||||||
memory: 1Gi
|
|
||||||
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
image:
|
|
||||||
tag: a41b6229-debug
|
|
||||||
|
|
||||||
ingress:
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
|
||||||
nginx.ingress.kubernetes.io/proxy-buffer-size: 128k
|
|
||||||
# atlantis.oceanbox.io/expose: internal
|
|
||||||
hosts:
|
|
||||||
- host: atlantis.beta.oceanbox.io
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- atlantis.beta.oceanbox.io
|
|
||||||
secretName: staging-atlantis-tls
|
|
||||||
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 250m
|
|
||||||
memory: 1Gi
|
|
||||||
requests:
|
|
||||||
cpu: 250m
|
|
||||||
memory: 1Gi
|
|
||||||
|
|
||||||
@@ -6,7 +6,7 @@ replicaCount: 1
|
|||||||
|
|
||||||
image:
|
image:
|
||||||
repository: registry.gitlab.com/oceanbox/atlantis
|
repository: registry.gitlab.com/oceanbox/atlantis
|
||||||
tag: v2.77.5
|
tag: v2.87.1
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
init:
|
init:
|
||||||
@@ -17,11 +17,20 @@ init:
|
|||||||
env:
|
env:
|
||||||
- name: LOG_LEVEL
|
- name: LOG_LEVEL
|
||||||
value: "3"
|
value: "3"
|
||||||
|
- name: APP_NAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
|
- name: APP_NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: gitlab-pull-secret
|
- name: gitlab-pull-secret
|
||||||
|
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
|
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
@@ -50,7 +59,7 @@ service:
|
|||||||
port: 8085
|
port: 8085
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: false
|
||||||
className: "nginx"
|
className: "nginx"
|
||||||
annotations:
|
annotations:
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
@@ -60,6 +69,13 @@ ingress:
|
|||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
|
- path: /events
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
serviceName: main-ingress-nginx-defaultbackend.ingress-nginx
|
||||||
|
servicePort: 80
|
||||||
|
internal:
|
||||||
|
- path: /internal
|
||||||
|
pathType: ImplementationSpecific
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- atlantis.srv.oceanbox.io
|
- atlantis.srv.oceanbox.io
|
||||||
@@ -72,11 +88,16 @@ persistence:
|
|||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
|
|
||||||
cluster:
|
cluster:
|
||||||
enabled: false
|
enabled: true
|
||||||
instances: 2
|
instances: 1
|
||||||
backupEnabled: true
|
backupEnabled: true
|
||||||
backupRetention: 60d
|
backupRetention: 60d
|
||||||
size: 5Gi
|
size: 5Gi
|
||||||
|
bootstrap:
|
||||||
|
enabled: true
|
||||||
|
source:
|
||||||
|
db: prod-archmeister
|
||||||
|
namespace: atlantis
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
@@ -97,8 +118,9 @@ autoscaling:
|
|||||||
targetCPUUtilizationPercentage: 80
|
targetCPUUtilizationPercentage: 80
|
||||||
# targetMemoryUtilizationPercentage: 80
|
# targetMemoryUtilizationPercentage: 80
|
||||||
|
|
||||||
|
serviceMonitor:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user