mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
Compare commits
570
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e4fe657bd9 | ||
|
|
31473fbe10 | ||
|
|
618235bd72 | ||
|
|
49e1e56aa1 | ||
|
|
ad6a4ef9b2 | ||
|
|
46602a229c | ||
|
|
b0290dc33d | ||
|
|
914810fd13 | ||
|
|
2c6ed03823 | ||
|
|
6a97079454 | ||
|
|
1c879148d8 | ||
|
|
0347212b64 | ||
|
|
f68f55c7e9 | ||
|
|
a5bb5e04da | ||
|
|
7f1f826468 | ||
|
|
47b9db0215 | ||
|
|
ba8d261591 | ||
|
|
5f1d2a9745 | ||
|
|
b27ba8e984 | ||
|
|
7324cb7171 | ||
|
|
5a7d226d93 | ||
|
|
2b3385e201 | ||
|
|
828228dbb0 | ||
|
|
90c128e7a6 | ||
|
|
a72c442945 | ||
|
|
f52134f9a1 | ||
|
|
abd5102819 | ||
|
|
da728750be | ||
|
|
2f1b3d68d7 | ||
|
|
87927d068b | ||
|
|
9a115068af | ||
|
|
748bf5e4d3 | ||
|
|
c602f53a6e | ||
|
|
d2be5822a1 | ||
|
|
96632a34b1 | ||
|
|
11f37cd9f2 | ||
|
|
34c6249886 | ||
|
|
5d8a391b95 | ||
|
|
06a3140142 | ||
|
|
29d1701c34 | ||
|
|
78069605a6 | ||
|
|
549fb110d7 | ||
|
|
f0e987dc9d | ||
|
|
f598d8e84c | ||
|
|
d6de561650 | ||
|
|
0cd3483158 | ||
|
|
db36e89e7b | ||
|
|
d8e8e11519 | ||
|
|
13103c32d8 | ||
|
|
77397be070 | ||
|
|
958d88cb85 | ||
|
|
c26299b05a | ||
|
|
f894e7b7a5 | ||
|
|
53e5c84523 | ||
|
|
cdc543aa9e | ||
|
|
e653de54b4 | ||
|
|
c79e73aa2a | ||
|
|
e71d681fee | ||
|
|
7c4d98446b | ||
|
|
f27e195354 | ||
|
|
fa730abec7 | ||
|
|
f7df4856e5 | ||
|
|
e9c2d5d4f8 | ||
|
|
6e5e6df326 | ||
|
|
f3b1748eb7 | ||
|
|
dcabb71a28 | ||
|
|
1023971dbc | ||
|
|
33ecc8442e | ||
|
|
81aeec74a4 | ||
|
|
60f11f6510 | ||
|
|
61c4f01e05 | ||
|
|
ce51d60127 | ||
|
|
a489d99333 | ||
|
|
00c621abb8 | ||
|
|
c99530ec66 | ||
|
|
7439af0eca | ||
|
|
cc135c63f7 | ||
|
|
c4695fc3b3 | ||
|
|
bed0a64693 | ||
|
|
d8ddc22fc2 | ||
|
|
35f0daa198 | ||
|
|
2f3de5e199 | ||
|
|
bd4891a117 | ||
|
|
7039d5003c | ||
|
|
7151a54b28 | ||
|
|
b25561d0d7 | ||
|
|
9994617dad | ||
|
|
7265a9c3b7 | ||
|
|
4217f0dcaf | ||
|
|
aeb3bcdfc1 | ||
|
|
2c494751e5 | ||
|
|
d40746f34e | ||
|
|
7204731749 | ||
|
|
5e354a18a3 | ||
|
|
90802cb201 | ||
|
|
ee0c14673d | ||
|
|
9ffc8bcb54 | ||
|
|
283d9e0079 | ||
|
|
62aaaa18f3 | ||
|
|
2786bea839 | ||
|
|
6677f1f563 | ||
|
|
c1c09b60a1 | ||
|
|
aa5b927a18 | ||
|
|
2d77c15569 | ||
|
|
dd5a24fb89 | ||
|
|
a907e71a96 | ||
|
|
27a392f706 | ||
|
|
ea70d17c5f | ||
|
|
2e1506c31e | ||
|
|
f1181f1121 | ||
|
|
f3d44b1eb6 | ||
|
|
896096c41b | ||
|
|
25d6310307 | ||
|
|
874b4a5535 | ||
|
|
165af32d6b | ||
|
|
5182d46e22 | ||
|
|
140b7a7402 | ||
|
|
c25e455111 | ||
|
|
01306b66ba | ||
|
|
31660aa8e8 | ||
|
|
0cc965737b | ||
|
|
6fd752445e | ||
|
|
372547e332 | ||
|
|
ff878a542d | ||
|
|
d8c574a5ef | ||
|
|
0be020b0fa | ||
|
|
ba1d82db90 | ||
|
|
b0f7c33ce0 | ||
|
|
c993a43a91 | ||
|
|
6eaa35040b | ||
|
|
8da3079d22 | ||
|
|
45964c2f86 | ||
|
|
9c1048bacb | ||
|
|
dddb0f0ae5 | ||
|
|
d8cc269294 | ||
|
|
848d1f7c34 | ||
|
|
2ae5b480a6 | ||
|
|
97dad06ed8 | ||
|
|
582206b7d2 | ||
|
|
7522f11fd7 | ||
|
|
3c15c8ddad | ||
|
|
93aed187e9 | ||
|
|
a2c5510ae1 | ||
|
|
a2473af05a | ||
|
|
51b0f9b7fd | ||
|
|
5aff086aa4 | ||
|
|
e4e8505208 | ||
|
|
ed15357c7a | ||
|
|
21514e1fea | ||
|
|
4e7948abd2 | ||
|
|
b45f43ded1 | ||
|
|
f14de131b3 | ||
|
|
d424cbbcd5 | ||
|
|
71382d3279 | ||
|
|
0fbdedecc7 | ||
|
|
affacb1b67 | ||
|
|
9f4be83e88 | ||
|
|
8d0e6f1ead | ||
|
|
c8b0a04409 | ||
|
|
ea941462f9 | ||
|
|
8c1cb203fa | ||
|
|
cea34dc21a | ||
|
|
df6f230681 | ||
|
|
7a97bea3c0 | ||
|
|
23fe412ee3 | ||
|
|
ae73bc9685 | ||
|
|
396a602f86 | ||
|
|
2e0e5c09cd | ||
|
|
ad138a0c0e | ||
|
|
999ca04e64 | ||
|
|
183ab487c6 | ||
|
|
aa9121aa9d | ||
|
|
4dca59ed27 | ||
|
|
cc67a0370c | ||
|
|
43ffbfe608 | ||
|
|
b10791f8a0 | ||
|
|
55501bb51c | ||
|
|
0e08b83521 | ||
|
|
216c52e377 | ||
|
|
1af0b282db | ||
|
|
9d482a8da9 | ||
|
|
43019b4fdb | ||
|
|
da4a63cf61 | ||
|
|
ba3afd1803 | ||
|
|
528702d30b | ||
|
|
46b3a71a1f | ||
|
|
669a3917af | ||
|
|
9d8b975ff9 | ||
|
|
138b66231a | ||
|
|
4a37ea443e | ||
|
|
1c0a057af8 | ||
|
|
bb32bb3053 | ||
|
|
c9faddf799 | ||
|
|
95746f48e6 | ||
|
|
cbf4ae76a2 | ||
|
|
f88f7e7074 | ||
|
|
be2b389b81 | ||
|
|
43c3e80970 | ||
|
|
8fc63361f2 | ||
|
|
db759a1ad1 | ||
|
|
4ad669b2aa | ||
|
|
f99a818ad2 | ||
|
|
94bd8b39cf | ||
|
|
cb33ee006e | ||
|
|
e60aa71890 | ||
|
|
7244a3d047 | ||
|
|
75ef324533 | ||
|
|
5ab04e1baf | ||
|
|
04c820594d | ||
|
|
b615499cf0 | ||
|
|
23709cc781 | ||
|
|
feffdd9302 | ||
|
|
ffe6d928e3 | ||
|
|
1d89d20798 | ||
|
|
7766e9729f | ||
|
|
c45b8bd6ac | ||
|
|
537b3a8618 | ||
|
|
f7f6e1158e | ||
|
|
5e43af8a91 | ||
|
|
aedb4d9f28 | ||
|
|
20d7e44fc8 | ||
|
|
6f3718ddaa | ||
|
|
faaecf92c9 | ||
|
|
02773a6107 | ||
|
|
14cb8a24c6 | ||
|
|
271505717e | ||
|
|
61249d8dde | ||
|
|
533b675ec8 | ||
|
|
3ed52662df | ||
|
|
2259662c7b | ||
|
|
91a9631904 | ||
|
|
d3221099bf | ||
|
|
0e79bbaf36 | ||
|
|
fb41d03a11 | ||
|
|
2adafe366d | ||
|
|
d0eff7b818 | ||
|
|
941794f640 | ||
|
|
d7dcfd515b | ||
|
|
74ce59f6b0 | ||
|
|
3ee4d6e69e | ||
|
|
c07596691c | ||
|
|
76a111f0a2 | ||
|
|
314f211260 | ||
|
|
9bd4c47299 | ||
|
|
4613186e8a | ||
|
|
476aabb04b | ||
|
|
df436d342b | ||
|
|
65b0a7cf83 | ||
|
|
b977e0b3b2 | ||
|
|
2dc26a064c | ||
|
|
e6c4fc2550 | ||
|
|
e4c946229a | ||
|
|
1fbd2902e8 | ||
|
|
15926cf626 | ||
|
|
f9401d34dd | ||
|
|
ef4eda0761 | ||
|
|
be74548cb5 | ||
|
|
299e372b48 | ||
|
|
60c9a7496d | ||
|
|
0833d119c3 | ||
|
|
41f5cc69b4 | ||
|
|
ddd67dd191 | ||
|
|
b78a897f14 | ||
|
|
7d7e06681d | ||
|
|
7fa0e78abd | ||
|
|
82888da4e9 | ||
|
|
1fea3f1072 | ||
|
|
94c3de8273 | ||
|
|
7392161894 | ||
|
|
c2b8942769 | ||
|
|
441614b386 | ||
|
|
903d288e08 | ||
|
|
485c881c10 | ||
|
|
9604db2c93 | ||
|
|
392656d59e | ||
|
|
de66c82252 | ||
|
|
239bef5677 | ||
|
|
de61e21654 | ||
|
|
3220c0de15 | ||
|
|
bad0c61154 | ||
|
|
b4fd5f71c0 | ||
|
|
e369fe5c72 | ||
|
|
9ca2b0b763 | ||
|
|
a7b964af96 | ||
|
|
e8d8bfcccc | ||
|
|
8eab76c5db | ||
|
|
9ebc132ffc | ||
|
|
29c2d9b965 | ||
|
|
a250699225 | ||
|
|
68f547bdf2 | ||
|
|
5e46960651 | ||
|
|
95d8f4415a | ||
|
|
7fd42f5d06 | ||
|
|
8f45e4589c | ||
|
|
c105f5a1b8 | ||
|
|
fc649018b0 | ||
|
|
bc5aadd8af | ||
|
|
568c0e4a6e | ||
|
|
5c3d7e6ae6 | ||
|
|
42efade0dc | ||
|
|
a75271dd43 | ||
|
|
fc4df944a0 | ||
|
|
331c1f0f3f | ||
|
|
551baa44b2 | ||
|
|
9f42ce3f01 | ||
|
|
250fbbb3db | ||
|
|
7913681297 | ||
|
|
33ba88df9c | ||
|
|
7c3a0ed874 | ||
|
|
be5f6b3565 | ||
|
|
50ae91a3cb | ||
|
|
5058879eff | ||
|
|
82f50d5033 | ||
|
|
793f527feb | ||
|
|
18a4ca0da2 | ||
|
|
a2330f624b | ||
|
|
be15fee8e7 | ||
|
|
95357df8dd | ||
|
|
4fe1248aa8 | ||
|
|
5452405a81 | ||
|
|
ca4dca14d8 | ||
|
|
cc05874d06 | ||
|
|
b2f56d9add | ||
|
|
b305b9fd11 | ||
|
|
8a78c4efa3 | ||
|
|
8a922eb518 | ||
|
|
56876ac654 | ||
|
|
f7950a9baa | ||
|
|
af1d7d0b38 | ||
|
|
f722910b78 | ||
|
|
b9e9f21132 | ||
|
|
2ecf915af2 | ||
|
|
c5f21b2b01 | ||
|
|
eab2e0e112 | ||
|
|
c7ae969c06 | ||
|
|
aa299462f2 | ||
|
|
2304d2b472 | ||
|
|
1609682ac2 | ||
|
|
12365ec6ae | ||
|
|
a0cf717432 | ||
|
|
caf5c05dc0 | ||
|
|
8e694c0512 | ||
|
|
e7f2936dcc | ||
|
|
da2a234b00 | ||
|
|
39c1dde9df | ||
|
|
d6459d74f4 | ||
|
|
630aa6fff6 | ||
|
|
568c5df50b | ||
|
|
b0977c11ec | ||
|
|
bc3640ee64 | ||
|
|
56123d1b03 | ||
|
|
3b1ac77e1f | ||
|
|
0e8e6122d5 | ||
|
|
bbf745d4e1 | ||
|
|
abc92e7338 | ||
|
|
276cc7802f | ||
|
|
824e183347 | ||
|
|
0594006c81 | ||
|
|
ab1984a852 | ||
|
|
e4d0dce904 | ||
|
|
9b9101b46b | ||
|
|
28a4f73033 | ||
|
|
87fdaa3451 | ||
|
|
b3ccc095ba | ||
|
|
20cbc9e4eb | ||
|
|
d7dfb11be9 | ||
|
|
de09a82a32 | ||
|
|
bfd59dd579 | ||
|
|
ec155022e7 | ||
|
|
a1a76ccb8c | ||
|
|
4d91ec359b | ||
|
|
ba0707af64 | ||
|
|
44c48c929a | ||
|
|
72af97162f | ||
|
|
9fbc4ea417 | ||
|
|
e77e50886e | ||
|
|
b2f26804a0 | ||
|
|
52cf759a96 | ||
|
|
93da4fe4d5 | ||
|
|
fa2d28c998 | ||
|
|
641fbc7a80 | ||
|
|
ab7b81bbad | ||
|
|
cbc3afe7d1 | ||
|
|
b4bcedf064 | ||
|
|
7a92b2cbb9 | ||
|
|
c531e2eb0e | ||
|
|
7eb8257126 | ||
|
|
9b48ce0613 | ||
|
|
926cfea3dc | ||
|
|
b81def5e5c | ||
|
|
d6f3e1970d | ||
|
|
0a4b1909a2 | ||
|
|
9987a65e8a | ||
|
|
b0210df081 | ||
|
|
23ffbb083c | ||
|
|
6320036c56 | ||
|
|
700b95304b | ||
|
|
c37281735e | ||
|
|
8c82c037b9 | ||
|
|
ff1392f7f4 | ||
|
|
4f6c989309 | ||
|
|
af4c51aee6 | ||
|
|
3cd2f06279 | ||
|
|
e438fdc16c | ||
|
|
3680bbac56 | ||
|
|
67461ccd27 | ||
|
|
522a25790a | ||
|
|
914ff0e718 | ||
|
|
f3dde99796 | ||
|
|
34cdbdd279 | ||
|
|
edef485333 | ||
|
|
351efa134d | ||
|
|
b65eb2ec45 | ||
|
|
b2ba7d7408 | ||
|
|
9a741a61b1 | ||
|
|
559a1fd0f4 | ||
|
|
88fa64a01a | ||
|
|
e2e97db917 | ||
|
|
fec88e64eb | ||
|
|
d43fa07f06 | ||
|
|
f965af51b7 | ||
|
|
11042ddb71 | ||
|
|
e4abb6cbea | ||
|
|
19d01c02c6 | ||
|
|
d54fbca481 | ||
|
|
29aaf3e68e | ||
|
|
8836fa19b6 | ||
|
|
167b50be88 | ||
|
|
fd6c787c02 | ||
|
|
ccf1795e6f | ||
|
|
04081128a9 | ||
|
|
54204bc89b | ||
|
|
ca499de1cb | ||
|
|
e56327e3b0 | ||
|
|
aebf3952b7 | ||
|
|
7fa4e5c2a1 | ||
|
|
a143c888e5 | ||
|
|
a49d9e020c | ||
|
|
75f5afa571 | ||
|
|
1c143cfcea | ||
|
|
c9f3448692 | ||
|
|
be09d08eb6 | ||
|
|
6b2612690b | ||
|
|
254ed8897e | ||
|
|
96f1a2e01a | ||
|
|
bb37886f6a | ||
|
|
e28f55eb08 | ||
|
|
98f03862aa | ||
|
|
07cf8cf22d | ||
|
|
0d5393641e | ||
|
|
2caa0e3741 | ||
|
|
bc7650bd61 | ||
|
|
f2db746690 | ||
|
|
7b3c0e937f | ||
|
|
180f267867 | ||
|
|
b21f599cde | ||
|
|
3fba0adc9d | ||
|
|
f8f162aa72 | ||
|
|
6d3e38f439 | ||
|
|
4a0dc883cf | ||
|
|
8ebbf37e8e | ||
|
|
008ac38ebc | ||
|
|
a5fe6e21bc | ||
|
|
3003c9e17e | ||
|
|
31d8907e77 | ||
|
|
7b0a37312d | ||
|
|
623fc3a4fc | ||
|
|
aa31c5422b | ||
|
|
6232041c64 | ||
|
|
72b14a451e | ||
|
|
3400962877 | ||
|
|
113c9ce6a8 | ||
|
|
88a1eee31c | ||
|
|
62c4980754 | ||
|
|
9a5d3e7b31 | ||
|
|
15fc58bfd9 | ||
|
|
706d1a8e22 | ||
|
|
90acfd9394 | ||
|
|
6161d0b05d | ||
|
|
98b519b113 | ||
|
|
efdebf712e | ||
|
|
dc784bf217 | ||
|
|
ffe908371d | ||
|
|
92366134e3 | ||
|
|
e2d30cc3bc | ||
|
|
d185e6beea | ||
|
|
f67b5b20ca | ||
|
|
a7973ed7d1 | ||
|
|
0f2c3648dc | ||
|
|
5bddf0c085 | ||
|
|
65fb8fad99 | ||
|
|
0060a2cf9c | ||
|
|
c29c912bdc | ||
|
|
ad6240f066 | ||
|
|
8802843511 | ||
|
|
3feb66d0a1 | ||
|
|
228946369c | ||
|
|
9873b033d1 | ||
|
|
f17048d32a | ||
|
|
cd789d869d | ||
|
|
1f9f6fae6b | ||
|
|
c74dca10cb | ||
|
|
0f55dd452d | ||
|
|
9105c6bdd1 | ||
|
|
ebbb35d533 | ||
|
|
089d4316ef | ||
|
|
6e388e29c9 | ||
|
|
8d6189bcc5 | ||
|
|
2f3d820f52 | ||
|
|
ae5bd0667a | ||
|
|
1c2b10303a | ||
|
|
a3b97bfe03 | ||
|
|
73921ce4f6 | ||
|
|
9369a88c5c | ||
|
|
970059d4ce | ||
|
|
d38456dc06 | ||
|
|
6c7824c813 | ||
|
|
0df4a4298b | ||
|
|
ad8e547690 | ||
|
|
eac37e41ef | ||
|
|
f57b108475 | ||
|
|
a8780b8831 | ||
|
|
c54cbc3787 | ||
|
|
d04859b01c | ||
|
|
54b91ba2b2 | ||
|
|
1e13b6879c | ||
|
|
f11567816e | ||
|
|
7bd638de47 | ||
|
|
5bd5a76d25 | ||
|
|
9dc47f6b97 | ||
|
|
e12b9ab746 | ||
|
|
cfbe45c765 | ||
|
|
a1f06c391c | ||
|
|
f56a96a009 | ||
|
|
758910e280 | ||
|
|
bbc23f04e0 | ||
|
|
c41de7f134 | ||
|
|
804e765397 | ||
|
|
c4525dc6e2 | ||
|
|
6845e25318 | ||
|
|
35fd1e1c9a | ||
|
|
b28b1a3402 | ||
|
|
07df5c53de | ||
|
|
1cf433abf2 | ||
|
|
4534976c31 | ||
|
|
460e637244 | ||
|
|
559cfc1fe0 | ||
|
|
13501cacd1 | ||
|
|
7a23784473 | ||
|
|
e845218d7c | ||
|
|
82ed61c655 | ||
|
|
c0e36231ad | ||
|
|
44b275879b | ||
|
|
a3a8f6217e | ||
|
|
117c3aebda | ||
|
|
a3556acd98 | ||
|
|
5644bc8f01 | ||
|
|
416cc58cce | ||
|
|
ff47956530 | ||
|
|
11e53dd8ef | ||
|
|
f747767aa1 | ||
|
|
7dd480acad | ||
|
|
e3fa87bcc1 | ||
|
|
35028818af | ||
|
|
e4c27de1ec | ||
|
|
15f062d20f | ||
|
|
989b1a8bba | ||
|
|
ff20e1dfbb | ||
|
|
53ea035aea | ||
|
|
cdd7fa81ab |
No files matched your search
@@ -44,7 +44,7 @@ jobs:
|
|||||||
run: echo BUILD_TIME=$(date -u +%Y%m%d-%H%M) >> ${GITHUB_ENV}
|
run: echo BUILD_TIME=$(date -u +%Y%m%d-%H%M) >> ${GITHUB_ENV}
|
||||||
|
|
||||||
- name: Go Release Binaries Large Disk
|
- name: Go Release Binaries Large Disk
|
||||||
uses: wangyoucao577/go-release-action@6ac7dba1f9e61850053324549cb6bc88e4b473d2 # v1.22
|
uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -53,14 +53,14 @@ jobs:
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
build_flags: -tags 5BytesOffset # optional, default is
|
build_flags: -tags 5BytesOffset # optional, default is
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
binary_name: weed-large-disk
|
binary_name: weed-large-disk
|
||||||
asset_name: "weed-large-disk-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"
|
asset_name: "weed-large-disk-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"
|
||||||
|
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@6ac7dba1f9e61850053324549cb6bc88e4b473d2 # v1.22
|
uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -68,7 +68,7 @@ jobs:
|
|||||||
release_tag: dev
|
release_tag: dev
|
||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
binary_name: weed-normal-disk
|
binary_name: weed-normal-disk
|
||||||
@@ -93,7 +93,7 @@ jobs:
|
|||||||
run: echo BUILD_TIME=$(date -u +%Y%m%d-%H%M) >> ${GITHUB_ENV}
|
run: echo BUILD_TIME=$(date -u +%Y%m%d-%H%M) >> ${GITHUB_ENV}
|
||||||
|
|
||||||
- name: Go Release Binaries Large Disk
|
- name: Go Release Binaries Large Disk
|
||||||
uses: wangyoucao577/go-release-action@6ac7dba1f9e61850053324549cb6bc88e4b473d2 # v1.22
|
uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -102,14 +102,14 @@ jobs:
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
build_flags: -tags 5BytesOffset # optional, default is
|
build_flags: -tags 5BytesOffset # optional, default is
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
binary_name: weed-large-disk
|
binary_name: weed-large-disk
|
||||||
asset_name: "weed-large-disk-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"
|
asset_name: "weed-large-disk-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"
|
||||||
|
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@6ac7dba1f9e61850053324549cb6bc88e4b473d2 # v1.22
|
uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -117,7 +117,7 @@ jobs:
|
|||||||
release_tag: dev
|
release_tag: dev
|
||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
binary_name: weed-normal-disk
|
binary_name: weed-normal-disk
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@6ac7dba1f9e61850053324549cb6bc88e4b473d2 # v1.22
|
uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -38,13 +38,13 @@ jobs:
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
# build_flags: -tags 5BytesOffset # optional, default is
|
# build_flags: -tags 5BytesOffset # optional, default is
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
binary_name: weed
|
binary_name: weed
|
||||||
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
||||||
- name: Go Release Large Disk Binaries
|
- name: Go Release Large Disk Binaries
|
||||||
uses: wangyoucao577/go-release-action@6ac7dba1f9e61850053324549cb6bc88e4b473d2 # v1.22
|
uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
build_flags: -tags 5BytesOffset # optional, default is
|
build_flags: -tags 5BytesOffset # optional, default is
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
binary_name: weed
|
binary_name: weed
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@6ac7dba1f9e61850053324549cb6bc88e4b473d2 # v1.22
|
uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -38,13 +38,13 @@ jobs:
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
# build_flags: -tags 5BytesOffset # optional, default is
|
# build_flags: -tags 5BytesOffset # optional, default is
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
binary_name: weed
|
binary_name: weed
|
||||||
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
||||||
- name: Go Release Large Disk Binaries
|
- name: Go Release Large Disk Binaries
|
||||||
uses: wangyoucao577/go-release-action@6ac7dba1f9e61850053324549cb6bc88e4b473d2 # v1.22
|
uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
build_flags: -tags 5BytesOffset # optional, default is
|
build_flags: -tags 5BytesOffset # optional, default is
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
binary_name: weed
|
binary_name: weed
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@6ac7dba1f9e61850053324549cb6bc88e4b473d2 # v1.22
|
uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -38,13 +38,13 @@ jobs:
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
# build_flags: -tags 5BytesOffset # optional, default is
|
# build_flags: -tags 5BytesOffset # optional, default is
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
binary_name: weed
|
binary_name: weed
|
||||||
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
||||||
- name: Go Release Large Disk Binaries
|
- name: Go Release Large Disk Binaries
|
||||||
uses: wangyoucao577/go-release-action@6ac7dba1f9e61850053324549cb6bc88e4b473d2 # v1.22
|
uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
build_flags: -tags 5BytesOffset # optional, default is
|
build_flags: -tags 5BytesOffset # optional, default is
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
binary_name: weed
|
binary_name: weed
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@6ac7dba1f9e61850053324549cb6bc88e4b473d2 # v1.22
|
uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -38,13 +38,13 @@ jobs:
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
# build_flags: -tags 5BytesOffset # optional, default is
|
# build_flags: -tags 5BytesOffset # optional, default is
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
binary_name: weed
|
binary_name: weed
|
||||||
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
||||||
- name: Go Release Large Disk Binaries
|
- name: Go Release Large Disk Binaries
|
||||||
uses: wangyoucao577/go-release-action@6ac7dba1f9e61850053324549cb6bc88e4b473d2 # v1.22
|
uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
build_flags: -tags 5BytesOffset # optional, default is
|
build_flags: -tags 5BytesOffset # optional, default is
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
binary_name: weed
|
binary_name: weed
|
||||||
|
|||||||
@@ -30,30 +30,30 @@ jobs:
|
|||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@6ac7dba1f9e61850053324549cb6bc88e4b473d2 # v1.22
|
uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
goarch: ${{ matrix.goarch }}
|
goarch: ${{ matrix.goarch }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
build_flags: -tags elastic,gocdk,sqlite,ydb,tikv,rclone
|
build_flags: -tags elastic,gocdk,rclone,sqlite,tarantool,tikv,ydb
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
# build_flags: -tags 5BytesOffset # optional, default is
|
# build_flags: -tags 5BytesOffset # optional, default is
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
binary_name: weed
|
binary_name: weed
|
||||||
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_full"
|
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_full"
|
||||||
- name: Go Release Large Disk Binaries
|
- name: Go Release Large Disk Binaries
|
||||||
uses: wangyoucao577/go-release-action@6ac7dba1f9e61850053324549cb6bc88e4b473d2 # v1.22
|
uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
goarch: ${{ matrix.goarch }}
|
goarch: ${{ matrix.goarch }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
build_flags: -tags 5BytesOffset,elastic,gocdk,sqlite,ydb,tikv,rclone
|
build_flags: -tags 5BytesOffset,elastic,gocdk,rclone,sqlite,tarantool,tikv,ydb
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
binary_name: weed
|
binary_name: weed
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@6ac7dba1f9e61850053324549cb6bc88e4b473d2 # v1.22
|
uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -38,13 +38,13 @@ jobs:
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
# build_flags: -tags 5BytesOffset # optional, default is
|
# build_flags: -tags 5BytesOffset # optional, default is
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
binary_name: weed
|
binary_name: weed
|
||||||
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
||||||
- name: Go Release Large Disk Binaries
|
- name: Go Release Large Disk Binaries
|
||||||
uses: wangyoucao577/go-release-action@6ac7dba1f9e61850053324549cb6bc88e4b473d2 # v1.22
|
uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
build_flags: -tags 5BytesOffset # optional, default is
|
build_flags: -tags 5BytesOffset # optional, default is
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
binary_name: weed
|
binary_name: weed
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v3
|
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v3
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
chrislusf/seaweedfs
|
chrislusf/seaweedfs
|
||||||
@@ -33,30 +33,30 @@ jobs:
|
|||||||
org.opencontainers.image.vendor=Chris Lu
|
org.opencontainers.image.vendor=Chris Lu
|
||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v1
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v1
|
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v1
|
||||||
with:
|
with:
|
||||||
buildkitd-flags: "--debug"
|
buildkitd-flags: "--debug"
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v1
|
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
-
|
-
|
||||||
name: Login to GHCR
|
name: Login to GHCR
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v1
|
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ secrets.GHCR_USERNAME }}
|
username: ${{ secrets.GHCR_USERNAME }}
|
||||||
password: ${{ secrets.GHCR_TOKEN }}
|
password: ${{ secrets.GHCR_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v2
|
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v3
|
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v3
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
chrislusf/seaweedfs
|
chrislusf/seaweedfs
|
||||||
@@ -34,30 +34,30 @@ jobs:
|
|||||||
org.opencontainers.image.vendor=Chris Lu
|
org.opencontainers.image.vendor=Chris Lu
|
||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v1
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v1
|
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v1
|
||||||
with:
|
with:
|
||||||
buildkitd-flags: "--debug"
|
buildkitd-flags: "--debug"
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v1
|
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
-
|
-
|
||||||
name: Login to GHCR
|
name: Login to GHCR
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v1
|
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ secrets.GHCR_USERNAME }}
|
username: ${{ secrets.GHCR_USERNAME }}
|
||||||
password: ${{ secrets.GHCR_TOKEN }}
|
password: ${{ secrets.GHCR_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v2
|
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v3
|
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v3
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
chrislusf/seaweedfs
|
chrislusf/seaweedfs
|
||||||
@@ -34,20 +34,20 @@ jobs:
|
|||||||
org.opencontainers.image.vendor=Chris Lu
|
org.opencontainers.image.vendor=Chris Lu
|
||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v1
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v1
|
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v1
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v1
|
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v2
|
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v3
|
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v3
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
chrislusf/seaweedfs
|
chrislusf/seaweedfs
|
||||||
@@ -35,20 +35,20 @@ jobs:
|
|||||||
org.opencontainers.image.vendor=Chris Lu
|
org.opencontainers.image.vendor=Chris Lu
|
||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v1
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v1
|
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v1
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v1
|
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v2
|
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v3
|
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v3
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
chrislusf/seaweedfs
|
chrislusf/seaweedfs
|
||||||
@@ -35,20 +35,20 @@ jobs:
|
|||||||
org.opencontainers.image.vendor=Chris Lu
|
org.opencontainers.image.vendor=Chris Lu
|
||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v1
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v1
|
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v1
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v1
|
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v2
|
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v3
|
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v3
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
chrislusf/seaweedfs
|
chrislusf/seaweedfs
|
||||||
@@ -34,25 +34,25 @@ jobs:
|
|||||||
org.opencontainers.image.vendor=Chris Lu
|
org.opencontainers.image.vendor=Chris Lu
|
||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v1
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v1
|
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v1
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v1
|
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v2
|
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
file: ./docker/Dockerfile.go_build
|
file: ./docker/Dockerfile.go_build
|
||||||
build-args: TAGS=elastic,gocdk,sqlite,ydb,tikv,rclone
|
build-args: TAGS=elastic,gocdk,rclone,sqlite,tarantool,tikv,ydb
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
tags: ${{ steps.docker_meta.outputs.tags }}
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||||
labels: ${{ steps.docker_meta.outputs.labels }}
|
labels: ${{ steps.docker_meta.outputs.labels }}
|
||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v3
|
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v3
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
chrislusf/seaweedfs
|
chrislusf/seaweedfs
|
||||||
@@ -34,25 +34,25 @@ jobs:
|
|||||||
org.opencontainers.image.vendor=Chris Lu
|
org.opencontainers.image.vendor=Chris Lu
|
||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v1
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v1
|
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v1
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v1
|
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v2
|
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
file: ./docker/Dockerfile.go_build
|
file: ./docker/Dockerfile.go_build
|
||||||
build-args: TAGS=5BytesOffset,elastic,gocdk,sqlite,ydb,tikv,rclone
|
build-args: TAGS=5BytesOffset,elastic,gocdk,rclone,sqlite,tarantool,tikv,ydb
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
tags: ${{ steps.docker_meta.outputs.tags }}
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||||
labels: ${{ steps.docker_meta.outputs.labels }}
|
labels: ${{ steps.docker_meta.outputs.labels }}
|
||||||
@@ -11,4 +11,4 @@ jobs:
|
|||||||
- name: 'Checkout Repository'
|
- name: 'Checkout Repository'
|
||||||
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
|
||||||
- name: 'Dependency Review'
|
- name: 'Dependency Review'
|
||||||
uses: actions/dependency-review-action@0659a74c94536054bfa5aeb92241f70d680cc78e
|
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
cd weed; go get -v -t -d ./...
|
cd weed; go get -v -t -d ./...
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cd weed; go build -tags "elastic gocdk sqlite ydb tikv rclone" -v .
|
run: cd weed; go build -tags "elastic gocdk sqlite ydb tarantool tikv rclone" -v .
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: cd weed; go test -tags "elastic gocdk sqlite ydb tikv rclone" -v ./...
|
run: cd weed; go test -tags "elastic gocdk sqlite ydb tarantool tikv rclone" -v ./...
|
||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: Set up chart-testing
|
- name: Set up chart-testing
|
||||||
uses: helm/chart-testing-action@v2.6.1
|
uses: helm/chart-testing-action@v2.7.0
|
||||||
|
|
||||||
- name: Run chart-testing (list-changed)
|
- name: Run chart-testing (list-changed)
|
||||||
id: list-changed
|
id: list-changed
|
||||||
@@ -45,7 +45,7 @@ jobs:
|
|||||||
run: ct lint --target-branch ${{ github.event.repository.default_branch }} --all --validate-maintainers=false --chart-dirs k8s/charts
|
run: ct lint --target-branch ${{ github.event.repository.default_branch }} --all --validate-maintainers=false --chart-dirs k8s/charts
|
||||||
|
|
||||||
- name: Create kind cluster
|
- name: Create kind cluster
|
||||||
uses: helm/kind-action@v1.10.0
|
uses: helm/kind-action@v1.12.0
|
||||||
|
|
||||||
- name: Run chart-testing (install)
|
- name: Run chart-testing (install)
|
||||||
run: ct install --target-branch ${{ github.event.repository.default_branch }} --all --chart-dirs k8s/charts
|
run: ct install --target-branch ${{ github.event.repository.default_branch }} --all --chart-dirs k8s/charts
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
name: "test s3 over https using aws-cli"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master, test-https-s3-awscli]
|
||||||
|
pull_request:
|
||||||
|
branches: [master, test-https-s3-awscli]
|
||||||
|
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: some_access_key1
|
||||||
|
AWS_SECRET_ACCESS_KEY: some_secret_key1
|
||||||
|
AWS_ENDPOINT_URL: https://localhost:8443
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: weed
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
awscli-tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 5
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: ^1.24
|
||||||
|
|
||||||
|
- name: Build SeaweedFS
|
||||||
|
run: |
|
||||||
|
go build
|
||||||
|
|
||||||
|
- name: Start SeaweedFS
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
mkdir -p /tmp/data
|
||||||
|
./weed server -s3 -dir=/tmp/data -s3.config=../docker/compose/s3.json &
|
||||||
|
until curl -s http://localhost:8333/ > /dev/null; do sleep 1; done
|
||||||
|
|
||||||
|
- name: Setup Caddy
|
||||||
|
run: |
|
||||||
|
curl -fsSL "https://caddyserver.com/api/download?os=linux&arch=amd64" -o caddy
|
||||||
|
chmod +x caddy
|
||||||
|
./caddy version
|
||||||
|
echo "{
|
||||||
|
auto_https disable_redirects
|
||||||
|
local_certs
|
||||||
|
}
|
||||||
|
localhost:8443 {
|
||||||
|
tls internal
|
||||||
|
reverse_proxy localhost:8333
|
||||||
|
}" > Caddyfile
|
||||||
|
|
||||||
|
- name: Start Caddy
|
||||||
|
run: |
|
||||||
|
./caddy start
|
||||||
|
until curl -fsS --insecure https://localhost:8443 > /dev/null; do sleep 1; done
|
||||||
|
|
||||||
|
- name: Create Bucket
|
||||||
|
run: |
|
||||||
|
aws --no-verify-ssl s3api create-bucket --bucket bucket
|
||||||
|
|
||||||
|
- name: Test PutObject
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
dd if=/dev/urandom of=generated bs=1M count=2
|
||||||
|
aws --no-verify-ssl s3api put-object --bucket bucket --key test-putobject --body generated
|
||||||
|
aws --no-verify-ssl s3api get-object --bucket bucket --key test-putobject downloaded
|
||||||
|
diff -q generated downloaded
|
||||||
|
rm -f generated downloaded
|
||||||
|
|
||||||
|
- name: Test Multi-part Upload
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
dd if=/dev/urandom of=generated bs=1M count=32
|
||||||
|
aws --no-verify-ssl s3 cp --no-progress generated s3://bucket/test-multipart
|
||||||
|
aws --no-verify-ssl s3 cp --no-progress s3://bucket/test-multipart downloaded
|
||||||
|
diff -q generated downloaded
|
||||||
|
rm -f generated downloaded
|
||||||
+1
-5
@@ -87,7 +87,6 @@ other/java/hdfs/dependency-reduced-pom.xml
|
|||||||
|
|
||||||
# binary file
|
# binary file
|
||||||
weed/weed
|
weed/weed
|
||||||
weed/mq/client/cmd/weed_pub_kv/weed_pub
|
|
||||||
docker/weed
|
docker/weed
|
||||||
|
|
||||||
# test generated files
|
# test generated files
|
||||||
@@ -95,7 +94,4 @@ weed/*/*.jpg
|
|||||||
docker/weed_sub
|
docker/weed_sub
|
||||||
docker/weed_pub
|
docker/weed_pub
|
||||||
weed/mq/schema/example.parquet
|
weed/mq/schema/example.parquet
|
||||||
docker/weed_pub_kv
|
docker/agent_sub_record
|
||||||
docker/weed_pub_record
|
|
||||||
docker/weed_sub_kv
|
|
||||||
docker/weed_sub_record
|
|
||||||
@@ -186,7 +186,7 @@
|
|||||||
same "printed page" as the copyright notice for easier
|
same "printed page" as the copyright notice for easier
|
||||||
identification within third-party archives.
|
identification within third-party archives.
|
||||||
|
|
||||||
Copyright 2016 Chris Lu
|
Copyright 2025 Chris Lu
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
.PHONY: test
|
||||||
|
|
||||||
BINARY = weed
|
BINARY = weed
|
||||||
|
|
||||||
SOURCE_DIR = .
|
SOURCE_DIR = .
|
||||||
@@ -12,7 +14,7 @@ warp_install:
|
|||||||
go install github.com/minio/warp@v0.7.6
|
go install github.com/minio/warp@v0.7.6
|
||||||
|
|
||||||
full_install:
|
full_install:
|
||||||
cd weed; go install -tags "elastic gocdk sqlite ydb tikv rclone"
|
cd weed; go install -tags "elastic gocdk sqlite ydb tarantool tikv rclone"
|
||||||
|
|
||||||
server: install
|
server: install
|
||||||
weed -v 0 server -s3 -filer -filer.maxMB=64 -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1 -s3.port=8000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=true -s3.config=./docker/compose/s3.json -metricsPort=9324
|
weed -v 0 server -s3 -filer -filer.maxMB=64 -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1 -s3.port=8000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=true -s3.config=./docker/compose/s3.json -metricsPort=9324
|
||||||
@@ -32,4 +34,4 @@ benchmark_with_pprof: debug = 1
|
|||||||
benchmark_with_pprof: benchmark
|
benchmark_with_pprof: benchmark
|
||||||
|
|
||||||
test:
|
test:
|
||||||
cd weed; go test -tags "elastic gocdk sqlite ydb tikv rclone" -v ./...
|
cd weed; go test -tags "elastic gocdk sqlite ydb tarantool tikv rclone" -v ./...
|
||||||
@@ -46,6 +46,7 @@ Your support will be really appreciated by me and other supporters!
|
|||||||
- [SeaweedFS Mailing List](https://groups.google.com/d/forum/seaweedfs)
|
- [SeaweedFS Mailing List](https://groups.google.com/d/forum/seaweedfs)
|
||||||
- [Wiki Documentation](https://github.com/seaweedfs/seaweedfs/wiki)
|
- [Wiki Documentation](https://github.com/seaweedfs/seaweedfs/wiki)
|
||||||
- [SeaweedFS White Paper](https://github.com/seaweedfs/seaweedfs/wiki/SeaweedFS_Architecture.pdf)
|
- [SeaweedFS White Paper](https://github.com/seaweedfs/seaweedfs/wiki/SeaweedFS_Architecture.pdf)
|
||||||
|
- [SeaweedFS Introduction Slides 2025.5](https://docs.google.com/presentation/d/1tdkp45J01oRV68dIm4yoTXKJDof-EhainlA0LMXexQE/edit?usp=sharing)
|
||||||
- [SeaweedFS Introduction Slides 2021.5](https://docs.google.com/presentation/d/1DcxKWlINc-HNCjhYeERkpGXXm6nTCES8mi2W5G0Z4Ts/edit?usp=sharing)
|
- [SeaweedFS Introduction Slides 2021.5](https://docs.google.com/presentation/d/1DcxKWlINc-HNCjhYeERkpGXXm6nTCES8mi2W5G0Z4Ts/edit?usp=sharing)
|
||||||
- [SeaweedFS Introduction Slides 2019.3](https://www.slideshare.net/chrislusf/seaweedfs-introduction)
|
- [SeaweedFS Introduction Slides 2019.3](https://www.slideshare.net/chrislusf/seaweedfs-introduction)
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.22-alpine as builder
|
FROM golang:1.24-alpine as builder
|
||||||
RUN apk add git g++ fuse
|
RUN apk add git g++ fuse
|
||||||
RUN mkdir -p /go/src/github.com/seaweedfs/
|
RUN mkdir -p /go/src/github.com/seaweedfs/
|
||||||
RUN git clone https://github.com/seaweedfs/seaweedfs /go/src/github.com/seaweedfs/seaweedfs
|
RUN git clone https://github.com/seaweedfs/seaweedfs /go/src/github.com/seaweedfs/seaweedfs
|
||||||
@@ -6,7 +6,7 @@ ARG BRANCH=${BRANCH:-master}
|
|||||||
ARG TAGS
|
ARG TAGS
|
||||||
RUN cd /go/src/github.com/seaweedfs/seaweedfs && git checkout $BRANCH
|
RUN cd /go/src/github.com/seaweedfs/seaweedfs && git checkout $BRANCH
|
||||||
RUN cd /go/src/github.com/seaweedfs/seaweedfs/weed \
|
RUN cd /go/src/github.com/seaweedfs/seaweedfs/weed \
|
||||||
&& export LDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=$(git rev-parse --short HEAD)" \
|
&& export LDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=$(git rev-parse --short HEAD)" \
|
||||||
&& CGO_ENABLED=0 go install -tags "$TAGS" -ldflags "-extldflags -static ${LDFLAGS}"
|
&& CGO_ENABLED=0 go install -tags "$TAGS" -ldflags "-extldflags -static ${LDFLAGS}"
|
||||||
|
|
||||||
FROM alpine AS final
|
FROM alpine AS final
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
FROM golang:1.22 as builder
|
FROM golang:1.24 as builder
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev libzstd-dev
|
RUN apt-get install -y build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev libzstd-dev
|
||||||
|
|
||||||
ENV ROCKSDB_VERSION v8.10.0
|
ENV ROCKSDB_VERSION v10.2.1
|
||||||
|
|
||||||
# build RocksDB
|
# build RocksDB
|
||||||
RUN cd /tmp && \
|
RUN cd /tmp && \
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
FROM golang:1.22 as builder
|
FROM golang:1.24 as builder
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev libzstd-dev
|
RUN apt-get install -y build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev libzstd-dev
|
||||||
|
|
||||||
ENV ROCKSDB_VERSION v8.10.0
|
ENV ROCKSDB_VERSION v10.2.1
|
||||||
|
|
||||||
# build RocksDB
|
# build RocksDB
|
||||||
RUN cd /tmp && \
|
RUN cd /tmp && \
|
||||||
@@ -21,7 +21,7 @@ RUN git clone https://github.com/seaweedfs/seaweedfs /go/src/github.com/seaweedf
|
|||||||
ARG BRANCH=${BRANCH:-master}
|
ARG BRANCH=${BRANCH:-master}
|
||||||
RUN cd /go/src/github.com/seaweedfs/seaweedfs && git checkout $BRANCH
|
RUN cd /go/src/github.com/seaweedfs/seaweedfs && git checkout $BRANCH
|
||||||
RUN cd /go/src/github.com/seaweedfs/seaweedfs/weed \
|
RUN cd /go/src/github.com/seaweedfs/seaweedfs/weed \
|
||||||
&& export LDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=$(git rev-parse --short HEAD)" \
|
&& export LDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=$(git rev-parse --short HEAD)" \
|
||||||
&& go install -tags "5BytesOffset rocksdb" -ldflags "-extldflags -static ${LDFLAGS}"
|
&& go install -tags "5BytesOffset rocksdb" -ldflags "-extldflags -static ${LDFLAGS}"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ RUN mkdir -p /go/src/github.com/seaweedfs/
|
|||||||
ADD . /go/src/github.com/seaweedfs/seaweedfs
|
ADD . /go/src/github.com/seaweedfs/seaweedfs
|
||||||
RUN ls -al /go/src/github.com/seaweedfs/ && \
|
RUN ls -al /go/src/github.com/seaweedfs/ && \
|
||||||
cd /go/src/github.com/seaweedfs/seaweedfs/weed \
|
cd /go/src/github.com/seaweedfs/seaweedfs/weed \
|
||||||
&& export LDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=$(git rev-parse --short HEAD)" \
|
&& export LDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=$(git rev-parse --short HEAD)" \
|
||||||
&& go install -tags "5BytesOffset rocksdb" -ldflags "-extldflags -static ${LDFLAGS}"
|
&& go install -tags "5BytesOffset rocksdb" -ldflags "-extldflags -static ${LDFLAGS}"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
FROM tarantool/tarantool:3.3.1 AS builder
|
||||||
|
|
||||||
|
# install dependencies
|
||||||
|
RUN apt update && \
|
||||||
|
apt install -y git unzip cmake tt=2.7.0
|
||||||
|
|
||||||
|
# init tt dir structure, create dir for app, create symlink
|
||||||
|
RUN tt init && \
|
||||||
|
mkdir app && \
|
||||||
|
ln -sfn ${PWD}/app/ ${PWD}/instances.enabled/app
|
||||||
|
|
||||||
|
# copy cluster configs
|
||||||
|
COPY tarantool /opt/tarantool/app
|
||||||
|
|
||||||
|
# build app
|
||||||
|
RUN tt build app
|
||||||
|
|
||||||
+14
-7
@@ -7,12 +7,10 @@ gen: dev
|
|||||||
cgo ?= 0
|
cgo ?= 0
|
||||||
binary:
|
binary:
|
||||||
export SWCOMMIT=$(shell git rev-parse --short HEAD)
|
export SWCOMMIT=$(shell git rev-parse --short HEAD)
|
||||||
export SWLDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=$(SWCOMMIT)"
|
export SWLDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util/version.COMMIT=$(SWCOMMIT)"
|
||||||
cd ../weed && CGO_ENABLED=$(cgo) GOOS=linux go build $(options) -tags "$(tags)" -ldflags "-s -w -extldflags -static $(SWLDFLAGS)" && mv weed ../docker/
|
cd ../weed && CGO_ENABLED=$(cgo) GOOS=linux go build $(options) -tags "$(tags)" -ldflags "-s -w -extldflags -static $(SWLDFLAGS)" && mv weed ../docker/
|
||||||
cd ../weed/mq/client/cmd/weed_pub_kv && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_pub_kv ../../../../../docker/
|
cd ../other/mq_client_example/agent_pub_record && CGO_ENABLED=$(cgo) GOOS=linux go build && mv agent_pub_record ../../../docker/
|
||||||
cd ../weed/mq/client/cmd/weed_pub_record && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_pub_record ../../../../../docker/
|
cd ../other/mq_client_example/agent_sub_record && CGO_ENABLED=$(cgo) GOOS=linux go build && mv agent_sub_record ../../../docker/
|
||||||
cd ../weed/mq/client/cmd/weed_sub_kv && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_sub_kv ../../../../../docker/
|
|
||||||
cd ../weed/mq/client/cmd/weed_sub_record && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_sub_record ../../../../../docker/
|
|
||||||
|
|
||||||
binary_race: options = -race
|
binary_race: options = -race
|
||||||
binary_race: cgo = 1
|
binary_race: cgo = 1
|
||||||
@@ -24,7 +22,7 @@ build: binary
|
|||||||
build_e2e: binary_race
|
build_e2e: binary_race
|
||||||
docker build --no-cache -t chrislusf/seaweedfs:e2e -f Dockerfile.e2e .
|
docker build --no-cache -t chrislusf/seaweedfs:e2e -f Dockerfile.e2e .
|
||||||
|
|
||||||
go_build: # make go_build tags=elastic,ydb,gocdk,hdfs,5BytesOffset
|
go_build: # make go_build tags=elastic,ydb,gocdk,hdfs,5BytesOffset,tarantool
|
||||||
docker build --build-arg TAGS=$(tags) --no-cache -t chrislusf/seaweedfs:go_build -f Dockerfile.go_build .
|
docker build --build-arg TAGS=$(tags) --no-cache -t chrislusf/seaweedfs:go_build -f Dockerfile.go_build .
|
||||||
|
|
||||||
go_build_large_disk:
|
go_build_large_disk:
|
||||||
@@ -39,6 +37,9 @@ build_rocksdb_local: build_rocksdb_dev_env
|
|||||||
build_rocksdb:
|
build_rocksdb:
|
||||||
docker build --no-cache -t chrislusf/seaweedfs:rocksdb -f Dockerfile.rocksdb_large .
|
docker build --no-cache -t chrislusf/seaweedfs:rocksdb -f Dockerfile.rocksdb_large .
|
||||||
|
|
||||||
|
build_tarantool_dev_env:
|
||||||
|
docker build --no-cache -t chrislusf/tarantool_dev_env -f Dockerfile.tarantool.dev_env .
|
||||||
|
|
||||||
s3tests_build:
|
s3tests_build:
|
||||||
docker build --no-cache -t chrislusf/ceph-s3-tests:local -f Dockerfile.s3tests .
|
docker build --no-cache -t chrislusf/ceph-s3-tests:local -f Dockerfile.s3tests .
|
||||||
|
|
||||||
@@ -97,6 +98,9 @@ s3tests: build s3tests_build
|
|||||||
brokers: build
|
brokers: build
|
||||||
docker compose -f compose/local-brokers-compose.yml -p seaweedfs up
|
docker compose -f compose/local-brokers-compose.yml -p seaweedfs up
|
||||||
|
|
||||||
|
agent: build
|
||||||
|
docker compose -f compose/local-mq-test.yml -p seaweedfs up
|
||||||
|
|
||||||
filer_etcd: build
|
filer_etcd: build
|
||||||
docker stack deploy -c compose/swarm-etcd.yml fs
|
docker stack deploy -c compose/swarm-etcd.yml fs
|
||||||
|
|
||||||
@@ -105,9 +109,12 @@ test_etcd: build
|
|||||||
|
|
||||||
test_ydb: tags = ydb
|
test_ydb: tags = ydb
|
||||||
test_ydb: build
|
test_ydb: build
|
||||||
export
|
|
||||||
docker compose -f compose/test-ydb-filer.yml -p seaweedfs up
|
docker compose -f compose/test-ydb-filer.yml -p seaweedfs up
|
||||||
|
|
||||||
|
test_tarantool: tags = tarantool
|
||||||
|
test_tarantool: build_tarantool_dev_env build
|
||||||
|
docker compose -f compose/test-tarantool-filer.yml -p seaweedfs up
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm ./weed
|
rm ./weed
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<source>
|
||||||
|
@type forward
|
||||||
|
port 24224
|
||||||
|
</source>
|
||||||
|
|
||||||
|
<match **>
|
||||||
|
@type stdout # Output logs to container's stdout (visible via `docker logs`)
|
||||||
|
</match>
|
||||||
@@ -19,7 +19,9 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- fluent
|
- fluent
|
||||||
fluent:
|
fluent:
|
||||||
image: fluent/fluentd:v1.14
|
image: fluent/fluentd:v1.17
|
||||||
|
volumes:
|
||||||
|
- ./fluent.conf:/fluentd/etc/fluent.conf
|
||||||
ports:
|
ports:
|
||||||
- 24224:24224
|
- 24224:24224
|
||||||
#s3tests:
|
#s3tests:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 9333:9333
|
- 9333:9333
|
||||||
- 19333:19333
|
- 19333:19333
|
||||||
command: "-v=1 master -ip=master"
|
command: "-v=1 master -ip=master -volumeSizeLimitMB=10"
|
||||||
volumes:
|
volumes:
|
||||||
- ./tls:/etc/seaweedfs/tls
|
- ./tls:/etc/seaweedfs/tls
|
||||||
env_file:
|
env_file:
|
||||||
@@ -16,7 +16,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
- 18080:18080
|
- 18080:18080
|
||||||
command: "-v=1 volume -mserver=master:9333 -port=8080 -ip=volume -preStopSeconds=1"
|
command: "-v=1 volume -mserver=master:9333 -port=8080 -ip=volume -preStopSeconds=1 -max=10000"
|
||||||
depends_on:
|
depends_on:
|
||||||
- master
|
- master
|
||||||
volumes:
|
volumes:
|
||||||
@@ -26,10 +26,9 @@ services:
|
|||||||
filer:
|
filer:
|
||||||
image: chrislusf/seaweedfs:local
|
image: chrislusf/seaweedfs:local
|
||||||
ports:
|
ports:
|
||||||
- 8111:8111
|
|
||||||
- 8888:8888
|
- 8888:8888
|
||||||
- 18888:18888
|
- 18888:18888
|
||||||
command: '-v=1 filer -ip.bind=0.0.0.0 -master="master:9333" -iam -iam.ip=filer'
|
command: '-v=1 filer -ip.bind=0.0.0.0 -master="master:9333"'
|
||||||
depends_on:
|
depends_on:
|
||||||
- master
|
- master
|
||||||
- volume
|
- volume
|
||||||
@@ -37,6 +36,19 @@ services:
|
|||||||
- ./tls:/etc/seaweedfs/tls
|
- ./tls:/etc/seaweedfs/tls
|
||||||
env_file:
|
env_file:
|
||||||
- ${ENV_FILE:-dev.env}
|
- ${ENV_FILE:-dev.env}
|
||||||
|
|
||||||
|
iam:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 8111:8111
|
||||||
|
command: '-v=1 iam -filer="filer:8888" -master="master:9333"'
|
||||||
|
depends_on:
|
||||||
|
- master
|
||||||
|
- volume
|
||||||
|
- filer
|
||||||
|
volumes:
|
||||||
|
- ./tls:/etc/seaweedfs/tls
|
||||||
|
|
||||||
s3:
|
s3:
|
||||||
image: chrislusf/seaweedfs:local
|
image: chrislusf/seaweedfs:local
|
||||||
ports:
|
ports:
|
||||||
@@ -50,6 +62,7 @@ services:
|
|||||||
- ./tls:/etc/seaweedfs/tls
|
- ./tls:/etc/seaweedfs/tls
|
||||||
env_file:
|
env_file:
|
||||||
- ${ENV_FILE:-dev.env}
|
- ${ENV_FILE:-dev.env}
|
||||||
|
|
||||||
mount:
|
mount:
|
||||||
image: chrislusf/seaweedfs:local
|
image: chrislusf/seaweedfs:local
|
||||||
privileged: true
|
privileged: true
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
version: '3.9'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
server:
|
server:
|
||||||
image: chrislusf/seaweedfs:local
|
image: chrislusf/seaweedfs:local
|
||||||
@@ -19,9 +17,16 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
server:
|
server:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
mq_agent:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 16777:16777
|
||||||
|
command: "mq.agent -broker=mq_broker:17777 -port=16777"
|
||||||
|
depends_on:
|
||||||
|
- mq_broker
|
||||||
mq_client:
|
mq_client:
|
||||||
image: chrislusf/seaweedfs:local
|
image: chrislusf/seaweedfs:local
|
||||||
# run a custom command instead of entrypoint
|
# run a custom command instead of entrypoint
|
||||||
command: "ls -al"
|
command: "ls -al"
|
||||||
depends_on:
|
depends_on:
|
||||||
- mq_broker
|
- mq_agent
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
version: '3.9'
|
||||||
|
|
||||||
|
services:
|
||||||
|
tarantool:
|
||||||
|
image: chrislusf/tarantool_dev_env
|
||||||
|
entrypoint: "tt start app -i"
|
||||||
|
environment:
|
||||||
|
APP_USER_PASSWORD: "app"
|
||||||
|
CLIENT_USER_PASSWORD: "client"
|
||||||
|
REPLICATOR_USER_PASSWORD: "replicator"
|
||||||
|
STORAGE_USER_PASSWORD: "storage"
|
||||||
|
network_mode: "host"
|
||||||
|
ports:
|
||||||
|
- "3303:3303"
|
||||||
|
|
||||||
|
s3:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
command: "server -ip=127.0.0.1 -filer -master.volumeSizeLimitMB=16 -volume.max=0 -volume -volume.preStopSeconds=1 -s3 -s3.config=/etc/seaweedfs/s3.json -s3.port=8000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=false"
|
||||||
|
volumes:
|
||||||
|
- ./s3.json:/etc/seaweedfs/s3.json
|
||||||
|
environment:
|
||||||
|
WEED_LEVELDB2_ENABLED: "false"
|
||||||
|
WEED_TARANTOOL_ENABLED: "true"
|
||||||
|
WEED_TARANTOOL_ADDRESS: "127.0.0.1:3303"
|
||||||
|
WEED_TARANTOOL_USER: "client"
|
||||||
|
WEED_TARANTOOL_PASSWORD: "client"
|
||||||
|
WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1
|
||||||
|
network_mode: "host"
|
||||||
|
depends_on:
|
||||||
|
- tarantool
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"Username": "admin",
|
||||||
|
"Password": "myadminpassword",
|
||||||
|
"PublicKeys": [
|
||||||
|
],
|
||||||
|
"HomeDir": "/",
|
||||||
|
"Permissions": {
|
||||||
|
"/": ["*"]
|
||||||
|
},
|
||||||
|
"Uid": 0,
|
||||||
|
"Gid": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Username": "user1",
|
||||||
|
"Password": "myuser1password",
|
||||||
|
"PublicKeys": [""],
|
||||||
|
"HomeDir": "/user1",
|
||||||
|
"Permissions": {
|
||||||
|
"/user1": ["*"],
|
||||||
|
"/public": ["read", "list","write"]
|
||||||
|
},
|
||||||
|
"Uid": 1111,
|
||||||
|
"Gid": 1111
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Username": "readonly",
|
||||||
|
"Password": "myreadonlypassword",
|
||||||
|
"PublicKeys": [],
|
||||||
|
"HomeDir": "/public",
|
||||||
|
"Permissions": {
|
||||||
|
"/public": ["read", "list"]
|
||||||
|
},
|
||||||
|
"Uid": 1112,
|
||||||
|
"Gid": 1112
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package = 'app'
|
||||||
|
version = 'scm-1'
|
||||||
|
source = {
|
||||||
|
url = '/dev/null',
|
||||||
|
}
|
||||||
|
dependencies = {
|
||||||
|
'crud == 1.5.2-1',
|
||||||
|
'expirationd == 1.6.0-1',
|
||||||
|
'metrics-export-role == 0.3.0-1',
|
||||||
|
'vshard == 0.1.32-1'
|
||||||
|
}
|
||||||
|
build = {
|
||||||
|
type = 'none';
|
||||||
|
}
|
||||||
@@ -0,0 +1,145 @@
|
|||||||
|
config:
|
||||||
|
context:
|
||||||
|
app_user_password:
|
||||||
|
from: env
|
||||||
|
env: APP_USER_PASSWORD
|
||||||
|
client_user_password:
|
||||||
|
from: env
|
||||||
|
env: CLIENT_USER_PASSWORD
|
||||||
|
replicator_user_password:
|
||||||
|
from: env
|
||||||
|
env: REPLICATOR_USER_PASSWORD
|
||||||
|
storage_user_password:
|
||||||
|
from: env
|
||||||
|
env: STORAGE_USER_PASSWORD
|
||||||
|
|
||||||
|
credentials:
|
||||||
|
roles:
|
||||||
|
crud-role:
|
||||||
|
privileges:
|
||||||
|
- permissions: [ "execute" ]
|
||||||
|
lua_call: [ "crud.delete", "crud.get", "crud.upsert" ]
|
||||||
|
users:
|
||||||
|
app:
|
||||||
|
password: '{{ context.app_user_password }}'
|
||||||
|
roles: [ public, crud-role ]
|
||||||
|
client:
|
||||||
|
password: '{{ context.client_user_password }}'
|
||||||
|
roles: [ super ]
|
||||||
|
replicator:
|
||||||
|
password: '{{ context.replicator_user_password }}'
|
||||||
|
roles: [ replication ]
|
||||||
|
storage:
|
||||||
|
password: '{{ context.storage_user_password }}'
|
||||||
|
roles: [ sharding ]
|
||||||
|
|
||||||
|
iproto:
|
||||||
|
advertise:
|
||||||
|
peer:
|
||||||
|
login: replicator
|
||||||
|
sharding:
|
||||||
|
login: storage
|
||||||
|
|
||||||
|
sharding:
|
||||||
|
bucket_count: 10000
|
||||||
|
|
||||||
|
metrics:
|
||||||
|
include: [ all ]
|
||||||
|
exclude: [ vinyl ]
|
||||||
|
labels:
|
||||||
|
alias: '{{ instance_name }}'
|
||||||
|
|
||||||
|
|
||||||
|
groups:
|
||||||
|
storages:
|
||||||
|
roles:
|
||||||
|
- roles.crud-storage
|
||||||
|
- roles.expirationd
|
||||||
|
- roles.metrics-export
|
||||||
|
roles_cfg:
|
||||||
|
roles.expirationd:
|
||||||
|
cfg:
|
||||||
|
metrics: true
|
||||||
|
filer_metadata_task:
|
||||||
|
space: filer_metadata
|
||||||
|
is_expired: filer_metadata.is_expired
|
||||||
|
options:
|
||||||
|
atomic_iteration: true
|
||||||
|
force: true
|
||||||
|
index: 'expire_at_idx'
|
||||||
|
iterator_type: GT
|
||||||
|
start_key:
|
||||||
|
- 0
|
||||||
|
tuples_per_iteration: 10000
|
||||||
|
app:
|
||||||
|
module: storage
|
||||||
|
sharding:
|
||||||
|
roles: [ storage ]
|
||||||
|
replication:
|
||||||
|
failover: election
|
||||||
|
database:
|
||||||
|
use_mvcc_engine: true
|
||||||
|
replicasets:
|
||||||
|
storage-001:
|
||||||
|
instances:
|
||||||
|
storage-001-a:
|
||||||
|
roles_cfg:
|
||||||
|
roles.metrics-export:
|
||||||
|
http:
|
||||||
|
- listen: '0.0.0.0:8081'
|
||||||
|
endpoints:
|
||||||
|
- path: /metrics/prometheus/
|
||||||
|
format: prometheus
|
||||||
|
- path: /metrics/json
|
||||||
|
format: json
|
||||||
|
iproto:
|
||||||
|
listen:
|
||||||
|
- uri: 127.0.0.1:3301
|
||||||
|
advertise:
|
||||||
|
client: 127.0.0.1:3301
|
||||||
|
storage-001-b:
|
||||||
|
roles_cfg:
|
||||||
|
roles.metrics-export:
|
||||||
|
http:
|
||||||
|
- listen: '0.0.0.0:8082'
|
||||||
|
endpoints:
|
||||||
|
- path: /metrics/prometheus/
|
||||||
|
format: prometheus
|
||||||
|
- path: /metrics/json
|
||||||
|
format: json
|
||||||
|
iproto:
|
||||||
|
listen:
|
||||||
|
- uri: 127.0.0.1:3302
|
||||||
|
advertise:
|
||||||
|
client: 127.0.0.1:3302
|
||||||
|
routers:
|
||||||
|
roles:
|
||||||
|
- roles.crud-router
|
||||||
|
- roles.metrics-export
|
||||||
|
roles_cfg:
|
||||||
|
roles.crud-router:
|
||||||
|
stats: true
|
||||||
|
stats_driver: metrics
|
||||||
|
stats_quantiles: true
|
||||||
|
app:
|
||||||
|
module: router
|
||||||
|
sharding:
|
||||||
|
roles: [ router ]
|
||||||
|
replicasets:
|
||||||
|
router-001:
|
||||||
|
instances:
|
||||||
|
router-001-a:
|
||||||
|
roles_cfg:
|
||||||
|
roles.metrics-export:
|
||||||
|
http:
|
||||||
|
- listen: '0.0.0.0:8083'
|
||||||
|
endpoints:
|
||||||
|
- path: /metrics/prometheus/
|
||||||
|
format: prometheus
|
||||||
|
- path: /metrics/json
|
||||||
|
format: json
|
||||||
|
iproto:
|
||||||
|
listen:
|
||||||
|
- uri: 127.0.0.1:3303
|
||||||
|
advertise:
|
||||||
|
client: 127.0.0.1:3303
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
storage-001-a:
|
||||||
|
|
||||||
|
storage-001-b:
|
||||||
|
|
||||||
|
router-001-a:
|
||||||
|
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
local vshard = require('vshard')
|
||||||
|
local log = require('log')
|
||||||
|
|
||||||
|
-- Bootstrap the vshard router.
|
||||||
|
while true do
|
||||||
|
local ok, err = vshard.router.bootstrap({
|
||||||
|
if_not_bootstrapped = true,
|
||||||
|
})
|
||||||
|
if ok then
|
||||||
|
break
|
||||||
|
end
|
||||||
|
log.info(('Router bootstrap error: %s'):format(err))
|
||||||
|
end
|
||||||
|
|
||||||
|
-- functions for filer_metadata space
|
||||||
|
local filer_metadata = {
|
||||||
|
delete_by_directory_idx = function(directory)
|
||||||
|
-- find all storages
|
||||||
|
local storages = require('vshard').router.routeall()
|
||||||
|
-- on each storage
|
||||||
|
for _, storage in pairs(storages) do
|
||||||
|
-- call local function
|
||||||
|
local result, err = storage:callrw('filer_metadata.delete_by_directory_idx', { directory })
|
||||||
|
-- check for error
|
||||||
|
if err then
|
||||||
|
error("Failed to call function on storage: " .. tostring(err))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
-- return
|
||||||
|
return true
|
||||||
|
end,
|
||||||
|
find_by_directory_idx_and_name = function(dirPath, startFileName, includeStartFile, limit)
|
||||||
|
-- init results
|
||||||
|
local results = {}
|
||||||
|
-- find all storages
|
||||||
|
local storages = require('vshard').router.routeall()
|
||||||
|
-- on each storage
|
||||||
|
for _, storage in pairs(storages) do
|
||||||
|
-- call local function
|
||||||
|
local result, err = storage:callro('filer_metadata.find_by_directory_idx_and_name', {
|
||||||
|
dirPath,
|
||||||
|
startFileName,
|
||||||
|
includeStartFile,
|
||||||
|
limit
|
||||||
|
})
|
||||||
|
-- check for error
|
||||||
|
if err then
|
||||||
|
error("Failed to call function on storage: " .. tostring(err))
|
||||||
|
end
|
||||||
|
-- add to results
|
||||||
|
for _, tuple in ipairs(result) do
|
||||||
|
table.insert(results, tuple)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
-- sort
|
||||||
|
table.sort(results, function(a, b) return a[3] < b[3] end)
|
||||||
|
-- apply limit
|
||||||
|
if #results > limit then
|
||||||
|
local limitedResults = {}
|
||||||
|
for i = 1, limit do
|
||||||
|
table.insert(limitedResults, results[i])
|
||||||
|
end
|
||||||
|
results = limitedResults
|
||||||
|
end
|
||||||
|
-- return
|
||||||
|
return results
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
rawset(_G, 'filer_metadata', filer_metadata)
|
||||||
|
|
||||||
|
-- register functions for filer_metadata space, set grants
|
||||||
|
for name, _ in pairs(filer_metadata) do
|
||||||
|
box.schema.func.create('filer_metadata.' .. name, { if_not_exists = true })
|
||||||
|
box.schema.user.grant('app', 'execute', 'function', 'filer_metadata.' .. name, { if_not_exists = true })
|
||||||
|
box.schema.user.grant('client', 'execute', 'function', 'filer_metadata.' .. name, { if_not_exists = true })
|
||||||
|
end
|
||||||
@@ -0,0 +1,97 @@
|
|||||||
|
box.watch('box.status', function()
|
||||||
|
if box.info.ro then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
-- ====================================
|
||||||
|
-- key_value space
|
||||||
|
-- ====================================
|
||||||
|
box.schema.create_space('key_value', {
|
||||||
|
format = {
|
||||||
|
{ name = 'key', type = 'string' },
|
||||||
|
{ name = 'bucket_id', type = 'unsigned' },
|
||||||
|
{ name = 'value', type = 'string' }
|
||||||
|
},
|
||||||
|
if_not_exists = true
|
||||||
|
})
|
||||||
|
|
||||||
|
-- create key_value space indexes
|
||||||
|
box.space.key_value:create_index('id', {type = 'tree', parts = { 'key' }, unique = true, if_not_exists = true})
|
||||||
|
box.space.key_value:create_index('bucket_id', { type = 'tree', parts = { 'bucket_id' }, unique = false, if_not_exists = true })
|
||||||
|
|
||||||
|
-- ====================================
|
||||||
|
-- filer_metadata space
|
||||||
|
-- ====================================
|
||||||
|
box.schema.create_space('filer_metadata', {
|
||||||
|
format = {
|
||||||
|
{ name = 'directory', type = 'string' },
|
||||||
|
{ name = 'bucket_id', type = 'unsigned' },
|
||||||
|
{ name = 'name', type = 'string' },
|
||||||
|
{ name = 'expire_at', type = 'unsigned' },
|
||||||
|
{ name = 'data', type = 'string' }
|
||||||
|
},
|
||||||
|
if_not_exists = true
|
||||||
|
})
|
||||||
|
|
||||||
|
-- create filer_metadata space indexes
|
||||||
|
box.space.filer_metadata:create_index('id', {type = 'tree', parts = { 'directory', 'name' }, unique = true, if_not_exists = true})
|
||||||
|
box.space.filer_metadata:create_index('bucket_id', { type = 'tree', parts = { 'bucket_id' }, unique = false, if_not_exists = true })
|
||||||
|
box.space.filer_metadata:create_index('directory_idx', { type = 'tree', parts = { 'directory' }, unique = false, if_not_exists = true })
|
||||||
|
box.space.filer_metadata:create_index('name_idx', { type = 'tree', parts = { 'name' }, unique = false, if_not_exists = true })
|
||||||
|
box.space.filer_metadata:create_index('expire_at_idx', { type = 'tree', parts = { 'expire_at' }, unique = false, if_not_exists = true})
|
||||||
|
end)
|
||||||
|
|
||||||
|
-- functions for filer_metadata space
|
||||||
|
local filer_metadata = {
|
||||||
|
delete_by_directory_idx = function(directory)
|
||||||
|
local space = box.space.filer_metadata
|
||||||
|
local index = space.index.directory_idx
|
||||||
|
-- for each finded directories
|
||||||
|
for _, tuple in index:pairs({ directory }, { iterator = 'EQ' }) do
|
||||||
|
space:delete({ tuple[1], tuple[3] })
|
||||||
|
end
|
||||||
|
return true
|
||||||
|
end,
|
||||||
|
find_by_directory_idx_and_name = function(dirPath, startFileName, includeStartFile, limit)
|
||||||
|
local space = box.space.filer_metadata
|
||||||
|
local directory_idx = space.index.directory_idx
|
||||||
|
-- choose filter name function
|
||||||
|
local filter_filename_func
|
||||||
|
if includeStartFile then
|
||||||
|
filter_filename_func = function(value) return value >= startFileName end
|
||||||
|
else
|
||||||
|
filter_filename_func = function(value) return value > startFileName end
|
||||||
|
end
|
||||||
|
-- init results
|
||||||
|
local results = {}
|
||||||
|
-- for each finded directories
|
||||||
|
for _, tuple in directory_idx:pairs({ dirPath }, { iterator = 'EQ' }) do
|
||||||
|
-- filter by name
|
||||||
|
if filter_filename_func(tuple[3]) then
|
||||||
|
table.insert(results, tuple)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
-- sort
|
||||||
|
table.sort(results, function(a, b) return a[3] < b[3] end)
|
||||||
|
-- apply limit
|
||||||
|
if #results > limit then
|
||||||
|
local limitedResults = {}
|
||||||
|
for i = 1, limit do
|
||||||
|
table.insert(limitedResults, results[i])
|
||||||
|
end
|
||||||
|
results = limitedResults
|
||||||
|
end
|
||||||
|
-- return
|
||||||
|
return results
|
||||||
|
end,
|
||||||
|
is_expired = function(args, tuple)
|
||||||
|
return (tuple[4] > 0) and (require('fiber').time() > tuple[4])
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
-- register functions for filer_metadata space, set grants
|
||||||
|
rawset(_G, 'filer_metadata', filer_metadata)
|
||||||
|
for name, _ in pairs(filer_metadata) do
|
||||||
|
box.schema.func.create('filer_metadata.' .. name, { setuid = true, if_not_exists = true })
|
||||||
|
box.schema.user.grant('storage', 'execute', 'function', 'filer_metadata.' .. name, { if_not_exists = true })
|
||||||
|
end
|
||||||
Executable
+274
@@ -0,0 +1,274 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
# /// script
|
||||||
|
# requires-python = ">=3.12"
|
||||||
|
# dependencies = [
|
||||||
|
# "boto3",
|
||||||
|
# ]
|
||||||
|
# ///
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
import json
|
||||||
|
import random
|
||||||
|
import string
|
||||||
|
import subprocess
|
||||||
|
from enum import Enum
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
import boto3
|
||||||
|
|
||||||
|
REGION_NAME = "us-east-1"
|
||||||
|
|
||||||
|
|
||||||
|
class Actions(str, Enum):
|
||||||
|
Get = "Get"
|
||||||
|
Put = "Put"
|
||||||
|
List = "List"
|
||||||
|
|
||||||
|
|
||||||
|
def get_user_dir(bucket_name, user, with_bucket=True):
|
||||||
|
if with_bucket:
|
||||||
|
return f"{bucket_name}/user-id-{user}"
|
||||||
|
|
||||||
|
return f"user-id-{user}"
|
||||||
|
|
||||||
|
|
||||||
|
def create_power_user():
|
||||||
|
power_user_key = "power_user_key"
|
||||||
|
power_user_secret = "power_user_secret"
|
||||||
|
command = f"s3.configure -apply -user poweruser -access_key {power_user_key} -secret_key {power_user_secret} -actions Admin"
|
||||||
|
print("Creating Power User...")
|
||||||
|
subprocess.run(
|
||||||
|
["docker", "exec", "-i", "seaweedfs-master-1", "weed", "shell"],
|
||||||
|
input=command,
|
||||||
|
text=True,
|
||||||
|
stdout=subprocess.PIPE,
|
||||||
|
)
|
||||||
|
print(
|
||||||
|
f"Power User created with key: {power_user_key} and secret: {power_user_secret}"
|
||||||
|
)
|
||||||
|
return power_user_key, power_user_secret
|
||||||
|
|
||||||
|
|
||||||
|
def create_bucket(s3_client, bucket_name):
|
||||||
|
print(f"Creating Bucket {bucket_name}...")
|
||||||
|
s3_client.create_bucket(Bucket=bucket_name)
|
||||||
|
print(f"Bucket {bucket_name} created.")
|
||||||
|
|
||||||
|
|
||||||
|
def upload_file(s3_client, bucket_name, user, file_path, custom_remote_path=None):
|
||||||
|
user_dir = get_user_dir(bucket_name, user, with_bucket=False)
|
||||||
|
if custom_remote_path:
|
||||||
|
remote_path = custom_remote_path
|
||||||
|
else:
|
||||||
|
remote_path = f"{user_dir}/{str(Path(file_path).name)}"
|
||||||
|
|
||||||
|
print(f"Uploading {file_path} for {user}... on {user_dir}")
|
||||||
|
|
||||||
|
s3_client.upload_file(file_path, bucket_name, remote_path)
|
||||||
|
print(f"File {file_path} uploaded for {user}.")
|
||||||
|
|
||||||
|
|
||||||
|
def create_user(iam_client, user):
|
||||||
|
print(f"Creating user {user}...")
|
||||||
|
response = iam_client.create_access_key(UserName=user)
|
||||||
|
print(
|
||||||
|
f"User {user} created with access key: {response['AccessKey']['AccessKeyId']}"
|
||||||
|
)
|
||||||
|
return response
|
||||||
|
|
||||||
|
|
||||||
|
def list_files(s3_client, bucket_name, path=None):
|
||||||
|
if path is None:
|
||||||
|
path = ""
|
||||||
|
print(f"Listing files of s3://{bucket_name}/{path}...")
|
||||||
|
try:
|
||||||
|
response = s3_client.list_objects_v2(Bucket=bucket_name, Prefix=path)
|
||||||
|
if "Contents" in response:
|
||||||
|
for obj in response["Contents"]:
|
||||||
|
print(f"\t - {obj['Key']}")
|
||||||
|
else:
|
||||||
|
print("No files found.")
|
||||||
|
except Exception as e:
|
||||||
|
print(f"Error listing files: {e}")
|
||||||
|
|
||||||
|
|
||||||
|
def create_policy_for_user(
|
||||||
|
iam_client, user, bucket_name, actions=[Actions.Get, Actions.List]
|
||||||
|
):
|
||||||
|
print(f"Creating policy for {user} on {bucket_name}...")
|
||||||
|
policy_document = {
|
||||||
|
"Version": "2012-10-17",
|
||||||
|
"Statement": [
|
||||||
|
{
|
||||||
|
"Effect": "Allow",
|
||||||
|
"Action": [f"s3:{action.value}*" for action in actions],
|
||||||
|
"Resource": [
|
||||||
|
f"arn:aws:s3:::{get_user_dir(bucket_name, user)}/*",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
],
|
||||||
|
}
|
||||||
|
policy_name = f"{user}-{bucket_name}-full-access"
|
||||||
|
|
||||||
|
policy_json = json.dumps(policy_document)
|
||||||
|
filepath = f"/tmp/{policy_name}.json"
|
||||||
|
with open(filepath, "w") as f:
|
||||||
|
f.write(json.dumps(policy_document, indent=2))
|
||||||
|
|
||||||
|
iam_client.put_user_policy(
|
||||||
|
PolicyName=policy_name, PolicyDocument=policy_json, UserName=user
|
||||||
|
)
|
||||||
|
print(f"Policy for {user} on {bucket_name} created.")
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
parser = argparse.ArgumentParser(description="SeaweedFS S3 Test Script")
|
||||||
|
parser.add_argument(
|
||||||
|
"--s3-url", default="http://127.0.0.1:8333", help="S3 endpoint URL"
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--iam-url", default="http://127.0.0.1:8111", help="IAM endpoint URL"
|
||||||
|
)
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
bucket_name = (
|
||||||
|
f"test-bucket-{''.join(random.choices(string.digits + 'abcdef', k=8))}"
|
||||||
|
)
|
||||||
|
sentinel_file = "/tmp/SENTINEL"
|
||||||
|
with open(sentinel_file, "w") as f:
|
||||||
|
f.write("Hello World")
|
||||||
|
print(f"SENTINEL file created at {sentinel_file}")
|
||||||
|
|
||||||
|
power_user_key, power_user_secret = create_power_user()
|
||||||
|
|
||||||
|
admin_s3_client = get_s3_client(args, power_user_key, power_user_secret)
|
||||||
|
iam_client = get_iam_client(args, power_user_key, power_user_secret)
|
||||||
|
|
||||||
|
create_bucket(admin_s3_client, bucket_name)
|
||||||
|
upload_file(admin_s3_client, bucket_name, "Alice", sentinel_file)
|
||||||
|
upload_file(admin_s3_client, bucket_name, "Bob", sentinel_file)
|
||||||
|
list_files(admin_s3_client, bucket_name)
|
||||||
|
|
||||||
|
alice_user_info = create_user(iam_client, "Alice")
|
||||||
|
bob_user_info = create_user(iam_client, "Bob")
|
||||||
|
|
||||||
|
alice_key = alice_user_info["AccessKey"]["AccessKeyId"]
|
||||||
|
alice_secret = alice_user_info["AccessKey"]["SecretAccessKey"]
|
||||||
|
bob_key = bob_user_info["AccessKey"]["AccessKeyId"]
|
||||||
|
bob_secret = bob_user_info["AccessKey"]["SecretAccessKey"]
|
||||||
|
|
||||||
|
# Make sure Admin can read any files
|
||||||
|
list_files(admin_s3_client, bucket_name)
|
||||||
|
list_files(
|
||||||
|
admin_s3_client,
|
||||||
|
bucket_name,
|
||||||
|
get_user_dir(bucket_name, "Alice", with_bucket=False),
|
||||||
|
)
|
||||||
|
list_files(
|
||||||
|
admin_s3_client,
|
||||||
|
bucket_name,
|
||||||
|
get_user_dir(bucket_name, "Bob", with_bucket=False),
|
||||||
|
)
|
||||||
|
|
||||||
|
# Create read policy for Alice and Bob
|
||||||
|
create_policy_for_user(iam_client, "Alice", bucket_name)
|
||||||
|
create_policy_for_user(iam_client, "Bob", bucket_name)
|
||||||
|
|
||||||
|
alice_s3_client = get_s3_client(args, alice_key, alice_secret)
|
||||||
|
|
||||||
|
# Make sure Alice can read her files
|
||||||
|
list_files(
|
||||||
|
alice_s3_client,
|
||||||
|
bucket_name,
|
||||||
|
get_user_dir(bucket_name, "Alice", with_bucket=False) + "/",
|
||||||
|
)
|
||||||
|
|
||||||
|
# Make sure Bob can read his files
|
||||||
|
bob_s3_client = get_s3_client(args, bob_key, bob_secret)
|
||||||
|
list_files(
|
||||||
|
bob_s3_client,
|
||||||
|
bucket_name,
|
||||||
|
get_user_dir(bucket_name, "Bob", with_bucket=False) + "/",
|
||||||
|
)
|
||||||
|
|
||||||
|
# Update policy to include write
|
||||||
|
create_policy_for_user(iam_client, "Alice", bucket_name, actions=[Actions.Put, Actions.Get, Actions.List]) # fmt: off
|
||||||
|
create_policy_for_user(iam_client, "Bob", bucket_name, actions=[Actions.Put, Actions.Get, Actions.List]) # fmt: off
|
||||||
|
|
||||||
|
print("############################# Make sure Alice can write her files")
|
||||||
|
upload_file(
|
||||||
|
alice_s3_client,
|
||||||
|
bucket_name,
|
||||||
|
"Alice",
|
||||||
|
sentinel_file,
|
||||||
|
custom_remote_path=f"{get_user_dir(bucket_name, 'Alice', with_bucket=False)}/SENTINEL_by_Alice",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
print("############################# Make sure Bob can write his files")
|
||||||
|
upload_file(
|
||||||
|
bob_s3_client,
|
||||||
|
bucket_name,
|
||||||
|
"Bob",
|
||||||
|
sentinel_file,
|
||||||
|
custom_remote_path=f"{get_user_dir(bucket_name, 'Bob', with_bucket=False)}/SENTINEL_by_Bob",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
print("############################# Make sure Alice can read her new files")
|
||||||
|
list_files(
|
||||||
|
alice_s3_client,
|
||||||
|
bucket_name,
|
||||||
|
get_user_dir(bucket_name, "Alice", with_bucket=False) + "/",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
print("############################# Make sure Bob can read his new files")
|
||||||
|
list_files(
|
||||||
|
bob_s3_client,
|
||||||
|
bucket_name,
|
||||||
|
get_user_dir(bucket_name, "Bob", with_bucket=False) + "/",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
print("############################# Make sure Bob cannot read Alice's files")
|
||||||
|
list_files(
|
||||||
|
bob_s3_client,
|
||||||
|
bucket_name,
|
||||||
|
get_user_dir(bucket_name, "Alice", with_bucket=False) + "/",
|
||||||
|
)
|
||||||
|
|
||||||
|
print("############################# Make sure Alice cannot read Bob's files")
|
||||||
|
|
||||||
|
list_files(
|
||||||
|
alice_s3_client,
|
||||||
|
bucket_name,
|
||||||
|
get_user_dir(bucket_name, "Bob", with_bucket=False) + "/",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def get_iam_client(args, access_key, secret_key):
|
||||||
|
iam_client = boto3.client(
|
||||||
|
"iam",
|
||||||
|
endpoint_url=args.iam_url,
|
||||||
|
region_name=REGION_NAME,
|
||||||
|
aws_access_key_id=access_key,
|
||||||
|
aws_secret_access_key=secret_key,
|
||||||
|
)
|
||||||
|
return iam_client
|
||||||
|
|
||||||
|
|
||||||
|
def get_s3_client(args, access_key, secret_key):
|
||||||
|
s3_client = boto3.client(
|
||||||
|
"s3",
|
||||||
|
endpoint_url=args.s3_url,
|
||||||
|
region_name=REGION_NAME,
|
||||||
|
aws_access_key_id=access_key,
|
||||||
|
aws_secret_access_key=secret_key,
|
||||||
|
)
|
||||||
|
return s3_client
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
module github.com/seaweedfs/seaweedfs
|
module github.com/seaweedfs/seaweedfs
|
||||||
|
|
||||||
go 1.22.0
|
go 1.24
|
||||||
|
|
||||||
|
toolchain go1.24.1
|
||||||
|
|
||||||
require (
|
require (
|
||||||
cloud.google.com/go v0.115.1 // indirect
|
cloud.google.com/go v0.121.0 // indirect
|
||||||
cloud.google.com/go/pubsub v1.43.0
|
cloud.google.com/go/pubsub v1.49.0
|
||||||
cloud.google.com/go/storage v1.43.0
|
cloud.google.com/go/storage v1.54.0
|
||||||
github.com/Azure/azure-pipeline-go v0.2.3
|
github.com/Azure/azure-pipeline-go v0.2.3
|
||||||
github.com/Azure/azure-storage-blob-go v0.15.0
|
github.com/Azure/azure-storage-blob-go v0.15.0
|
||||||
github.com/Shopify/sarama v1.38.1
|
github.com/Shopify/sarama v1.38.1
|
||||||
github.com/aws/aws-sdk-go v1.55.5
|
github.com/aws/aws-sdk-go v1.55.7
|
||||||
github.com/beorn7/perks v1.0.1 // indirect
|
github.com/beorn7/perks v1.0.1 // indirect
|
||||||
github.com/bwmarrin/snowflake v0.3.0
|
github.com/bwmarrin/snowflake v0.3.0
|
||||||
github.com/cenkalti/backoff/v4 v4.3.0
|
github.com/cenkalti/backoff/v4 v4.3.0
|
||||||
@@ -27,41 +29,37 @@ require (
|
|||||||
github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 // indirect
|
github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 // indirect
|
||||||
github.com/facebookgo/stats v0.0.0-20151006221625-1b76add642e4
|
github.com/facebookgo/stats v0.0.0-20151006221625-1b76add642e4
|
||||||
github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 // indirect
|
github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 // indirect
|
||||||
github.com/fclairamb/ftpserverlib v0.24.1
|
github.com/fsnotify/fsnotify v1.8.0 // indirect
|
||||||
github.com/fsnotify/fsnotify v1.7.0 // indirect
|
|
||||||
github.com/go-redsync/redsync/v4 v4.13.0
|
github.com/go-redsync/redsync/v4 v4.13.0
|
||||||
github.com/go-sql-driver/mysql v1.8.1
|
github.com/go-sql-driver/mysql v1.9.2
|
||||||
github.com/go-zookeeper/zk v1.0.3 // indirect
|
github.com/go-zookeeper/zk v1.0.3 // indirect
|
||||||
github.com/gocql/gocql v1.6.0
|
github.com/gocql/gocql v1.7.0
|
||||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
|
||||||
github.com/golang/protobuf v1.5.4
|
github.com/golang/protobuf v1.5.4
|
||||||
github.com/golang/snappy v0.0.4 // indirect
|
github.com/golang/snappy v0.0.4 // indirect
|
||||||
github.com/google/btree v1.1.3
|
github.com/google/btree v1.1.3
|
||||||
github.com/google/uuid v1.6.0
|
github.com/google/uuid v1.6.0
|
||||||
github.com/google/wire v0.6.0 // indirect
|
github.com/google/wire v0.6.0 // indirect
|
||||||
github.com/googleapis/gax-go/v2 v2.13.0 // indirect
|
github.com/googleapis/gax-go/v2 v2.14.2 // indirect
|
||||||
github.com/gorilla/mux v1.8.1
|
github.com/gorilla/mux v1.8.1
|
||||||
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect
|
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect
|
||||||
github.com/hashicorp/errwrap v1.1.0 // indirect
|
github.com/hashicorp/errwrap v1.1.0 // indirect
|
||||||
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
||||||
github.com/hashicorp/go-uuid v1.0.3 // indirect
|
github.com/hashicorp/go-uuid v1.0.3 // indirect
|
||||||
github.com/hashicorp/hcl v1.0.0 // indirect
|
|
||||||
github.com/jcmturner/gofork v1.7.6 // indirect
|
github.com/jcmturner/gofork v1.7.6 // indirect
|
||||||
github.com/jcmturner/gokrb5/v8 v8.4.4 // indirect
|
github.com/jcmturner/gokrb5/v8 v8.4.4 // indirect
|
||||||
github.com/jinzhu/copier v0.4.0
|
github.com/jinzhu/copier v0.4.0
|
||||||
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
||||||
github.com/json-iterator/go v1.1.12
|
github.com/json-iterator/go v1.1.12
|
||||||
github.com/karlseguin/ccache/v2 v2.0.8
|
github.com/karlseguin/ccache/v2 v2.0.8
|
||||||
github.com/klauspost/compress v1.17.9 // indirect
|
github.com/klauspost/compress v1.18.0 // indirect
|
||||||
github.com/klauspost/reedsolomon v1.12.4
|
github.com/klauspost/reedsolomon v1.12.4
|
||||||
github.com/kurin/blazer v0.5.3
|
github.com/kurin/blazer v0.5.3
|
||||||
github.com/lib/pq v1.10.9
|
github.com/lib/pq v1.10.9
|
||||||
github.com/linxGnu/grocksdb v1.9.3
|
github.com/linxGnu/grocksdb v1.10.1
|
||||||
github.com/magiconair/properties v1.8.7 // indirect
|
|
||||||
github.com/mailru/easyjson v0.7.7 // indirect
|
github.com/mailru/easyjson v0.7.7 // indirect
|
||||||
github.com/mattn/go-ieproxy v0.0.11 // indirect
|
github.com/mattn/go-ieproxy v0.0.11 // indirect
|
||||||
github.com/mattn/go-isatty v0.0.20 // indirect
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||||
github.com/mitchellh/mapstructure v1.5.0 // indirect
|
|
||||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
||||||
github.com/modern-go/reflect2 v1.0.2 // indirect
|
github.com/modern-go/reflect2 v1.0.2 // indirect
|
||||||
github.com/olivere/elastic/v7 v7.0.32
|
github.com/olivere/elastic/v7 v7.0.32
|
||||||
@@ -70,22 +68,22 @@ require (
|
|||||||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
||||||
github.com/posener/complete v1.2.3
|
github.com/posener/complete v1.2.3
|
||||||
github.com/pquerna/cachecontrol v0.2.0
|
github.com/pquerna/cachecontrol v0.2.0
|
||||||
github.com/prometheus/client_golang v1.20.3
|
github.com/prometheus/client_golang v1.22.0
|
||||||
github.com/prometheus/client_model v0.6.1 // indirect
|
github.com/prometheus/client_model v0.6.2 // indirect
|
||||||
github.com/prometheus/common v0.55.0 // indirect
|
github.com/prometheus/common v0.64.0 // indirect
|
||||||
github.com/prometheus/procfs v0.15.1
|
github.com/prometheus/procfs v0.16.1
|
||||||
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
|
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
|
||||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
||||||
github.com/seaweedfs/goexif v1.0.3
|
github.com/seaweedfs/goexif v1.0.3
|
||||||
github.com/seaweedfs/raft v1.1.3
|
github.com/seaweedfs/raft v1.1.3
|
||||||
github.com/sirupsen/logrus v1.9.3 // indirect
|
github.com/sirupsen/logrus v1.9.3 // indirect
|
||||||
github.com/spf13/afero v1.11.0 // indirect
|
github.com/spf13/afero v1.12.0 // indirect
|
||||||
github.com/spf13/cast v1.6.0 // indirect
|
github.com/spf13/cast v1.7.1 // indirect
|
||||||
github.com/spf13/viper v1.19.0
|
github.com/spf13/viper v1.20.1
|
||||||
github.com/stretchr/testify v1.9.0
|
github.com/stretchr/testify v1.10.0
|
||||||
github.com/stvp/tempredis v0.0.0-20181119212430-b82af8480203
|
github.com/stvp/tempredis v0.0.0-20181119212430-b82af8480203
|
||||||
github.com/syndtr/goleveldb v1.0.1-0.20190318030020-c3a204f8e965
|
github.com/syndtr/goleveldb v1.0.1-0.20190318030020-c3a204f8e965
|
||||||
github.com/tidwall/gjson v1.17.3
|
github.com/tidwall/gjson v1.18.0
|
||||||
github.com/tidwall/match v1.1.1
|
github.com/tidwall/match v1.1.1
|
||||||
github.com/tidwall/pretty v1.2.0 // indirect
|
github.com/tidwall/pretty v1.2.0 // indirect
|
||||||
github.com/tsuna/gohbase v0.0.0-20201125011725-348991136365
|
github.com/tsuna/gohbase v0.0.0-20201125011725-348991136365
|
||||||
@@ -95,262 +93,296 @@ require (
|
|||||||
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
|
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
|
||||||
github.com/xdg-go/scram v1.1.2 // indirect
|
github.com/xdg-go/scram v1.1.2 // indirect
|
||||||
github.com/xdg-go/stringprep v1.0.4 // indirect
|
github.com/xdg-go/stringprep v1.0.4 // indirect
|
||||||
github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a // indirect
|
github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 // indirect
|
||||||
go.etcd.io/etcd/client/v3 v3.5.16
|
go.etcd.io/etcd/client/v3 v3.6.1
|
||||||
go.mongodb.org/mongo-driver v1.16.0
|
go.mongodb.org/mongo-driver v1.17.4
|
||||||
go.opencensus.io v0.24.0 // indirect
|
go.opencensus.io v0.24.0 // indirect
|
||||||
gocloud.dev v0.39.0
|
gocloud.dev v0.41.0
|
||||||
gocloud.dev/pubsub/natspubsub v0.39.0
|
gocloud.dev/pubsub/natspubsub v0.41.0
|
||||||
gocloud.dev/pubsub/rabbitpubsub v0.39.0
|
gocloud.dev/pubsub/rabbitpubsub v0.41.0
|
||||||
golang.org/x/crypto v0.27.0 // indirect
|
golang.org/x/crypto v0.39.0
|
||||||
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
|
golang.org/x/exp v0.0.0-20250606033433-dcc06ee1d476
|
||||||
golang.org/x/image v0.18.0
|
golang.org/x/image v0.28.0
|
||||||
golang.org/x/net v0.29.0
|
golang.org/x/net v0.41.0
|
||||||
golang.org/x/oauth2 v0.23.0 // indirect
|
golang.org/x/oauth2 v0.30.0 // indirect
|
||||||
golang.org/x/sys v0.25.0
|
golang.org/x/sys v0.33.0
|
||||||
golang.org/x/text v0.18.0 // indirect
|
golang.org/x/text v0.26.0 // indirect
|
||||||
golang.org/x/tools v0.25.0
|
golang.org/x/tools v0.34.0
|
||||||
golang.org/x/xerrors v0.0.0-20240716161551-93cc26a95ae9 // indirect
|
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
|
||||||
google.golang.org/api v0.198.0
|
google.golang.org/api v0.238.0
|
||||||
google.golang.org/genproto v0.0.0-20240903143218-8af14fe29dc1 // indirect
|
google.golang.org/genproto v0.0.0-20250505200425-f936aa4a68b2 // indirect
|
||||||
google.golang.org/grpc v1.66.2
|
google.golang.org/grpc v1.73.0
|
||||||
google.golang.org/protobuf v1.34.2
|
google.golang.org/protobuf v1.36.6
|
||||||
gopkg.in/inf.v0 v0.9.1 // indirect
|
gopkg.in/inf.v0 v0.9.1 // indirect
|
||||||
modernc.org/b v1.0.0 // indirect
|
modernc.org/b v1.0.0 // indirect
|
||||||
modernc.org/mathutil v1.6.0
|
modernc.org/mathutil v1.7.1
|
||||||
modernc.org/memory v1.8.0 // indirect
|
modernc.org/memory v1.11.0 // indirect
|
||||||
modernc.org/sqlite v1.33.0
|
modernc.org/sqlite v1.38.0
|
||||||
modernc.org/strutil v1.2.0
|
modernc.org/strutil v1.2.1
|
||||||
modernc.org/token v1.1.0 // indirect
|
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/Jille/raft-grpc-transport v1.6.1
|
github.com/Jille/raft-grpc-transport v1.6.1
|
||||||
github.com/arangodb/go-driver v1.6.2
|
github.com/arangodb/go-driver v1.6.6
|
||||||
github.com/armon/go-metrics v0.4.1
|
github.com/armon/go-metrics v0.4.1
|
||||||
github.com/aws/aws-sdk-go-v2 v1.31.0
|
github.com/aws/aws-sdk-go-v2 v1.36.5
|
||||||
github.com/aws/aws-sdk-go-v2/config v1.27.33
|
github.com/aws/aws-sdk-go-v2/config v1.29.17
|
||||||
github.com/aws/aws-sdk-go-v2/credentials v1.17.32
|
github.com/aws/aws-sdk-go-v2/credentials v1.17.70
|
||||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.61.2
|
github.com/aws/aws-sdk-go-v2/service/s3 v1.80.1
|
||||||
github.com/cognusion/imaging v1.0.1
|
github.com/cognusion/imaging v1.0.2
|
||||||
github.com/fluent/fluent-logger-golang v1.9.0
|
github.com/fluent/fluent-logger-golang v1.10.0
|
||||||
github.com/getsentry/sentry-go v0.29.0
|
github.com/getsentry/sentry-go v0.33.0
|
||||||
github.com/golang-jwt/jwt/v5 v5.2.1
|
github.com/golang-jwt/jwt/v5 v5.2.2
|
||||||
github.com/google/flatbuffers/go v0.0.0-20230108230133-3b8644d32c50
|
github.com/google/flatbuffers/go v0.0.0-20230108230133-3b8644d32c50
|
||||||
github.com/hanwen/go-fuse/v2 v2.5.1
|
github.com/hanwen/go-fuse/v2 v2.8.0
|
||||||
github.com/hashicorp/raft v1.7.1
|
github.com/hashicorp/raft v1.7.3
|
||||||
github.com/hashicorp/raft-boltdb/v2 v2.3.0
|
github.com/hashicorp/raft-boltdb/v2 v2.3.1
|
||||||
|
github.com/minio/crc64nvme v1.0.2
|
||||||
github.com/orcaman/concurrent-map/v2 v2.0.1
|
github.com/orcaman/concurrent-map/v2 v2.0.1
|
||||||
github.com/parquet-go/parquet-go v0.23.0
|
github.com/parquet-go/parquet-go v0.25.1
|
||||||
|
github.com/pkg/sftp v1.13.9
|
||||||
github.com/rabbitmq/amqp091-go v1.10.0
|
github.com/rabbitmq/amqp091-go v1.10.0
|
||||||
github.com/rclone/rclone v1.68.0
|
github.com/rclone/rclone v1.70.1
|
||||||
github.com/rdleal/intervalst v1.4.0
|
github.com/rdleal/intervalst v1.5.0
|
||||||
github.com/redis/go-redis/v9 v9.6.1
|
github.com/redis/go-redis/v9 v9.10.0
|
||||||
github.com/schollz/progressbar/v3 v3.14.4
|
github.com/schollz/progressbar/v3 v3.18.0
|
||||||
github.com/shirou/gopsutil/v3 v3.24.5
|
github.com/shirou/gopsutil/v3 v3.24.5
|
||||||
|
github.com/tarantool/go-tarantool/v2 v2.3.2
|
||||||
github.com/tikv/client-go/v2 v2.0.7
|
github.com/tikv/client-go/v2 v2.0.7
|
||||||
github.com/ydb-platform/ydb-go-sdk-auth-environ v0.5.0
|
github.com/ydb-platform/ydb-go-sdk-auth-environ v0.5.0
|
||||||
github.com/ydb-platform/ydb-go-sdk/v3 v3.77.1
|
github.com/ydb-platform/ydb-go-sdk/v3 v3.110.1
|
||||||
go.etcd.io/etcd/client/pkg/v3 v3.5.16
|
go.etcd.io/etcd/client/pkg/v3 v3.6.1
|
||||||
go.uber.org/atomic v1.11.0
|
go.uber.org/atomic v1.11.0
|
||||||
golang.org/x/sync v0.8.0
|
golang.org/x/sync v0.15.0
|
||||||
google.golang.org/grpc/security/advancedtls v1.0.0
|
google.golang.org/grpc/security/advancedtls v1.0.0
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
cloud.google.com/go/auth v0.9.4 // indirect
|
cel.dev/expr v0.23.0 // indirect
|
||||||
cloud.google.com/go/auth/oauth2adapt v0.2.4 // indirect
|
cloud.google.com/go/auth v0.16.2 // indirect
|
||||||
cloud.google.com/go/compute/metadata v0.5.1 // indirect
|
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
|
||||||
cloud.google.com/go/iam v1.2.0 // indirect
|
cloud.google.com/go/compute/metadata v0.7.0 // indirect
|
||||||
|
cloud.google.com/go/iam v1.5.2 // indirect
|
||||||
|
cloud.google.com/go/monitoring v1.24.2 // indirect
|
||||||
filippo.io/edwards25519 v1.1.0 // indirect
|
filippo.io/edwards25519 v1.1.0 // indirect
|
||||||
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.14.0 // indirect
|
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.18.0 // indirect
|
||||||
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 // indirect
|
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.10.0 // indirect
|
||||||
github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect
|
github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.1 // indirect
|
||||||
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.3.2 // indirect
|
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.6.1 // indirect
|
||||||
github.com/Azure/azure-sdk-for-go/sdk/storage/azfile v1.2.2 // indirect
|
github.com/Azure/azure-sdk-for-go/sdk/storage/azfile v1.5.1 // indirect
|
||||||
github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 // indirect
|
github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 // indirect
|
||||||
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect
|
github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2 // indirect
|
||||||
github.com/Files-com/files-sdk-go/v3 v3.2.34 // indirect
|
github.com/Files-com/files-sdk-go/v3 v3.2.173 // indirect
|
||||||
|
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.27.0 // indirect
|
||||||
|
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.51.0 // indirect
|
||||||
|
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.51.0 // indirect
|
||||||
|
github.com/IBM/go-sdk-core/v5 v5.20.0 // indirect
|
||||||
github.com/Max-Sum/base32768 v0.0.0-20230304063302-18e6ce5945fd // indirect
|
github.com/Max-Sum/base32768 v0.0.0-20230304063302-18e6ce5945fd // indirect
|
||||||
github.com/Microsoft/go-winio v0.6.1 // indirect
|
github.com/Microsoft/go-winio v0.6.2 // indirect
|
||||||
github.com/ProtonMail/bcrypt v0.0.0-20211005172633-e235017c1baf // indirect
|
github.com/ProtonMail/bcrypt v0.0.0-20211005172633-e235017c1baf // indirect
|
||||||
github.com/ProtonMail/gluon v0.17.1-0.20230724134000-308be39be96e // indirect
|
github.com/ProtonMail/gluon v0.17.1-0.20230724134000-308be39be96e // indirect
|
||||||
github.com/ProtonMail/go-crypto v1.0.0 // indirect
|
github.com/ProtonMail/go-crypto v1.3.0 // indirect
|
||||||
github.com/ProtonMail/go-mime v0.0.0-20230322103455-7d82a3887f2f // indirect
|
github.com/ProtonMail/go-mime v0.0.0-20230322103455-7d82a3887f2f // indirect
|
||||||
github.com/ProtonMail/go-srp v0.0.7 // indirect
|
github.com/ProtonMail/go-srp v0.0.7 // indirect
|
||||||
github.com/ProtonMail/gopenpgp/v2 v2.7.4 // indirect
|
github.com/ProtonMail/gopenpgp/v2 v2.9.0 // indirect
|
||||||
github.com/PuerkitoBio/goquery v1.8.1 // indirect
|
github.com/PuerkitoBio/goquery v1.10.3 // indirect
|
||||||
github.com/abbot/go-http-auth v0.4.0 // indirect
|
github.com/abbot/go-http-auth v0.4.0 // indirect
|
||||||
github.com/andybalholm/brotli v1.1.0 // indirect
|
github.com/andybalholm/brotli v1.1.0 // indirect
|
||||||
github.com/andybalholm/cascadia v1.3.2 // indirect
|
github.com/andybalholm/cascadia v1.3.3 // indirect
|
||||||
github.com/appscode/go-querystring v0.0.0-20170504095604-0126cfb3f1dc // indirect
|
github.com/appscode/go-querystring v0.0.0-20170504095604-0126cfb3f1dc // indirect
|
||||||
github.com/arangodb/go-velocypack v0.0.0-20200318135517-5af53c29c67e // indirect
|
github.com/arangodb/go-velocypack v0.0.0-20200318135517-5af53c29c67e // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.4 // indirect
|
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.13 // indirect
|
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.10 // indirect
|
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.17 // indirect
|
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.77 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.17 // indirect
|
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect
|
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.17 // indirect
|
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.4 // indirect
|
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.34 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.19 // indirect
|
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.19 // indirect
|
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.2 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.17 // indirect
|
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/sns v1.31.3 // indirect
|
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.15 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/sqs v1.34.3 // indirect
|
github.com/aws/aws-sdk-go-v2/service/sns v1.34.2 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/sso v1.22.7 // indirect
|
github.com/aws/aws-sdk-go-v2/service/sqs v1.38.3 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.7 // indirect
|
github.com/aws/aws-sdk-go-v2/service/sso v1.25.5 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/sts v1.30.7 // indirect
|
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3 // indirect
|
||||||
github.com/aws/smithy-go v1.21.0 // indirect
|
github.com/aws/aws-sdk-go-v2/service/sts v1.34.0 // indirect
|
||||||
|
github.com/aws/smithy-go v1.22.4 // indirect
|
||||||
github.com/boltdb/bolt v1.3.1 // indirect
|
github.com/boltdb/bolt v1.3.1 // indirect
|
||||||
github.com/bradenaw/juniper v0.15.2 // indirect
|
github.com/bradenaw/juniper v0.15.3 // indirect
|
||||||
github.com/bradfitz/iter v0.0.0-20191230175014-e8f45d346db8 // indirect
|
github.com/bradfitz/iter v0.0.0-20191230175014-e8f45d346db8 // indirect
|
||||||
github.com/buengese/sgzip v0.1.1 // indirect
|
github.com/buengese/sgzip v0.1.1 // indirect
|
||||||
github.com/calebcase/tmpfile v1.0.3 // indirect
|
github.com/calebcase/tmpfile v1.0.3 // indirect
|
||||||
github.com/chilts/sid v0.0.0-20190607042430-660e94789ec9 // indirect
|
github.com/chilts/sid v0.0.0-20190607042430-660e94789ec9 // indirect
|
||||||
github.com/cloudflare/circl v1.3.7 // indirect
|
github.com/cloudflare/circl v1.6.1 // indirect
|
||||||
github.com/cloudsoda/go-smb2 v0.0.0-20231124195312-f3ec8ae2c891 // indirect
|
github.com/cloudinary/cloudinary-go/v2 v2.10.0 // indirect
|
||||||
|
github.com/cloudsoda/go-smb2 v0.0.0-20250228001242-d4c70e6251cc // indirect
|
||||||
|
github.com/cloudsoda/sddl v0.0.0-20250224235906-926454e91efc // indirect
|
||||||
|
github.com/cncf/xds/go v0.0.0-20250326154945-ae57f3c0d45f // indirect
|
||||||
github.com/colinmarc/hdfs/v2 v2.4.0 // indirect
|
github.com/colinmarc/hdfs/v2 v2.4.0 // indirect
|
||||||
|
github.com/creasty/defaults v1.8.0 // indirect
|
||||||
github.com/cronokirby/saferith v0.33.0 // indirect
|
github.com/cronokirby/saferith v0.33.0 // indirect
|
||||||
github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 // indirect
|
github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 // indirect
|
||||||
github.com/d4l3k/messagediff v1.2.1 // indirect
|
github.com/d4l3k/messagediff v1.2.1 // indirect
|
||||||
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 // indirect
|
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 // indirect
|
||||||
github.com/dropbox/dropbox-sdk-go-unofficial/v6 v6.0.5 // indirect
|
github.com/dropbox/dropbox-sdk-go-unofficial/v6 v6.0.5 // indirect
|
||||||
|
github.com/ebitengine/purego v0.8.4 // indirect
|
||||||
github.com/elastic/gosigar v0.14.2 // indirect
|
github.com/elastic/gosigar v0.14.2 // indirect
|
||||||
github.com/emersion/go-message v0.18.0 // indirect
|
github.com/emersion/go-message v0.18.2 // indirect
|
||||||
github.com/emersion/go-textwrapper v0.0.0-20200911093747-65d896831594 // indirect
|
github.com/emersion/go-vcard v0.0.0-20241024213814-c9703dde27ff // indirect
|
||||||
github.com/emersion/go-vcard v0.0.0-20230815062825-8fda7d206ec9 // indirect
|
github.com/envoyproxy/go-control-plane/envoy v1.32.4 // indirect
|
||||||
|
github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect
|
||||||
github.com/fatih/color v1.16.0 // indirect
|
github.com/fatih/color v1.16.0 // indirect
|
||||||
github.com/fclairamb/go-log v0.5.0 // indirect
|
|
||||||
github.com/felixge/httpsnoop v1.0.4 // indirect
|
github.com/felixge/httpsnoop v1.0.4 // indirect
|
||||||
github.com/flynn/noise v1.0.1 // indirect
|
github.com/flynn/noise v1.1.0 // indirect
|
||||||
github.com/gabriel-vasile/mimetype v1.4.4 // indirect
|
github.com/gabriel-vasile/mimetype v1.4.9 // indirect
|
||||||
github.com/geoffgarside/ber v1.1.0 // indirect
|
github.com/geoffgarside/ber v1.2.0 // indirect
|
||||||
github.com/go-chi/chi/v5 v5.1.0 // indirect
|
github.com/go-chi/chi/v5 v5.2.2 // indirect
|
||||||
github.com/go-darwin/apfs v0.0.0-20211011131704-f84b94dbf348 // indirect
|
github.com/go-darwin/apfs v0.0.0-20211011131704-f84b94dbf348 // indirect
|
||||||
github.com/go-logr/logr v1.4.2 // indirect
|
github.com/go-jose/go-jose/v4 v4.0.5 // indirect
|
||||||
|
github.com/go-logr/logr v1.4.3 // indirect
|
||||||
github.com/go-logr/stdr v1.2.2 // indirect
|
github.com/go-logr/stdr v1.2.2 // indirect
|
||||||
github.com/go-ole/go-ole v1.3.0 // indirect
|
github.com/go-ole/go-ole v1.3.0 // indirect
|
||||||
github.com/go-resty/resty/v2 v2.11.0 // indirect
|
github.com/go-openapi/errors v0.22.1 // indirect
|
||||||
github.com/gofrs/flock v0.8.1 // indirect
|
github.com/go-openapi/strfmt v0.23.0 // indirect
|
||||||
|
github.com/go-playground/locales v0.14.1 // indirect
|
||||||
|
github.com/go-playground/universal-translator v0.18.1 // indirect
|
||||||
|
github.com/go-playground/validator/v10 v10.26.0 // indirect
|
||||||
|
github.com/go-resty/resty/v2 v2.16.5 // indirect
|
||||||
|
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
|
||||||
|
github.com/gofrs/flock v0.12.1 // indirect
|
||||||
github.com/gogo/protobuf v1.3.2 // indirect
|
github.com/gogo/protobuf v1.3.2 // indirect
|
||||||
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
|
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
|
||||||
github.com/google/s2a-go v0.1.8 // indirect
|
github.com/google/s2a-go v0.1.9 // indirect
|
||||||
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
|
github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect
|
||||||
|
github.com/gorilla/schema v1.4.1 // indirect
|
||||||
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
|
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
|
||||||
|
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3 // indirect
|
||||||
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
|
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
|
||||||
github.com/hashicorp/go-hclog v1.6.3 // indirect
|
github.com/hashicorp/go-hclog v1.6.3 // indirect
|
||||||
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
|
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
|
||||||
|
github.com/hashicorp/go-metrics v0.5.4 // indirect
|
||||||
github.com/hashicorp/go-msgpack/v2 v2.1.2 // indirect
|
github.com/hashicorp/go-msgpack/v2 v2.1.2 // indirect
|
||||||
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
|
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
|
||||||
github.com/hashicorp/golang-lru v0.6.0 // indirect
|
github.com/hashicorp/golang-lru v0.6.0 // indirect
|
||||||
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
|
|
||||||
github.com/henrybear327/Proton-API-Bridge v1.0.0 // indirect
|
github.com/henrybear327/Proton-API-Bridge v1.0.0 // indirect
|
||||||
github.com/henrybear327/go-proton-api v1.0.0 // indirect
|
github.com/henrybear327/go-proton-api v1.0.0 // indirect
|
||||||
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
|
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
|
||||||
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
|
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
|
||||||
github.com/jcmturner/goidentity/v6 v6.0.1 // indirect
|
github.com/jcmturner/goidentity/v6 v6.0.1 // indirect
|
||||||
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
|
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
|
||||||
github.com/jlaffaye/ftp v0.2.0 // indirect
|
github.com/jlaffaye/ftp v0.2.1-0.20240918233326-1b970516f5d3 // indirect
|
||||||
github.com/jonboulle/clockwork v0.3.0 // indirect
|
github.com/jonboulle/clockwork v0.5.0 // indirect
|
||||||
github.com/josharian/intern v1.0.0 // indirect
|
github.com/josharian/intern v1.0.0 // indirect
|
||||||
github.com/jtolio/noiseconn v0.0.0-20231127013910-f6d9ecbf1de7 // indirect
|
github.com/jtolio/noiseconn v0.0.0-20231127013910-f6d9ecbf1de7 // indirect
|
||||||
github.com/jzelinskie/whirlpool v0.0.0-20201016144138-0675e54bb004 // indirect
|
github.com/jzelinskie/whirlpool v0.0.0-20201016144138-0675e54bb004 // indirect
|
||||||
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
|
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
|
||||||
github.com/koofr/go-httpclient v0.0.0-20240520111329-e20f8f203988 // indirect
|
github.com/koofr/go-httpclient v0.0.0-20240520111329-e20f8f203988 // indirect
|
||||||
github.com/koofr/go-koofrclient v0.0.0-20221207135200-cbd7fc9ad6a6 // indirect
|
github.com/koofr/go-koofrclient v0.0.0-20221207135200-cbd7fc9ad6a6 // indirect
|
||||||
github.com/kr/fs v0.1.0 // indirect
|
github.com/kr/fs v0.1.0 // indirect
|
||||||
github.com/kylelemons/godebug v1.1.0 // indirect
|
github.com/kylelemons/godebug v1.1.0 // indirect
|
||||||
|
github.com/lanrat/extsort v1.0.2 // indirect
|
||||||
|
github.com/leodido/go-urn v1.4.0 // indirect
|
||||||
github.com/lpar/date v1.0.0 // indirect
|
github.com/lpar/date v1.0.0 // indirect
|
||||||
github.com/lufia/plan9stats v0.0.0-20231016141302-07b5767bb0ed // indirect
|
github.com/lufia/plan9stats v0.0.0-20250317134145-8bc96cf8fc35 // indirect
|
||||||
github.com/mattn/go-colorable v0.1.13 // indirect
|
github.com/mattn/go-colorable v0.1.14 // indirect
|
||||||
github.com/mattn/go-runewidth v0.0.15 // indirect
|
github.com/mattn/go-runewidth v0.0.16 // indirect
|
||||||
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
|
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
|
||||||
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
||||||
|
github.com/mitchellh/mapstructure v1.5.0 // indirect
|
||||||
github.com/montanaflynn/stats v0.7.1 // indirect
|
github.com/montanaflynn/stats v0.7.1 // indirect
|
||||||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
|
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
|
||||||
github.com/nats-io/nats.go v1.37.0 // indirect
|
github.com/nats-io/nats.go v1.40.1 // indirect
|
||||||
github.com/nats-io/nkeys v0.4.7 // indirect
|
github.com/nats-io/nkeys v0.4.10 // indirect
|
||||||
github.com/nats-io/nuid v1.0.1 // indirect
|
github.com/nats-io/nuid v1.0.1 // indirect
|
||||||
github.com/ncruces/go-strftime v0.1.9 // indirect
|
github.com/ncruces/go-strftime v0.1.9 // indirect
|
||||||
github.com/ncw/swift/v2 v2.0.3 // indirect
|
github.com/ncw/swift/v2 v2.0.4 // indirect
|
||||||
github.com/olekukonko/tablewriter v0.0.5 // indirect
|
github.com/nxadm/tail v1.4.11 // indirect
|
||||||
|
github.com/oklog/ulid v1.3.1 // indirect
|
||||||
|
github.com/onsi/ginkgo/v2 v2.23.3 // indirect
|
||||||
github.com/opentracing/opentracing-go v1.2.0 // indirect
|
github.com/opentracing/opentracing-go v1.2.0 // indirect
|
||||||
github.com/oracle/oci-go-sdk/v65 v65.69.2 // indirect
|
github.com/oracle/oci-go-sdk/v65 v65.93.0 // indirect
|
||||||
github.com/panjf2000/ants/v2 v2.9.1 // indirect
|
github.com/panjf2000/ants/v2 v2.11.3 // indirect
|
||||||
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
|
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
|
||||||
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
|
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
|
||||||
github.com/pengsrc/go-shared v0.2.1-0.20190131101655-1999055a4a14 // indirect
|
github.com/pengsrc/go-shared v0.2.1-0.20190131101655-1999055a4a14 // indirect
|
||||||
github.com/philhofer/fwd v1.1.2 // indirect
|
github.com/philhofer/fwd v1.1.3-0.20240916144458-20a13a1f6b7c // indirect
|
||||||
github.com/pierrec/lz4/v4 v4.1.21 // indirect
|
github.com/pierrec/lz4/v4 v4.1.21 // indirect
|
||||||
github.com/pingcap/errors v0.11.5-0.20211224045212-9687c2b0f87c // indirect
|
github.com/pingcap/errors v0.11.5-0.20211224045212-9687c2b0f87c // indirect
|
||||||
github.com/pingcap/failpoint v0.0.0-20220801062533-2eaa32854a6c // indirect
|
github.com/pingcap/failpoint v0.0.0-20220801062533-2eaa32854a6c // indirect
|
||||||
github.com/pingcap/kvproto v0.0.0-20230403051650-e166ae588106 // indirect
|
github.com/pingcap/kvproto v0.0.0-20230403051650-e166ae588106 // indirect
|
||||||
github.com/pingcap/log v1.1.1-0.20221110025148-ca232912c9f3 // indirect
|
github.com/pingcap/log v1.1.1-0.20221110025148-ca232912c9f3 // indirect
|
||||||
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
|
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
|
||||||
github.com/pkg/sftp v1.13.6 // indirect
|
github.com/pkg/xattr v0.4.10 // indirect
|
||||||
github.com/pkg/xattr v0.4.9 // indirect
|
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
|
||||||
github.com/power-devops/perfstat v0.0.0-20221212215047-62379fc7944b // indirect
|
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
|
||||||
github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8 // indirect
|
github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8 // indirect
|
||||||
github.com/relvacode/iso8601 v1.3.0 // indirect
|
github.com/relvacode/iso8601 v1.6.0 // indirect
|
||||||
github.com/rfjakob/eme v1.1.2 // indirect
|
github.com/rfjakob/eme v1.1.2 // indirect
|
||||||
github.com/rivo/uniseg v0.4.7 // indirect
|
github.com/rivo/uniseg v0.4.7 // indirect
|
||||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect
|
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect
|
||||||
github.com/sagikazarmark/locafero v0.4.0 // indirect
|
github.com/sagikazarmark/locafero v0.7.0 // indirect
|
||||||
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
|
github.com/samber/lo v1.50.0 // indirect
|
||||||
github.com/samber/lo v1.47.0 // indirect
|
github.com/shirou/gopsutil/v4 v4.25.5 // indirect
|
||||||
github.com/segmentio/encoding v0.4.0 // indirect
|
|
||||||
github.com/shoenig/go-m1cpu v0.1.6 // indirect
|
github.com/shoenig/go-m1cpu v0.1.6 // indirect
|
||||||
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 // indirect
|
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 // indirect
|
||||||
github.com/smartystreets/goconvey v1.8.1 // indirect
|
github.com/smartystreets/goconvey v1.8.1 // indirect
|
||||||
github.com/sony/gobreaker v0.5.0 // indirect
|
github.com/sony/gobreaker v1.0.0 // indirect
|
||||||
github.com/sourcegraph/conc v0.3.0 // indirect
|
github.com/sourcegraph/conc v0.3.0 // indirect
|
||||||
github.com/spacemonkeygo/monkit/v3 v3.0.22 // indirect
|
github.com/spacemonkeygo/monkit/v3 v3.0.24 // indirect
|
||||||
github.com/spf13/pflag v1.0.5 // indirect
|
github.com/spf13/pflag v1.0.6 // indirect
|
||||||
|
github.com/spiffe/go-spiffe/v2 v2.5.0 // indirect
|
||||||
github.com/subosito/gotenv v1.6.0 // indirect
|
github.com/subosito/gotenv v1.6.0 // indirect
|
||||||
github.com/t3rm1n4l/go-mega v0.0.0-20240219080617-d494b6a8ace7 // indirect
|
github.com/t3rm1n4l/go-mega v0.0.0-20241213151442-a19cff0ec7b5 // indirect
|
||||||
|
github.com/tarantool/go-iproto v1.1.0 // indirect
|
||||||
github.com/tiancaiamao/gp v0.0.0-20221230034425-4025bc8a4d4a // indirect
|
github.com/tiancaiamao/gp v0.0.0-20221230034425-4025bc8a4d4a // indirect
|
||||||
github.com/tikv/pd/client v0.0.0-20230329114254-1948c247c2b1 // indirect
|
github.com/tikv/pd/client v0.0.0-20230329114254-1948c247c2b1 // indirect
|
||||||
github.com/tinylib/msgp v1.1.8 // indirect
|
github.com/tinylib/msgp v1.3.0 // indirect
|
||||||
github.com/tklauser/go-sysconf v0.3.13 // indirect
|
github.com/tklauser/go-sysconf v0.3.15 // indirect
|
||||||
github.com/tklauser/numcpus v0.7.0 // indirect
|
github.com/tklauser/numcpus v0.10.0 // indirect
|
||||||
github.com/twmb/murmur3 v1.1.3 // indirect
|
github.com/twmb/murmur3 v1.1.3 // indirect
|
||||||
github.com/unknwon/goconfig v1.0.0 // indirect
|
github.com/unknwon/goconfig v1.0.0 // indirect
|
||||||
|
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
|
||||||
|
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
|
||||||
github.com/xanzy/ssh-agent v0.3.3 // indirect
|
github.com/xanzy/ssh-agent v0.3.3 // indirect
|
||||||
github.com/yandex-cloud/go-genproto v0.0.0-20211115083454-9ca41db5ed9e // indirect
|
github.com/yandex-cloud/go-genproto v0.0.0-20211115083454-9ca41db5ed9e // indirect
|
||||||
github.com/ydb-platform/ydb-go-genproto v0.0.0-20240528144234-5d5a685e41f7 // indirect
|
github.com/ydb-platform/ydb-go-genproto v0.0.0-20241112172322-ea1f63298f77 // indirect
|
||||||
github.com/ydb-platform/ydb-go-yc v0.12.1 // indirect
|
github.com/ydb-platform/ydb-go-yc v0.12.1 // indirect
|
||||||
github.com/ydb-platform/ydb-go-yc-metadata v0.6.1 // indirect
|
github.com/ydb-platform/ydb-go-yc-metadata v0.6.1 // indirect
|
||||||
github.com/yunify/qingstor-sdk-go/v3 v3.2.0 // indirect
|
github.com/yunify/qingstor-sdk-go/v3 v3.2.0 // indirect
|
||||||
github.com/yusufpapurcu/wmi v1.2.4 // indirect
|
github.com/yusufpapurcu/wmi v1.2.4 // indirect
|
||||||
github.com/zeebo/blake3 v0.2.3 // indirect
|
github.com/zeebo/blake3 v0.2.4 // indirect
|
||||||
github.com/zeebo/errs v1.3.0 // indirect
|
github.com/zeebo/errs v1.4.0 // indirect
|
||||||
go.etcd.io/bbolt v1.3.10 // indirect
|
go.etcd.io/bbolt v1.4.0 // indirect
|
||||||
go.etcd.io/etcd/api/v3 v3.5.16 // indirect
|
go.etcd.io/etcd/api/v3 v3.6.1 // indirect
|
||||||
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0 // indirect
|
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
|
||||||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect
|
go.opentelemetry.io/contrib/detectors/gcp v1.35.0 // indirect
|
||||||
go.opentelemetry.io/otel v1.29.0 // indirect
|
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0 // indirect
|
||||||
go.opentelemetry.io/otel/metric v1.29.0 // indirect
|
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect
|
||||||
go.opentelemetry.io/otel/trace v1.29.0 // indirect
|
go.opentelemetry.io/otel v1.36.0 // indirect
|
||||||
|
go.opentelemetry.io/otel/metric v1.36.0 // indirect
|
||||||
|
go.opentelemetry.io/otel/sdk v1.36.0 // indirect
|
||||||
|
go.opentelemetry.io/otel/sdk/metric v1.36.0 // indirect
|
||||||
|
go.opentelemetry.io/otel/trace v1.36.0 // indirect
|
||||||
go.uber.org/multierr v1.11.0 // indirect
|
go.uber.org/multierr v1.11.0 // indirect
|
||||||
go.uber.org/zap v1.27.0 // indirect
|
go.uber.org/zap v1.27.0 // indirect
|
||||||
golang.org/x/mod v0.21.0 // indirect
|
golang.org/x/term v0.32.0 // indirect
|
||||||
golang.org/x/term v0.24.0 // indirect
|
golang.org/x/time v0.12.0 // indirect
|
||||||
golang.org/x/time v0.6.0 // indirect
|
google.golang.org/genproto/googleapis/api v0.0.0-20250505200425-f936aa4a68b2 // indirect
|
||||||
google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 // indirect
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 // indirect
|
||||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
|
|
||||||
gopkg.in/ini.v1 v1.67.0 // indirect
|
|
||||||
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
|
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
|
||||||
gopkg.in/validator.v2 v2.0.1 // indirect
|
gopkg.in/validator.v2 v2.0.1 // indirect
|
||||||
gopkg.in/yaml.v2 v2.4.0 // indirect
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||||
modernc.org/gc/v3 v3.0.0-20240107210532-573471604cb6 // indirect
|
modernc.org/libc v1.65.10 // indirect
|
||||||
moul.io/http2curl/v2 v2.3.0 // indirect
|
moul.io/http2curl/v2 v2.3.0 // indirect
|
||||||
storj.io/common v0.0.0-20240812101423-26b53789c348 // indirect
|
sigs.k8s.io/yaml v1.4.0 // indirect
|
||||||
storj.io/drpc v0.0.35-0.20240709171858-0075ac871661 // indirect
|
storj.io/common v0.0.0-20250605163628-70ca83b6228e // indirect
|
||||||
storj.io/eventkit v0.0.0-20240415002644-1d9596fee086 // indirect
|
storj.io/drpc v0.0.35-0.20250513201419-f7819ea69b55 // indirect
|
||||||
|
storj.io/eventkit v0.0.0-20250410172343-61f26d3de156 // indirect
|
||||||
storj.io/infectious v0.0.2 // indirect
|
storj.io/infectious v0.0.2 // indirect
|
||||||
storj.io/picobuf v0.0.3 // indirect
|
storj.io/picobuf v0.0.4 // indirect
|
||||||
storj.io/uplink v1.13.1 // indirect
|
storj.io/uplink v1.13.1 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
description: SeaweedFS
|
description: SeaweedFS
|
||||||
name: seaweedfs
|
name: seaweedfs
|
||||||
appVersion: "3.73"
|
appVersion: "3.92"
|
||||||
# Dev note: Trigger a helm chart release by `git tag -a helm-<version>`
|
# Dev note: Trigger a helm chart release by `git tag -a helm-<version>`
|
||||||
version: 4.0.1
|
version: 4.0.392
|
||||||
@@ -57,7 +57,7 @@ Here is an example:
|
|||||||
|
|
||||||
to label a node to be able to run all pod types in k8s:
|
to label a node to be able to run all pod types in k8s:
|
||||||
```
|
```
|
||||||
kubectl label node YOUR_NODE_NAME sw-volume=true,sw-backend=true
|
kubectl label node YOUR_NODE_NAME sw-volume=true sw-backend=true
|
||||||
```
|
```
|
||||||
|
|
||||||
on production k8s deployment you will want each pod to have a different host,
|
on production k8s deployment you will want each pod to have a different host,
|
||||||
|
|||||||
@@ -1505,6 +1505,96 @@
|
|||||||
"title": "S3 Request Duration 99th percentile",
|
"title": "S3 Request Duration 99th percentile",
|
||||||
"type": "timeseries"
|
"type": "timeseries"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "${DS_PROMETHEUS}"
|
||||||
|
},
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "decbytes"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"h": 7,
|
||||||
|
"w": 12,
|
||||||
|
"x": 0,
|
||||||
|
"y": 36
|
||||||
|
},
|
||||||
|
"id": 84,
|
||||||
|
"links": [],
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"calcs": [],
|
||||||
|
"displayMode": "list",
|
||||||
|
"placement": "bottom",
|
||||||
|
"showLegend": true
|
||||||
|
},
|
||||||
|
"tooltip": {
|
||||||
|
"mode": "multi",
|
||||||
|
"sort": "none"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"pluginVersion": "10.3.1",
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"expr": "sum(rate(SeaweedFS_s3_bucket_traffic_received_bytes_total{namespace=\"$NAMESPACE\"}[$__interval])) by (bucket)",
|
||||||
|
"format": "time_series",
|
||||||
|
"hide": false,
|
||||||
|
"intervalFactor": 2,
|
||||||
|
"legendFormat": "{{bucket}}",
|
||||||
|
"refId": "A"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"title": "S3 Bucket Traffic Received",
|
||||||
|
"type": "timeseries"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "${DS_PROMETHEUS}"
|
||||||
|
},
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "decbytes"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"h": 7,
|
||||||
|
"w": 12,
|
||||||
|
"x": 12,
|
||||||
|
"y": 36
|
||||||
|
},
|
||||||
|
"id": 85,
|
||||||
|
"links": [],
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"calcs": [],
|
||||||
|
"displayMode": "list",
|
||||||
|
"placement": "bottom",
|
||||||
|
"showLegend": true
|
||||||
|
},
|
||||||
|
"tooltip": {
|
||||||
|
"mode": "multi",
|
||||||
|
"sort": "none"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"pluginVersion": "10.3.1",
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"expr": "sum(rate(SeaweedFS_s3_bucket_traffic_sent_bytes_total{namespace=\"$NAMESPACE\"}[$__interval])) by (bucket)",
|
||||||
|
"format": "time_series",
|
||||||
|
"hide": false,
|
||||||
|
"intervalFactor": 2,
|
||||||
|
"legendFormat": "{{bucket}}",
|
||||||
|
"refId": "A"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"title": "S3 Bucket Traffic Sent",
|
||||||
|
"type": "timeseries"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
@@ -1571,7 +1661,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 36
|
"y": 41
|
||||||
},
|
},
|
||||||
"id": 72,
|
"id": 72,
|
||||||
"links": [],
|
"links": [],
|
||||||
@@ -1689,7 +1779,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 43
|
"y": 50
|
||||||
},
|
},
|
||||||
"id": 73,
|
"id": 73,
|
||||||
"links": [],
|
"links": [],
|
||||||
@@ -1845,7 +1935,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 50
|
"y": 57
|
||||||
},
|
},
|
||||||
"id": 55,
|
"id": 55,
|
||||||
"links": [],
|
"links": [],
|
||||||
@@ -2002,7 +2092,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 57
|
"y": 64
|
||||||
},
|
},
|
||||||
"hideTimeOverride": false,
|
"hideTimeOverride": false,
|
||||||
"id": 59,
|
"id": 59,
|
||||||
@@ -2074,7 +2164,7 @@
|
|||||||
"h": 1,
|
"h": 1,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 64
|
"y": 71
|
||||||
},
|
},
|
||||||
"id": 62,
|
"id": 62,
|
||||||
"panels": [],
|
"panels": [],
|
||||||
@@ -2146,7 +2236,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 65
|
"y": 72
|
||||||
},
|
},
|
||||||
"id": 47,
|
"id": 47,
|
||||||
"links": [],
|
"links": [],
|
||||||
@@ -2289,7 +2379,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 12,
|
"x": 12,
|
||||||
"y": 65
|
"y": 72
|
||||||
},
|
},
|
||||||
"id": 40,
|
"id": 40,
|
||||||
"links": [],
|
"links": [],
|
||||||
@@ -2386,7 +2476,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 72
|
"y": 79
|
||||||
},
|
},
|
||||||
"id": 48,
|
"id": 48,
|
||||||
"links": [],
|
"links": [],
|
||||||
@@ -2496,7 +2586,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 79
|
"y": 86
|
||||||
},
|
},
|
||||||
"id": 50,
|
"id": 50,
|
||||||
"links": [],
|
"links": [],
|
||||||
@@ -2598,7 +2688,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 86
|
"y": 93
|
||||||
},
|
},
|
||||||
"id": 51,
|
"id": 51,
|
||||||
"links": [],
|
"links": [],
|
||||||
@@ -2711,7 +2801,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 94
|
"y": 101
|
||||||
},
|
},
|
||||||
"id": 12,
|
"id": 12,
|
||||||
"links": [],
|
"links": [],
|
||||||
@@ -2806,7 +2896,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 12,
|
"x": 12,
|
||||||
"y": 94
|
"y": 101
|
||||||
},
|
},
|
||||||
"id": 14,
|
"id": 14,
|
||||||
"links": [],
|
"links": [],
|
||||||
@@ -2848,7 +2938,7 @@
|
|||||||
"h": 1,
|
"h": 1,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 101
|
"y": 108
|
||||||
},
|
},
|
||||||
"id": 64,
|
"id": 64,
|
||||||
"panels": [],
|
"panels": [],
|
||||||
@@ -2921,7 +3011,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 102
|
"y": 109
|
||||||
},
|
},
|
||||||
"id": 52,
|
"id": 52,
|
||||||
"links": [],
|
"links": [],
|
||||||
@@ -3049,7 +3139,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 12,
|
"x": 12,
|
||||||
"y": 102
|
"y": 109
|
||||||
},
|
},
|
||||||
"id": 54,
|
"id": 54,
|
||||||
"links": [],
|
"links": [],
|
||||||
@@ -3146,7 +3236,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 109
|
"y": 116
|
||||||
},
|
},
|
||||||
"id": 53,
|
"id": 53,
|
||||||
"links": [],
|
"links": [],
|
||||||
@@ -3266,4 +3356,4 @@
|
|||||||
"uid": "a24009d7-cbda-4443-a132-1cc1c4677304",
|
"uid": "a24009d7-cbda-4443-a132-1cc1c4677304",
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"weekStart": ""
|
"weekStart": ""
|
||||||
}
|
}
|
||||||
@@ -73,6 +73,16 @@ Inject extra environment vars in the format key:value, if populated
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/* Return the proper sftp image */}}
|
||||||
|
{{- define "sftp.image" -}}
|
||||||
|
{{- if .Values.sftp.imageOverride -}}
|
||||||
|
{{- $imageOverride := .Values.sftp.imageOverride -}}
|
||||||
|
{{- printf "%s" $imageOverride -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- include "common.image" . }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{/* Return the proper volume image */}}
|
{{/* Return the proper volume image */}}
|
||||||
{{- define "volume.image" -}}
|
{{- define "volume.image" -}}
|
||||||
{{- if .Values.volume.imageOverride -}}
|
{{- if .Values.volume.imageOverride -}}
|
||||||
@@ -88,7 +98,7 @@ Inject extra environment vars in the format key:value, if populated
|
|||||||
{{- $registryName := default .Values.image.registry .Values.global.registry | toString -}}
|
{{- $registryName := default .Values.image.registry .Values.global.registry | toString -}}
|
||||||
{{- $repositoryName := .Values.image.repository | toString -}}
|
{{- $repositoryName := .Values.image.repository | toString -}}
|
||||||
{{- $name := .Values.global.imageName | toString -}}
|
{{- $name := .Values.global.imageName | toString -}}
|
||||||
{{- $tag := .Chart.AppVersion | toString -}}
|
{{- $tag := default .Chart.AppVersion .Values.image.tag | toString -}}
|
||||||
{{- if $registryName -}}
|
{{- if $registryName -}}
|
||||||
{{- printf "%s/%s%s:%s" $registryName $repositoryName $name $tag -}}
|
{{- printf "%s/%s%s:%s" $registryName $repositoryName $name $tag -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
@@ -134,14 +144,17 @@ Inject extra environment vars in the format key:value, if populated
|
|||||||
|
|
||||||
{{/* Return the proper imagePullSecrets */}}
|
{{/* Return the proper imagePullSecrets */}}
|
||||||
{{- define "seaweedfs.imagePullSecrets" -}}
|
{{- define "seaweedfs.imagePullSecrets" -}}
|
||||||
{{- if .Values.global.imagePullSecrets }}
|
{{- with .Values.global.imagePullSecrets }}
|
||||||
{{- if kindIs "string" .Values.global.imagePullSecrets }}
|
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: {{ .Values.global.imagePullSecrets }}
|
{{- if kindIs "string" . }}
|
||||||
{{- else }}
|
|
||||||
imagePullSecrets:
|
|
||||||
{{- range .Values.global.imagePullSecrets }}
|
|
||||||
- name: {{ . }}
|
- name: {{ . }}
|
||||||
|
{{- else }}
|
||||||
|
{{- range . }}
|
||||||
|
{{- if kindIs "string" . }}
|
||||||
|
- name: {{ . }}
|
||||||
|
{{- else }}
|
||||||
|
- {{ toYaml . }}
|
||||||
|
{{- end}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -165,3 +178,45 @@ Usage:
|
|||||||
{{- $value }}
|
{{- $value }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
getOrGeneratePassword will check if a password exists in a secret and return it,
|
||||||
|
or generate a new random password if it doesn't exist.
|
||||||
|
*/}}
|
||||||
|
{{- define "getOrGeneratePassword" -}}
|
||||||
|
{{- $params := . -}}
|
||||||
|
{{- $namespace := $params.namespace -}}
|
||||||
|
{{- $secretName := $params.secretName -}}
|
||||||
|
{{- $key := $params.key -}}
|
||||||
|
{{- $length := default 16 $params.length -}}
|
||||||
|
|
||||||
|
{{- $existingSecret := lookup "v1" "Secret" $namespace $secretName -}}
|
||||||
|
{{- if and $existingSecret (index $existingSecret.data $key) -}}
|
||||||
|
{{- index $existingSecret.data $key | b64dec -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- randAlphaNum $length -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- /*
|
||||||
|
Render a component’s topologySpreadConstraints exactly as given in values,
|
||||||
|
respecting string vs. list, and providing the component name for tpl lookups.
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
{{ include "seaweedfs.topologySpreadConstraints" (dict "Values" .Values "component" "filer") | nindent 8 }}
|
||||||
|
*/ -}}
|
||||||
|
{{- define "seaweedfs.topologySpreadConstraints" -}}
|
||||||
|
{{- $vals := .Values -}}
|
||||||
|
{{- $comp := .component -}}
|
||||||
|
{{- $section := index $vals $comp | default dict -}}
|
||||||
|
{{- $tsp := index $section "topologySpreadConstraints" -}}
|
||||||
|
{{- with $tsp }}
|
||||||
|
topologySpreadConstraints:
|
||||||
|
{{- if kindIs "string" $tsp }}
|
||||||
|
{{ tpl $tsp (dict "Values" $vals "component" $comp) }}
|
||||||
|
{{- else }}
|
||||||
|
{{ toYaml $tsp }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,427 @@
|
|||||||
|
{{- if .Values.allInOne.enabled }}
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-all-in-one
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: seaweedfs-all-in-one
|
||||||
|
{{- if .Values.allInOne.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.allInOne.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: seaweedfs-all-in-one
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: seaweedfs-all-in-one
|
||||||
|
{{- with .Values.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.allInOne.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{- with .Values.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.allInOne.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
restartPolicy: {{ default .Values.global.restartPolicy .Values.allInOne.restartPolicy }}
|
||||||
|
{{- if .Values.allInOne.affinity }}
|
||||||
|
affinity:
|
||||||
|
{{ tpl .Values.allInOne.affinity . | nindent 8 | trim }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.topologySpreadConstraints }}
|
||||||
|
{{- include "seaweedfs.topologySpreadConstraints" (dict "Values" .Values "component" "all-in-one") | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.tolerations }}
|
||||||
|
tolerations:
|
||||||
|
{{- tpl .Values.allInOne.tolerations . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
|
||||||
|
terminationGracePeriodSeconds: 60
|
||||||
|
enableServiceLinks: false
|
||||||
|
{{- if .Values.allInOne.priorityClassName }}
|
||||||
|
priorityClassName: {{ .Values.allInOne.priorityClassName | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.serviceAccountName }}
|
||||||
|
serviceAccountName: {{ .Values.allInOne.serviceAccountName | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.initContainers }}
|
||||||
|
initContainers:
|
||||||
|
{{- tpl .Values.allInOne.initContainers . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.podSecurityContext.enabled }}
|
||||||
|
securityContext:
|
||||||
|
{{- omit .Values.allInOne.podSecurityContext "enabled" | toYaml | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
containers:
|
||||||
|
- name: seaweedfs
|
||||||
|
image: {{ template "master.image" . }}
|
||||||
|
imagePullPolicy: {{ default "IfNotPresent" .Values.global.imagePullPolicy }}
|
||||||
|
env:
|
||||||
|
- name: POD_IP
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: status.podIP
|
||||||
|
- name: POD_NAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
|
- name: NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
- name: SEAWEEDFS_FULLNAME
|
||||||
|
value: "{{ template "seaweedfs.name" . }}"
|
||||||
|
{{- if .Values.allInOne.extraEnvironmentVars }}
|
||||||
|
{{- range $key, $value := .Values.allInOne.extraEnvironmentVars }}
|
||||||
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.global.extraEnvironmentVars }}
|
||||||
|
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
||||||
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
command:
|
||||||
|
- "/bin/sh"
|
||||||
|
- "-ec"
|
||||||
|
- |
|
||||||
|
/usr/bin/weed \
|
||||||
|
-v={{ .Values.global.loggingLevel }} \
|
||||||
|
server \
|
||||||
|
-dir=/data \
|
||||||
|
-master \
|
||||||
|
-volume \
|
||||||
|
-ip=${POD_IP} \
|
||||||
|
-ip.bind=0.0.0.0 \
|
||||||
|
{{- if .Values.allInOne.idleTimeout }}
|
||||||
|
-idleTimeout={{ .Values.allInOne.idleTimeout }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.dataCenter }}
|
||||||
|
-dataCenter={{ .Values.allInOne.dataCenter }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.rack }}
|
||||||
|
-rack={{ .Values.allInOne.rack }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.whiteList }}
|
||||||
|
-whiteList={{ .Values.allInOne.whiteList }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.disableHttp }}
|
||||||
|
-disableHttp={{ .Values.allInOne.disableHttp }} \
|
||||||
|
{{- end }}
|
||||||
|
-master.port={{ .Values.master.port }} \
|
||||||
|
{{- if .Values.global.enableReplication }}
|
||||||
|
-master.defaultReplication={{ .Values.global.replicationPlacement }} \
|
||||||
|
{{- else }}
|
||||||
|
-master.defaultReplication={{ .Values.master.defaultReplication }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.master.volumePreallocate }}
|
||||||
|
-master.volumePreallocate \
|
||||||
|
{{- end }}
|
||||||
|
-master.volumeSizeLimitMB={{ .Values.master.volumeSizeLimitMB }} \
|
||||||
|
{{- if .Values.master.garbageThreshold }}
|
||||||
|
-master.garbageThreshold={{ .Values.master.garbageThreshold }} \
|
||||||
|
{{- end }}
|
||||||
|
-volume.port={{ .Values.volume.port }} \
|
||||||
|
-volume.readMode={{ .Values.volume.readMode }} \
|
||||||
|
{{- if .Values.volume.imagesFixOrientation }}
|
||||||
|
-volume.images.fix.orientation \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.volume.index }}
|
||||||
|
-volume.index={{ .Values.volume.index }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.volume.fileSizeLimitMB }}
|
||||||
|
-volume.fileSizeLimitMB={{ .Values.volume.fileSizeLimitMB }} \
|
||||||
|
{{- end }}
|
||||||
|
-volume.minFreeSpacePercent={{ .Values.volume.minFreeSpacePercent }} \
|
||||||
|
-volume.compactionMBps={{ .Values.volume.compactionMBps }} \
|
||||||
|
{{- if .Values.allInOne.metricsPort }}
|
||||||
|
-metricsPort={{ .Values.allInOne.metricsPort }} \
|
||||||
|
{{- else if .Values.master.metricsPort }}
|
||||||
|
-metricsPort={{ .Values.master.metricsPort }} \
|
||||||
|
{{- end }}
|
||||||
|
-filer \
|
||||||
|
-filer.port={{ .Values.filer.port }} \
|
||||||
|
{{- if .Values.filer.disableDirListing }}
|
||||||
|
-filer.disableDirListing \
|
||||||
|
{{- end }}
|
||||||
|
-filer.dirListLimit={{ .Values.filer.dirListLimit }} \
|
||||||
|
{{- if .Values.global.enableReplication }}
|
||||||
|
-filer.defaultReplicaPlacement={{ .Values.global.replicationPlacement }} \
|
||||||
|
{{- else }}
|
||||||
|
-filer.defaultReplicaPlacement={{ .Values.filer.defaultReplicaPlacement }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.filer.maxMB }}
|
||||||
|
-filer.maxMB={{ .Values.filer.maxMB }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.filer.encryptVolumeData }}
|
||||||
|
-filer.encryptVolumeData \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.filer.filerGroup}}
|
||||||
|
-filer.filerGroup={{ .Values.filer.filerGroup}} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.filer.rack }}
|
||||||
|
-filer.rack={{ .Values.filer.rack }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.filer.dataCenter }}
|
||||||
|
-filer.dataCenter={{ .Values.filer.dataCenter }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.s3.enabled }}
|
||||||
|
-s3 \
|
||||||
|
-s3.port={{ .Values.s3.port }} \
|
||||||
|
{{- if .Values.s3.domainName }}
|
||||||
|
-s3.domainName={{ .Values.s3.domainName }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.global.enableSecurity }}
|
||||||
|
{{- if .Values.s3.httpsPort }}
|
||||||
|
-s3.port.https={{ .Values.s3.httpsPort }} \
|
||||||
|
{{- end }}
|
||||||
|
-s3.cert.file=/usr/local/share/ca-certificates/client/tls.crt \
|
||||||
|
-s3.key.file=/usr/local/share/ca-certificates/client/tls.key \
|
||||||
|
{{- end }}
|
||||||
|
{{- if eq (typeOf .Values.s3.allowEmptyFolder) "bool" }}
|
||||||
|
-s3.allowEmptyFolder={{ .Values.s3.allowEmptyFolder }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.s3.enableAuth }}
|
||||||
|
-s3.config=/etc/sw/s3/seaweedfs_s3_config \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.s3.auditLogConfig }}
|
||||||
|
-s3.auditLogConfig=/etc/sw/s3/s3_auditLogConfig.json \
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.sftp.enabled }}
|
||||||
|
-sftp \
|
||||||
|
-sftp.port={{ .Values.sftp.port }} \
|
||||||
|
{{- if .Values.sftp.sshPrivateKey }}
|
||||||
|
-sftp.sshPrivateKey={{ .Values.sftp.sshPrivateKey }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.hostKeysFolder }}
|
||||||
|
-sftp.hostKeysFolder={{ .Values.sftp.hostKeysFolder }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.authMethods }}
|
||||||
|
-sftp.authMethods={{ .Values.sftp.authMethods }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.maxAuthTries }}
|
||||||
|
-sftp.maxAuthTries={{ .Values.sftp.maxAuthTries }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.bannerMessage }}
|
||||||
|
-sftp.bannerMessage="{{ .Values.sftp.bannerMessage }}" \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.loginGraceTime }}
|
||||||
|
-sftp.loginGraceTime={{ .Values.sftp.loginGraceTime }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.clientAliveInterval }}
|
||||||
|
-sftp.clientAliveInterval={{ .Values.sftp.clientAliveInterval }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.clientAliveCountMax }}
|
||||||
|
-sftp.clientAliveCountMax={{ .Values.sftp.clientAliveCountMax }} \
|
||||||
|
{{- end }}
|
||||||
|
-sftp.userStoreFile=/etc/sw/sftp/seaweedfs_sftp_config \
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /data
|
||||||
|
{{- if and .Values.allInOne.s3.enabled (or .Values.s3.enableAuth .Values.filer.s3.enableAuth) }}
|
||||||
|
- name: config-s3-users
|
||||||
|
mountPath: /etc/sw/s3
|
||||||
|
readOnly: true
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.sftp.enabled }}
|
||||||
|
- name: config-ssh
|
||||||
|
mountPath: /etc/sw/ssh
|
||||||
|
readOnly: true
|
||||||
|
- mountPath: /etc/sw/sftp
|
||||||
|
name: config-users
|
||||||
|
readOnly: true
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.filer.notificationConfig }}
|
||||||
|
- name: notification-config
|
||||||
|
mountPath: /etc/seaweedfs/notification.toml
|
||||||
|
subPath: notification.toml
|
||||||
|
readOnly: true
|
||||||
|
{{- end }}
|
||||||
|
- name: master-config
|
||||||
|
mountPath: /etc/seaweedfs/master.toml
|
||||||
|
subPath: master.toml
|
||||||
|
readOnly: true
|
||||||
|
{{- if .Values.global.enableSecurity }}
|
||||||
|
- name: security-config
|
||||||
|
mountPath: /etc/seaweedfs/security.toml
|
||||||
|
subPath: security.toml
|
||||||
|
readOnly: true
|
||||||
|
- name: ca-cert
|
||||||
|
mountPath: /usr/local/share/ca-certificates/ca/
|
||||||
|
readOnly: true
|
||||||
|
- name: master-cert
|
||||||
|
mountPath: /usr/local/share/ca-certificates/master/
|
||||||
|
readOnly: true
|
||||||
|
- name: volume-cert
|
||||||
|
mountPath: /usr/local/share/ca-certificates/volume/
|
||||||
|
readOnly: true
|
||||||
|
- name: filer-cert
|
||||||
|
mountPath: /usr/local/share/ca-certificates/filer/
|
||||||
|
readOnly: true
|
||||||
|
- name: client-cert
|
||||||
|
mountPath: /usr/local/share/ca-certificates/client/
|
||||||
|
readOnly: true
|
||||||
|
{{- end }}
|
||||||
|
{{ tpl .Values.allInOne.extraVolumeMounts . | nindent 12 }}
|
||||||
|
ports:
|
||||||
|
- containerPort: {{ .Values.master.port }}
|
||||||
|
name: swfs-mas
|
||||||
|
- containerPort: {{ .Values.master.grpcPort }}
|
||||||
|
name: swfs-mas-grpc
|
||||||
|
- containerPort: {{ .Values.volume.port }}
|
||||||
|
name: swfs-vol
|
||||||
|
- containerPort: {{ .Values.volume.grpcPort }}
|
||||||
|
name: swfs-vol-grpc
|
||||||
|
- containerPort: {{ .Values.filer.port }}
|
||||||
|
name: swfs-fil
|
||||||
|
- containerPort: {{ .Values.filer.grpcPort }}
|
||||||
|
name: swfs-fil-grpc
|
||||||
|
{{- if .Values.allInOne.s3.enabled }}
|
||||||
|
- containerPort: {{ .Values.s3.port }}
|
||||||
|
name: swfs-s3
|
||||||
|
{{- if .Values.s3.httpsPort }}
|
||||||
|
- containerPort: {{ .Values.s3.httpsPort }}
|
||||||
|
name: swfs-s3-tls
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.sftp.enabled }}
|
||||||
|
- containerPort: {{ .Values.sftp.port }}
|
||||||
|
name: swfs-sftp
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.metricsPort }}
|
||||||
|
- containerPort: {{ .Values.allInOne.metricsPort }}
|
||||||
|
name: server-metrics
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.readinessProbe.enabled }}
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: {{ .Values.allInOne.readinessProbe.httpGet.path }}
|
||||||
|
port: {{ .Values.master.port }}
|
||||||
|
scheme: {{ .Values.allInOne.readinessProbe.scheme }}
|
||||||
|
initialDelaySeconds: {{ .Values.allInOne.readinessProbe.initialDelaySeconds }}
|
||||||
|
periodSeconds: {{ .Values.allInOne.readinessProbe.periodSeconds }}
|
||||||
|
successThreshold: {{ .Values.allInOne.readinessProbe.successThreshold }}
|
||||||
|
failureThreshold: {{ .Values.allInOne.readinessProbe.failureThreshold }}
|
||||||
|
timeoutSeconds: {{ .Values.allInOne.readinessProbe.timeoutSeconds }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.livenessProbe.enabled }}
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: {{ .Values.allInOne.livenessProbe.httpGet.path }}
|
||||||
|
port: {{ .Values.master.port }}
|
||||||
|
scheme: {{ .Values.allInOne.livenessProbe.scheme }}
|
||||||
|
initialDelaySeconds: {{ .Values.allInOne.livenessProbe.initialDelaySeconds }}
|
||||||
|
periodSeconds: {{ .Values.allInOne.livenessProbe.periodSeconds }}
|
||||||
|
successThreshold: {{ .Values.allInOne.livenessProbe.successThreshold }}
|
||||||
|
failureThreshold: {{ .Values.allInOne.livenessProbe.failureThreshold }}
|
||||||
|
timeoutSeconds: {{ .Values.allInOne.livenessProbe.timeoutSeconds }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.allInOne.resources }}
|
||||||
|
resources:
|
||||||
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.containerSecurityContext.enabled }}
|
||||||
|
securityContext:
|
||||||
|
{{- omit .Values.allInOne.containerSecurityContext "enabled" | toYaml | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.sidecars }}
|
||||||
|
{{- include "common.tplvalues.render" (dict "value" .Values.allInOne.sidecars "context" $) | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
{{- if eq .Values.allInOne.data.type "hostPath" }}
|
||||||
|
hostPath:
|
||||||
|
path: {{ .Values.allInOne.data.hostPathPrefix }}/seaweedfs-all-in-one-data/
|
||||||
|
type: DirectoryOrCreate
|
||||||
|
{{- else if eq .Values.allInOne.data.type "persistentVolumeClaim" }}
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ .Values.allInOne.data.claimName }}
|
||||||
|
{{- else if eq .Values.allInOne.data.type "emptyDir" }}
|
||||||
|
emptyDir: {}
|
||||||
|
{{- end }}
|
||||||
|
{{- if and .Values.allInOne.s3.enabled (or .Values.s3.enableAuth .Values.filer.s3.enableAuth) }}
|
||||||
|
- name: config-s3-users
|
||||||
|
secret:
|
||||||
|
defaultMode: 420
|
||||||
|
secretName: {{ default (printf "%s-s3-secret" (include "seaweedfs.name" .)) (or .Values.s3.existingConfigSecret .Values.filer.s3.existingConfigSecret) }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.allInOne.sftp.enabled }}
|
||||||
|
- name: config-ssh
|
||||||
|
secret:
|
||||||
|
defaultMode: 420
|
||||||
|
secretName: {{ default (printf "%s-sftp-ssh-secret" (include "seaweedfs.name" .)) .Values.sftp.existingSshConfigSecret }}
|
||||||
|
- name: config-users
|
||||||
|
secret:
|
||||||
|
defaultMode: 420
|
||||||
|
secretName: {{ default (printf "%s-sftp-secret" (include "seaweedfs.name" .)) .Values.sftp.existingConfigSecret }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.filer.notificationConfig }}
|
||||||
|
- name: notification-config
|
||||||
|
configMap:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-notification-config
|
||||||
|
{{- end }}
|
||||||
|
- name: master-config
|
||||||
|
configMap:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-master-config
|
||||||
|
{{- if .Values.global.enableSecurity }}
|
||||||
|
- name: security-config
|
||||||
|
configMap:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-security-config
|
||||||
|
- name: ca-cert
|
||||||
|
secret:
|
||||||
|
secretName: {{ template "seaweedfs.name" . }}-ca-cert
|
||||||
|
- name: master-cert
|
||||||
|
secret:
|
||||||
|
secretName: {{ template "seaweedfs.name" . }}-master-cert
|
||||||
|
- name: volume-cert
|
||||||
|
secret:
|
||||||
|
secretName: {{ template "seaweedfs.name" . }}-volume-cert
|
||||||
|
- name: filer-cert
|
||||||
|
secret:
|
||||||
|
secretName: {{ template "seaweedfs.name" . }}-filer-cert
|
||||||
|
- name: client-cert
|
||||||
|
secret:
|
||||||
|
secretName: {{ template "seaweedfs.name" . }}-client-cert
|
||||||
|
{{- end }}
|
||||||
|
{{ tpl .Values.allInOne.extraVolumes . | nindent 8 }}
|
||||||
|
{{- if .Values.allInOne.nodeSelector }}
|
||||||
|
nodeSelector:
|
||||||
|
{{ tpl .Values.allInOne.nodeSelector . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{{- if and .Values.allInOne.enabled (eq .Values.allInOne.data.type "persistentVolumeClaim") }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.allInOne.data.claimName }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: seaweedfs-all-in-one
|
||||||
|
{{- if .Values.allInOne.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.allInOne.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.allInOne.data.size }}
|
||||||
|
{{- if .Values.allInOne.data.storageClass }}
|
||||||
|
storageClassName: {{ .Values.allInOne.data.storageClass }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
{{- if .Values.allInOne.enabled }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-all-in-one
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: seaweedfs-all-in-one
|
||||||
|
{{- if .Values.allInOne.service.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.allInOne.service.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
internalTrafficPolicy: {{ .Values.allInOne.service.internalTrafficPolicy | default "Cluster" }}
|
||||||
|
ports:
|
||||||
|
# Master ports
|
||||||
|
- name: "swfs-master"
|
||||||
|
port: {{ .Values.master.port }}
|
||||||
|
targetPort: {{ .Values.master.port }}
|
||||||
|
protocol: TCP
|
||||||
|
- name: "swfs-master-grpc"
|
||||||
|
port: {{ .Values.master.grpcPort }}
|
||||||
|
targetPort: {{ .Values.master.grpcPort }}
|
||||||
|
protocol: TCP
|
||||||
|
|
||||||
|
# Volume ports
|
||||||
|
- name: "swfs-volume"
|
||||||
|
port: {{ .Values.volume.port }}
|
||||||
|
targetPort: {{ .Values.volume.port }}
|
||||||
|
protocol: TCP
|
||||||
|
- name: "swfs-volume-grpc"
|
||||||
|
port: {{ .Values.volume.grpcPort }}
|
||||||
|
targetPort: {{ .Values.volume.grpcPort }}
|
||||||
|
protocol: TCP
|
||||||
|
|
||||||
|
# Filer ports
|
||||||
|
- name: "swfs-filer"
|
||||||
|
port: {{ .Values.filer.port }}
|
||||||
|
targetPort: {{ .Values.filer.port }}
|
||||||
|
protocol: TCP
|
||||||
|
- name: "swfs-filer-grpc"
|
||||||
|
port: {{ .Values.filer.grpcPort }}
|
||||||
|
targetPort: {{ .Values.filer.grpcPort }}
|
||||||
|
protocol: TCP
|
||||||
|
|
||||||
|
# S3 ports (if enabled)
|
||||||
|
{{- if .Values.allInOne.s3.enabled }}
|
||||||
|
- name: "swfs-s3"
|
||||||
|
port: {{ if .Values.allInOne.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }}
|
||||||
|
targetPort: {{ if .Values.allInOne.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }}
|
||||||
|
protocol: TCP
|
||||||
|
{{- if and .Values.allInOne.s3.enabled .Values.s3.httpsPort }}
|
||||||
|
- name: "swfs-s3-tls"
|
||||||
|
port: {{ .Values.s3.httpsPort }}
|
||||||
|
targetPort: {{ .Values.s3.httpsPort }}
|
||||||
|
protocol: TCP
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
# SFTP ports (if enabled)
|
||||||
|
{{- if .Values.allInOne.sftp.enabled }}
|
||||||
|
- name: "swfs-sftp"
|
||||||
|
port: {{ .Values.sftp.port }}
|
||||||
|
targetPort: {{ .Values.sftp.port }}
|
||||||
|
protocol: TCP
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
# Server metrics port (single metrics endpoint for all services)
|
||||||
|
{{- if .Values.allInOne.metricsPort }}
|
||||||
|
- name: "server-metrics"
|
||||||
|
port: {{ .Values.allInOne.metricsPort }}
|
||||||
|
targetPort: {{ .Values.allInOne.metricsPort }}
|
||||||
|
protocol: TCP
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
app.kubernetes.io/component: seaweedfs-all-in-one
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
{{- if .Values.allInOne.enabled }}
|
||||||
|
{{- if .Values.global.monitoring.enabled }}
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-all-in-one
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: all-in-one
|
||||||
|
{{- with .Values.global.monitoring.additionalLabels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
endpoints:
|
||||||
|
{{- if .Values.allInOne.metricsPort }}
|
||||||
|
- interval: 30s
|
||||||
|
port: server-metrics
|
||||||
|
scrapeTimeout: 5s
|
||||||
|
{{- end }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
app.kubernetes.io/component: seaweedfs-all-in-one
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -9,6 +9,7 @@ metadata:
|
|||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: objectstorage-provisioner
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.cosi.replicas }}
|
replicas: {{ .Values.cosi.replicas }}
|
||||||
selector:
|
selector:
|
||||||
@@ -39,6 +40,13 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: {{ default .Values.global.restartPolicy .Values.cosi.restartPolicy }}
|
restartPolicy: {{ default .Values.global.restartPolicy .Values.cosi.restartPolicy }}
|
||||||
|
{{- if .Values.cosi.affinity }}
|
||||||
|
affinity:
|
||||||
|
{{ tpl .Values.cosi.affinity . | nindent 8 | trim }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.cosi.topologySpreadConstraints }}
|
||||||
|
{{- include "seaweedfs.topologySpreadConstraints" (dict "Values" .Values "component" "objectstorage-provisioner") | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.cosi.tolerations }}
|
{{- if .Values.cosi.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{ tpl .Values.cosi.tolerations . | nindent 8 | trim }}
|
{{ tpl .Values.cosi.tolerations . | nindent 8 | trim }}
|
||||||
@@ -140,6 +148,10 @@ spec:
|
|||||||
mountPath: /usr/local/share/ca-certificates/client/
|
mountPath: /usr/local/share/ca-certificates/client/
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ tpl .Values.cosi.extraVolumeMounts . | nindent 12 | trim }}
|
{{ tpl .Values.cosi.extraVolumeMounts . | nindent 12 | trim }}
|
||||||
|
{{- with .Values.cosi.resources }}
|
||||||
|
resources:
|
||||||
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
- name: seaweedfs-cosi-sidecar
|
- name: seaweedfs-cosi-sidecar
|
||||||
image: "{{ .Values.cosi.sidecar.image }}"
|
image: "{{ .Values.cosi.sidecar.image }}"
|
||||||
imagePullPolicy: {{ default "IfNotPresent" .Values.global.imagePullPolicy }}
|
imagePullPolicy: {{ default "IfNotPresent" .Values.global.imagePullPolicy }}
|
||||||
@@ -153,7 +165,7 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/cosi
|
- mountPath: /var/lib/cosi
|
||||||
name: socket
|
name: socket
|
||||||
{{- with .Values.cosi.resources }}
|
{{- with .Values.cosi.sidecar.resources }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -173,7 +185,7 @@ spec:
|
|||||||
{{- if .Values.cosi.existingConfigSecret }}
|
{{- if .Values.cosi.existingConfigSecret }}
|
||||||
secretName: {{ .Values.cosi.existingConfigSecret }}
|
secretName: {{ .Values.cosi.existingConfigSecret }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
secretName: seaweedfs-client-cert
|
secretName: seaweedfs-s3-secret
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.global.enableSecurity }}
|
{{- if .Values.global.enableSecurity }}
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ metadata:
|
|||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: filer
|
app.kubernetes.io/component: filer
|
||||||
|
{{- if .Values.filer.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.filer.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
secretName: {{ template "seaweedfs.name" . }}-filer-cert
|
secretName: {{ template "seaweedfs.name" . }}-filer-cert
|
||||||
issuerRef:
|
issuerRef:
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ metadata:
|
|||||||
{{- if .Values.filer.metricsPort }}
|
{{- if .Values.filer.metricsPort }}
|
||||||
monitoring: "true"
|
monitoring: "true"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.filer.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.filer.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
clusterIP: None
|
clusterIP: None
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -12,6 +12,10 @@ metadata:
|
|||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: filer
|
app.kubernetes.io/component: filer
|
||||||
|
{{- if .Values.filer.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.filer.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
clusterIP: None
|
clusterIP: None
|
||||||
publishNotReadyAddresses: true
|
publishNotReadyAddresses: true
|
||||||
|
|||||||
@@ -15,6 +15,10 @@ metadata:
|
|||||||
{{- with .Values.global.monitoring.additionalLabels }}
|
{{- with .Values.global.monitoring.additionalLabels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.filer.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.filer.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- interval: 30s
|
- interval: 30s
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ metadata:
|
|||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: filer
|
app.kubernetes.io/component: filer
|
||||||
|
{{- if .Values.filer.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.filer.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
serviceName: {{ template "seaweedfs.name" . }}-filer
|
serviceName: {{ template "seaweedfs.name" . }}-filer
|
||||||
podManagementPolicy: {{ .Values.filer.podManagementPolicy }}
|
podManagementPolicy: {{ .Values.filer.podManagementPolicy }}
|
||||||
@@ -57,6 +61,10 @@ spec:
|
|||||||
affinity:
|
affinity:
|
||||||
{{ tpl .Values.filer.affinity . | nindent 8 | trim }}
|
{{ tpl .Values.filer.affinity . | nindent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.filer.topologySpreadConstraints }}
|
||||||
|
topologySpreadConstraints:
|
||||||
|
{{- include "seaweedfs.topologySpreadConstraints" (dict "Values" .Values "component" "filer") | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.filer.tolerations }}
|
{{- if .Values.filer.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{ tpl .Values.filer.tolerations . | nindent 8 | trim }}
|
{{ tpl .Values.filer.tolerations . | nindent 8 | trim }}
|
||||||
@@ -154,6 +162,9 @@ spec:
|
|||||||
{{- if .Values.filer.metricsPort }}
|
{{- if .Values.filer.metricsPort }}
|
||||||
-metricsPort={{ .Values.filer.metricsPort }} \
|
-metricsPort={{ .Values.filer.metricsPort }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.filer.metricsIp }}
|
||||||
|
-metricsIp={{ .Values.filer.metricsIp }} \
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.filer.redirectOnRead }}
|
{{- if .Values.filer.redirectOnRead }}
|
||||||
-redirectOnRead \
|
-redirectOnRead \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -165,7 +176,7 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
-dirListLimit={{ .Values.filer.dirListLimit }} \
|
-dirListLimit={{ .Values.filer.dirListLimit }} \
|
||||||
{{- if .Values.global.enableReplication }}
|
{{- if .Values.global.enableReplication }}
|
||||||
-defaultReplicaPlacement={{ .Values.global.replicationPlacment }} \
|
-defaultReplicaPlacement={{ .Values.global.replicationPlacement }} \
|
||||||
{{- else }}
|
{{- else }}
|
||||||
-defaultReplicaPlacement={{ .Values.filer.defaultReplicaPlacement }} \
|
-defaultReplicaPlacement={{ .Values.filer.defaultReplicaPlacement }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -179,9 +190,16 @@ spec:
|
|||||||
-encryptVolumeData \
|
-encryptVolumeData \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
-ip=${POD_IP} \
|
-ip=${POD_IP} \
|
||||||
|
-ip.bind={{ .Values.filer.ipBind }} \
|
||||||
{{- if .Values.filer.filerGroup}}
|
{{- if .Values.filer.filerGroup}}
|
||||||
-filerGroup={{ .Values.filer.filerGroup}} \
|
-filerGroup={{ .Values.filer.filerGroup}} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.filer.rack }}
|
||||||
|
-rack={{ .Values.filer.rack }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.filer.dataCenter }}
|
||||||
|
-dataCenter={{ .Values.filer.dataCenter }} \
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.filer.s3.enabled }}
|
{{- if .Values.filer.s3.enabled }}
|
||||||
-s3 \
|
-s3 \
|
||||||
-s3.port={{ .Values.filer.s3.port }} \
|
-s3.port={{ .Values.filer.s3.port }} \
|
||||||
@@ -195,7 +213,7 @@ spec:
|
|||||||
-s3.cert.file=/usr/local/share/ca-certificates/client/tls.crt \
|
-s3.cert.file=/usr/local/share/ca-certificates/client/tls.crt \
|
||||||
-s3.key.file=/usr/local/share/ca-certificates/client/tls.key \
|
-s3.key.file=/usr/local/share/ca-certificates/client/tls.key \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.filer.s3.allowEmptyFolder }}
|
{{- if eq (typeOf .Values.filer.s3.allowEmptyFolder) "bool" }}
|
||||||
-s3.allowEmptyFolder={{ .Values.filer.s3.allowEmptyFolder }} \
|
-s3.allowEmptyFolder={{ .Values.filer.s3.allowEmptyFolder }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.filer.s3.enableAuth }}
|
{{- if .Values.filer.s3.enableAuth }}
|
||||||
@@ -205,7 +223,10 @@ spec:
|
|||||||
-s3.auditLogConfig=/etc/sw/filer_s3_auditLogConfig.json \
|
-s3.auditLogConfig=/etc/sw/filer_s3_auditLogConfig.json \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
-master={{ if .Values.global.masterServer }}{{.Values.global.masterServer}}{{ else }}{{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master.{{ $.Release.Namespace }}:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }}{{ end }}
|
-master={{ if .Values.global.masterServer }}{{.Values.global.masterServer}}{{ else }}{{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master.{{ $.Release.Namespace }}:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }}{{ end }} \
|
||||||
|
{{- range .Values.filer.extraArgs }}
|
||||||
|
{{ . }} \
|
||||||
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- if (or (eq .Values.filer.logs.type "hostPath") (eq .Values.filer.logs.type "persistentVolumeClaim") (eq .Values.filer.logs.type "emptyDir")) }}
|
{{- if (or (eq .Values.filer.logs.type "hostPath") (eq .Values.filer.logs.type "persistentVolumeClaim") (eq .Values.filer.logs.type "emptyDir")) }}
|
||||||
- name: seaweedfs-filer-log-volume
|
- name: seaweedfs-filer-log-volume
|
||||||
@@ -220,6 +241,12 @@ spec:
|
|||||||
- name: data-filer
|
- name: data-filer
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.filer.notificationConfig }}
|
||||||
|
- name: notification-config
|
||||||
|
readOnly: true
|
||||||
|
mountPath: /etc/seaweedfs/notification.toml
|
||||||
|
subPath: notification.toml
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.global.enableSecurity }}
|
{{- if .Values.global.enableSecurity }}
|
||||||
- name: security-config
|
- name: security-config
|
||||||
readOnly: true
|
readOnly: true
|
||||||
@@ -335,6 +362,11 @@ spec:
|
|||||||
secretName: seaweedfs-s3-secret
|
secretName: seaweedfs-s3-secret
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.filer.notificationConfig }}
|
||||||
|
- name: notification-config
|
||||||
|
configMap:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-notification-config
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.global.enableSecurity }}
|
{{- if .Values.global.enableSecurity }}
|
||||||
- name: security-config
|
- name: security-config
|
||||||
configMap:
|
configMap:
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ metadata:
|
|||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: master
|
app.kubernetes.io/component: master
|
||||||
|
{{- if .Values.master.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.master.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
secretName: {{ template "seaweedfs.name" . }}-master-cert
|
secretName: {{ template "seaweedfs.name" . }}-master-cert
|
||||||
issuerRef:
|
issuerRef:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.master.enabled }}
|
{{- if or .Values.master.enabled .Values.allInOne.enabled }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
@@ -9,6 +9,10 @@ metadata:
|
|||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- if .Values.master.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.master.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
data:
|
data:
|
||||||
master.toml: |-
|
master.toml: |-
|
||||||
{{ .Values.master.config | nindent 4 }}
|
{{ .Values.master.config | nindent 4 }}
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ metadata:
|
|||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
annotations:
|
annotations:
|
||||||
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
|
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
|
||||||
|
{{- if .Values.master.annotations }}
|
||||||
|
{{- toYaml .Values.master.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
clusterIP: None
|
clusterIP: None
|
||||||
publishNotReadyAddresses: true
|
publishNotReadyAddresses: true
|
||||||
|
|||||||
@@ -15,6 +15,10 @@ metadata:
|
|||||||
{{- with .Values.global.monitoring.additionalLabels }}
|
{{- with .Values.global.monitoring.additionalLabels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.master.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.master.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- interval: 30s
|
- interval: 30s
|
||||||
|
|||||||
@@ -9,6 +9,11 @@ metadata:
|
|||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: master
|
||||||
|
{{- if .Values.master.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.master.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
serviceName: {{ template "seaweedfs.name" . }}-master
|
serviceName: {{ template "seaweedfs.name" . }}-master
|
||||||
podManagementPolicy: {{ .Values.master.podManagementPolicy }}
|
podManagementPolicy: {{ .Values.master.podManagementPolicy }}
|
||||||
@@ -50,6 +55,9 @@ spec:
|
|||||||
affinity:
|
affinity:
|
||||||
{{ tpl .Values.master.affinity . | nindent 8 | trim }}
|
{{ tpl .Values.master.affinity . | nindent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.master.topologySpreadConstraints }}
|
||||||
|
{{- include "seaweedfs.topologySpreadConstraints" (dict "Values" .Values "component" "master") | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.master.tolerations }}
|
{{- if .Values.master.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{ tpl .Values.master.tolerations . | nindent 8 | trim }}
|
{{ tpl .Values.master.tolerations . | nindent 8 | trim }}
|
||||||
@@ -131,7 +139,7 @@ spec:
|
|||||||
-mdir=/data \
|
-mdir=/data \
|
||||||
-ip.bind={{ .Values.master.ipBind }} \
|
-ip.bind={{ .Values.master.ipBind }} \
|
||||||
{{- if .Values.global.enableReplication }}
|
{{- if .Values.global.enableReplication }}
|
||||||
-defaultReplication={{ .Values.global.replicationPlacment }} \
|
-defaultReplication={{ .Values.global.replicationPlacement }} \
|
||||||
{{- else }}
|
{{- else }}
|
||||||
-defaultReplication={{ .Values.master.defaultReplication }} \
|
-defaultReplication={{ .Values.master.defaultReplication }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -149,18 +157,36 @@ spec:
|
|||||||
{{- if .Values.master.metricsPort }}
|
{{- if .Values.master.metricsPort }}
|
||||||
-metricsPort={{ .Values.master.metricsPort }} \
|
-metricsPort={{ .Values.master.metricsPort }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.master.metricsIp }}
|
||||||
|
-metricsIp={{ .Values.master.metricsIp }} \
|
||||||
|
{{- end }}
|
||||||
-volumeSizeLimitMB={{ .Values.master.volumeSizeLimitMB }} \
|
-volumeSizeLimitMB={{ .Values.master.volumeSizeLimitMB }} \
|
||||||
{{- if .Values.master.disableHttp }}
|
{{- if .Values.master.disableHttp }}
|
||||||
-disableHttp \
|
-disableHttp \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.master.pulseSeconds }}
|
{{- if .Values.master.resumeState }}
|
||||||
-pulseSeconds={{ .Values.master.pulseSeconds }} \
|
-resumeState \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.master.raftHashicorp }}
|
||||||
|
-raftHashicorp \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.master.raftBootstrap }}
|
||||||
|
-raftBootstrap \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.master.electionTimeout }}
|
||||||
|
-electionTimeout={{ .Values.master.electionTimeout }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.master.heartbeatInterval }}
|
||||||
|
-heartbeatInterval={{ .Values.master.heartbeatInterval }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.master.garbageThreshold }}
|
{{- if .Values.master.garbageThreshold }}
|
||||||
-garbageThreshold={{ .Values.master.garbageThreshold }} \
|
-garbageThreshold={{ .Values.master.garbageThreshold }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
-ip=${POD_NAME}.${SEAWEEDFS_FULLNAME}-master.{{ .Release.Namespace }} \
|
-ip=${POD_NAME}.${SEAWEEDFS_FULLNAME}-master.{{ .Release.Namespace }} \
|
||||||
-peers={{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master.{{ $.Release.Namespace }}:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }}
|
-peers={{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master.{{ $.Release.Namespace }}:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }} \
|
||||||
|
{{- range .Values.master.extraArgs }}
|
||||||
|
{{ . }} \
|
||||||
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name : data-{{ .Release.Namespace }}
|
- name : data-{{ .Release.Namespace }}
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
{{- if and .Values.filer.enabled .Values.filer.notificationConfig }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-notification-config
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- if .Values.filer.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.filer.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
data:
|
||||||
|
notification.toml: |-
|
||||||
|
{{ .Values.filer.notificationConfig | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
@@ -32,9 +32,9 @@ spec:
|
|||||||
- name: WEED_CLUSTER_DEFAULT
|
- name: WEED_CLUSTER_DEFAULT
|
||||||
value: "sw"
|
value: "sw"
|
||||||
- name: WEED_CLUSTER_SW_MASTER
|
- name: WEED_CLUSTER_SW_MASTER
|
||||||
value: "{{ template "seaweedfs.name" . }}-master.{{ .Release.Namespace }}:9333"
|
value: "{{ template "seaweedfs.name" . }}-master.{{ .Release.Namespace }}:{{ .Values.master.port }}"
|
||||||
- name: WEED_CLUSTER_SW_FILER
|
- name: WEED_CLUSTER_SW_FILER
|
||||||
value: "{{ template "seaweedfs.name" . }}-filer-client.{{ .Release.Namespace }}:8888"
|
value: "{{ template "seaweedfs.name" . }}-filer-client.{{ .Release.Namespace }}:{{ .Values.filer.port }}"
|
||||||
- name: POD_IP
|
- name: POD_IP
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
@@ -53,6 +53,26 @@ spec:
|
|||||||
- "/bin/sh"
|
- "/bin/sh"
|
||||||
- "-ec"
|
- "-ec"
|
||||||
- |
|
- |
|
||||||
|
wait_for_service() {
|
||||||
|
local url=$1
|
||||||
|
local max_attempts=60 # 5 minutes total (5s * 60)
|
||||||
|
local attempt=1
|
||||||
|
|
||||||
|
echo "Waiting for service at $url..."
|
||||||
|
while [ $attempt -le $max_attempts ]; do
|
||||||
|
if wget -q --spider "$url" >/dev/null 2>&1; then
|
||||||
|
echo "Service at $url is up!"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
echo "Attempt $attempt: Service not ready yet, retrying in 5s..."
|
||||||
|
sleep 5
|
||||||
|
attempt=$((attempt + 1))
|
||||||
|
done
|
||||||
|
echo "Service at $url failed to become ready within 5 minutes"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
wait_for_service "http://$WEED_CLUSTER_SW_MASTER{{ .Values.master.readinessProbe.httpGet.path }}"
|
||||||
|
wait_for_service "http://$WEED_CLUSTER_SW_FILER{{ .Values.filer.readinessProbe.httpGet.path }}"
|
||||||
{{- range $reg, $props := $.Values.filer.s3.createBuckets }}
|
{{- range $reg, $props := $.Values.filer.s3.createBuckets }}
|
||||||
exec /bin/echo \
|
exec /bin/echo \
|
||||||
"s3.bucket.create --name {{ $props.name }}" |\
|
"s3.bucket.create --name {{ $props.name }}" |\
|
||||||
|
|||||||
@@ -9,12 +9,16 @@ metadata:
|
|||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: s3
|
||||||
|
{{- if .Values.s3.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.s3.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.s3.replicas }}
|
replicas: {{ .Values.s3.replicas }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: s3
|
app.kubernetes.io/component: s3
|
||||||
template:
|
template:
|
||||||
@@ -39,6 +43,13 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: {{ default .Values.global.restartPolicy .Values.s3.restartPolicy }}
|
restartPolicy: {{ default .Values.global.restartPolicy .Values.s3.restartPolicy }}
|
||||||
|
{{- if .Values.s3.affinity }}
|
||||||
|
affinity:
|
||||||
|
{{ tpl .Values.s3.affinity . | nindent 8 | trim }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.s3.topologySpreadConstraints }}
|
||||||
|
{{- include "seaweedfs.topologySpreadConstraints" (dict "Values" .Values "component" "s3") | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.s3.tolerations }}
|
{{- if .Values.s3.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{ tpl .Values.s3.tolerations . | nindent 8 | trim }}
|
{{ tpl .Values.s3.tolerations . | nindent 8 | trim }}
|
||||||
@@ -131,7 +142,7 @@ spec:
|
|||||||
{{- if .Values.s3.domainName }}
|
{{- if .Values.s3.domainName }}
|
||||||
-domainName={{ .Values.s3.domainName }} \
|
-domainName={{ .Values.s3.domainName }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.s3.allowEmptyFolder }}
|
{{- if eq (typeOf .Values.s3.allowEmptyFolder) "bool" }}
|
||||||
-allowEmptyFolder={{ .Values.s3.allowEmptyFolder }} \
|
-allowEmptyFolder={{ .Values.s3.allowEmptyFolder }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.s3.enableAuth }}
|
{{- if .Values.s3.enableAuth }}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{{- if or (and .Values.filer.s3.enabled .Values.filer.s3.enableAuth (not .Values.filer.s3.existingConfigSecret)) (and .Values.s3.enabled .Values.s3.enableAuth (not .Values.s3.existingConfigSecret)) }}
|
{{- if or (and (or .Values.s3.enabled .Values.allInOne.enabled) .Values.s3.enableAuth (not .Values.s3.existingConfigSecret)) (and .Values.filer.s3.enabled .Values.filer.s3.enableAuth (not .Values.filer.s3.existingConfigSecret)) }}
|
||||||
{{- $access_key_admin := randAlphaNum 16 -}}
|
{{- $access_key_admin := include "getOrGeneratePassword" (dict "namespace" .Release.Namespace "secretName" "seaweedfs-s3-secret" "key" "admin_access_key_id" "length" 20) -}}
|
||||||
{{- $secret_key_admin := randAlphaNum 32 -}}
|
{{- $secret_key_admin := include "getOrGeneratePassword" (dict "namespace" .Release.Namespace "secretName" "seaweedfs-s3-secret" "key" "admin_secret_access_key" "length" 40) -}}
|
||||||
{{- $access_key_read := randAlphaNum 16 -}}
|
{{- $access_key_read := include "getOrGeneratePassword" (dict "namespace" .Release.Namespace "secretName" "seaweedfs-s3-secret" "key" "read_access_key_id" "length" 20) -}}
|
||||||
{{- $secret_key_read := randAlphaNum 32 -}}
|
{{- $secret_key_read := include "getOrGeneratePassword" (dict "namespace" .Release.Namespace "secretName" "seaweedfs-s3-secret" "key" "read_secret_access_key" "length" 40) -}}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
type: Opaque
|
type: Opaque
|
||||||
@@ -11,7 +11,7 @@ metadata:
|
|||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
annotations:
|
annotations:
|
||||||
"helm.sh/resource-policy": keep
|
"helm.sh/resource-policy": keep
|
||||||
"helm.sh/hook": "pre-install"
|
"helm.sh/hook": "pre-install,pre-upgrade"
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
@@ -32,4 +32,4 @@ stringData:
|
|||||||
s3_auditLogConfig.json: |
|
s3_auditLogConfig.json: |
|
||||||
{{ toJson .Values.s3.auditLogConfig | nindent 4 }}
|
{{ toJson .Values.s3.auditLogConfig | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -9,6 +9,10 @@ metadata:
|
|||||||
app.kubernetes.io/component: s3
|
app.kubernetes.io/component: s3
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- if .Values.s3.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.s3.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
internalTrafficPolicy: {{ .Values.s3.internalTrafficPolicy | default "Cluster" }}
|
internalTrafficPolicy: {{ .Values.s3.internalTrafficPolicy | default "Cluster" }}
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -15,6 +15,10 @@ metadata:
|
|||||||
{{- with .Values.global.monitoring.additionalLabels }}
|
{{- with .Values.global.monitoring.additionalLabels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.s3.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.s3.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- interval: 30s
|
- interval: 30s
|
||||||
@@ -22,8 +26,8 @@ spec:
|
|||||||
scrapeTimeout: 5s
|
scrapeTimeout: 5s
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
component: s3
|
app.kubernetes.io/component: s3
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -1,20 +1,19 @@
|
|||||||
{{- if .Values.global.monitoring.enabled }}
|
{{- if .Values.global.monitoring.enabled }}
|
||||||
{{- $files := .Files.Glob "dashboards/*.json" }}
|
{{- $files := .Files.Glob "dashboards/*.json" }}
|
||||||
{{- if $files }}
|
{{- if $files }}
|
||||||
apiVersion: v1
|
{{- range $path, $file := $files }}
|
||||||
kind: ConfigMapList
|
|
||||||
items:
|
|
||||||
{{- range $path, $fileContents := $files }}
|
|
||||||
{{- $dashboardName := regexReplaceAll "(^.*/)(.*)\\.json$" $path "${2}" }}
|
{{- $dashboardName := regexReplaceAll "(^.*/)(.*)\\.json$" $path "${2}" }}
|
||||||
- apiVersion: v1
|
---
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
metadata:
|
kind: ConfigMap
|
||||||
name: {{ printf "%s" $dashboardName | lower | replace "_" "-" }}
|
metadata:
|
||||||
namespace: {{ $.Release.Namespace }}
|
name: {{ printf "%s" $dashboardName | lower | replace "_" "-" }}
|
||||||
labels:
|
namespace: {{ $.Release.Namespace }}
|
||||||
grafana_dashboard: "1"
|
labels:
|
||||||
data:
|
grafana_dashboard: "1"
|
||||||
{{ $dashboardName }}.json: {{ $.Files.Get $path | toJson }}
|
data:
|
||||||
|
{{ $dashboardName }}.json: |-
|
||||||
|
{{ toString $file | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
@@ -0,0 +1,300 @@
|
|||||||
|
{{- if .Values.sftp.enabled }}
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-sftp
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: sftp
|
||||||
|
{{- if .Values.sftp.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.sftp.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
replicas: {{ .Values.sftp.replicas }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: sftp
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: sftp
|
||||||
|
{{ with .Values.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.sftp.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{ with .Values.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.sftp.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
restartPolicy: {{ default .Values.global.restartPolicy .Values.sftp.restartPolicy }}
|
||||||
|
{{- if .Values.sftp.affinity }}
|
||||||
|
affinity:
|
||||||
|
{{ tpl .Values.sftp.affinity . | nindent 8 | trim }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.topologySpreadConstraints }}
|
||||||
|
{{- include "seaweedfs.topologySpreadConstraints" (dict "Values" .Values "component" "sftp") | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.tolerations }}
|
||||||
|
tolerations:
|
||||||
|
{{ tpl .Values.sftp.tolerations . | nindent 8 | trim }}
|
||||||
|
{{- end }}
|
||||||
|
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
|
||||||
|
terminationGracePeriodSeconds: 10
|
||||||
|
{{- if .Values.sftp.priorityClassName }}
|
||||||
|
priorityClassName: {{ .Values.sftp.priorityClassName | quote }}
|
||||||
|
{{- end }}
|
||||||
|
enableServiceLinks: false
|
||||||
|
{{- if .Values.sftp.serviceAccountName }}
|
||||||
|
serviceAccountName: {{ .Values.sftp.serviceAccountName | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.initContainers }}
|
||||||
|
initContainers:
|
||||||
|
{{ tpl .Values.sftp.initContainers . | nindent 8 | trim }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.podSecurityContext.enabled }}
|
||||||
|
securityContext: {{- omit .Values.sftp.podSecurityContext "enabled" | toYaml | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
containers:
|
||||||
|
- name: seaweedfs
|
||||||
|
image: {{ template "sftp.image" . }}
|
||||||
|
imagePullPolicy: {{ default "IfNotPresent" .Values.global.imagePullPolicy }}
|
||||||
|
env:
|
||||||
|
- name: POD_IP
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: status.podIP
|
||||||
|
- name: POD_NAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
|
- name: NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
- name: SEAWEEDFS_FULLNAME
|
||||||
|
value: "{{ template "seaweedfs.name" . }}"
|
||||||
|
{{- if .Values.sftp.extraEnvironmentVars }}
|
||||||
|
{{- range $key, $value := .Values.sftp.extraEnvironmentVars }}
|
||||||
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 | trim }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.global.extraEnvironmentVars }}
|
||||||
|
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
||||||
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 | trim }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
command:
|
||||||
|
- "/bin/sh"
|
||||||
|
- "-ec"
|
||||||
|
- |
|
||||||
|
exec /usr/bin/weed \
|
||||||
|
{{- if or (eq .Values.sftp.logs.type "hostPath") (eq .Values.sftp.logs.type "emptyDir") }}
|
||||||
|
-logdir=/logs \
|
||||||
|
{{- else }}
|
||||||
|
-logtostderr=true \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.loggingOverrideLevel }}
|
||||||
|
-v={{ .Values.sftp.loggingOverrideLevel }} \
|
||||||
|
{{- else }}
|
||||||
|
-v={{ .Values.global.loggingLevel }} \
|
||||||
|
{{- end }}
|
||||||
|
sftp \
|
||||||
|
-ip.bind={{ .Values.sftp.bindAddress }} \
|
||||||
|
-port={{ .Values.sftp.port }} \
|
||||||
|
{{- if .Values.sftp.metricsPort }}
|
||||||
|
-metricsPort={{ .Values.sftp.metricsPort }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.metricsIp }}
|
||||||
|
-metricsIp={{ .Values.sftp.metricsIp }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.sshPrivateKey }}
|
||||||
|
-sshPrivateKey={{ .Values.sftp.sshPrivateKey }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.hostKeysFolder }}
|
||||||
|
-hostKeysFolder={{ .Values.sftp.hostKeysFolder }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.authMethods }}
|
||||||
|
-authMethods={{ .Values.sftp.authMethods }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.maxAuthTries }}
|
||||||
|
-maxAuthTries={{ .Values.sftp.maxAuthTries }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.bannerMessage }}
|
||||||
|
-bannerMessage="{{ .Values.sftp.bannerMessage }}" \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.loginGraceTime }}
|
||||||
|
-loginGraceTime={{ .Values.sftp.loginGraceTime }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.clientAliveInterval }}
|
||||||
|
-clientAliveInterval={{ .Values.sftp.clientAliveInterval }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.clientAliveCountMax }}
|
||||||
|
-clientAliveCountMax={{ .Values.sftp.clientAliveCountMax }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.dataCenter }}
|
||||||
|
-dataCenter={{ .Values.sftp.dataCenter }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.localSocket }}
|
||||||
|
-localSocket={{ .Values.sftp.localSocket }} \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.global.enableSecurity }}
|
||||||
|
-cert.file=/usr/local/share/ca-certificates/client/tls.crt \
|
||||||
|
-key.file=/usr/local/share/ca-certificates/client/tls.key \
|
||||||
|
{{- end }}
|
||||||
|
-userStoreFile=/etc/sw/seaweedfs_sftp_config \
|
||||||
|
-filer={{ template "seaweedfs.name" . }}-filer-client.{{ .Release.Namespace }}:{{ .Values.filer.port }}
|
||||||
|
volumeMounts:
|
||||||
|
{{- if or (eq .Values.sftp.logs.type "hostPath") (eq .Values.sftp.logs.type "emptyDir") }}
|
||||||
|
- name: logs
|
||||||
|
mountPath: "/logs/"
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.enableAuth }}
|
||||||
|
- mountPath: /etc/sw
|
||||||
|
name: config-users
|
||||||
|
readOnly: true
|
||||||
|
{{- end }}
|
||||||
|
- mountPath: /etc/sw/ssh
|
||||||
|
name: config-ssh
|
||||||
|
readOnly: true
|
||||||
|
{{- if .Values.global.enableSecurity }}
|
||||||
|
- name: security-config
|
||||||
|
readOnly: true
|
||||||
|
mountPath: /etc/seaweedfs/security.toml
|
||||||
|
subPath: security.toml
|
||||||
|
- name: ca-cert
|
||||||
|
readOnly: true
|
||||||
|
mountPath: /usr/local/share/ca-certificates/ca/
|
||||||
|
- name: master-cert
|
||||||
|
readOnly: true
|
||||||
|
mountPath: /usr/local/share/ca-certificates/master/
|
||||||
|
- name: volume-cert
|
||||||
|
readOnly: true
|
||||||
|
mountPath: /usr/local/share/ca-certificates/volume/
|
||||||
|
- name: filer-cert
|
||||||
|
readOnly: true
|
||||||
|
mountPath: /usr/local/share/ca-certificates/filer/
|
||||||
|
- name: client-cert
|
||||||
|
readOnly: true
|
||||||
|
mountPath: /usr/local/share/ca-certificates/client/
|
||||||
|
{{- end }}
|
||||||
|
{{ tpl .Values.sftp.extraVolumeMounts . | nindent 12 | trim }}
|
||||||
|
ports:
|
||||||
|
- containerPort: {{ .Values.sftp.port }}
|
||||||
|
name: swfs-sftp
|
||||||
|
{{- if .Values.sftp.metricsPort }}
|
||||||
|
- containerPort: {{ .Values.sftp.metricsPort }}
|
||||||
|
name: metrics
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.readinessProbe.enabled }}
|
||||||
|
readinessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: {{ .Values.sftp.port }}
|
||||||
|
initialDelaySeconds: {{ .Values.sftp.readinessProbe.initialDelaySeconds }}
|
||||||
|
periodSeconds: {{ .Values.sftp.readinessProbe.periodSeconds }}
|
||||||
|
successThreshold: {{ .Values.sftp.readinessProbe.successThreshold }}
|
||||||
|
failureThreshold: {{ .Values.sftp.readinessProbe.failureThreshold }}
|
||||||
|
timeoutSeconds: {{ .Values.sftp.readinessProbe.timeoutSeconds }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.livenessProbe.enabled }}
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: {{ .Values.sftp.port }}
|
||||||
|
initialDelaySeconds: {{ .Values.sftp.livenessProbe.initialDelaySeconds }}
|
||||||
|
periodSeconds: {{ .Values.sftp.livenessProbe.periodSeconds }}
|
||||||
|
successThreshold: {{ .Values.sftp.livenessProbe.successThreshold }}
|
||||||
|
failureThreshold: {{ .Values.sftp.livenessProbe.failureThreshold }}
|
||||||
|
timeoutSeconds: {{ .Values.sftp.livenessProbe.timeoutSeconds }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.sftp.resources }}
|
||||||
|
resources:
|
||||||
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.containerSecurityContext.enabled }}
|
||||||
|
securityContext: {{- omit .Values.sftp.containerSecurityContext "enabled" | toYaml | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.sidecars }}
|
||||||
|
{{- include "common.tplvalues.render" (dict "value" .Values.sftp.sidecars "context" $) | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
volumes:
|
||||||
|
{{- if .Values.sftp.enableAuth }}
|
||||||
|
- name: config-users
|
||||||
|
secret:
|
||||||
|
defaultMode: 420
|
||||||
|
{{- if .Values.sftp.existingConfigSecret }}
|
||||||
|
secretName: {{ .Values.sftp.existingConfigSecret }}
|
||||||
|
{{- else }}
|
||||||
|
secretName: seaweedfs-sftp-secret
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
- name: config-ssh
|
||||||
|
secret:
|
||||||
|
defaultMode: 420
|
||||||
|
{{- if .Values.sftp.existingSshConfigSecret }}
|
||||||
|
secretName: {{ .Values.sftp.existingSshConfigSecret }}
|
||||||
|
{{- else }}
|
||||||
|
secretName: seaweedfs-sftp-ssh-secret
|
||||||
|
{{- end }}
|
||||||
|
{{- if eq .Values.sftp.logs.type "hostPath" }}
|
||||||
|
- name: logs
|
||||||
|
hostPath:
|
||||||
|
path: {{ .Values.sftp.logs.hostPathPrefix }}/logs/seaweedfs/sftp
|
||||||
|
type: DirectoryOrCreate
|
||||||
|
{{- end }}
|
||||||
|
{{- if eq .Values.sftp.logs.type "emptyDir" }}
|
||||||
|
- name: logs
|
||||||
|
emptyDir: {}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.global.enableSecurity }}
|
||||||
|
- name: security-config
|
||||||
|
configMap:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-security-config
|
||||||
|
- name: ca-cert
|
||||||
|
secret:
|
||||||
|
secretName: {{ template "seaweedfs.name" . }}-ca-cert
|
||||||
|
- name: master-cert
|
||||||
|
secret:
|
||||||
|
secretName: {{ template "seaweedfs.name" . }}-master-cert
|
||||||
|
- name: volume-cert
|
||||||
|
secret:
|
||||||
|
secretName: {{ template "seaweedfs.name" . }}-volume-cert
|
||||||
|
- name: filer-cert
|
||||||
|
secret:
|
||||||
|
secretName: {{ template "seaweedfs.name" . }}-filer-cert
|
||||||
|
- name: client-cert
|
||||||
|
secret:
|
||||||
|
secretName: {{ template "seaweedfs.name" . }}-client-cert
|
||||||
|
{{- end }}
|
||||||
|
{{ tpl .Values.sftp.extraVolumes . | indent 8 | trim }}
|
||||||
|
{{- if .Values.sftp.nodeSelector }}
|
||||||
|
nodeSelector:
|
||||||
|
{{ tpl .Values.sftp.nodeSelector . | indent 8 | trim }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
{{- if or .Values.sftp.enabled .Values.allInOne.enabled }}
|
||||||
|
{{- $admin_pwd := include "getOrGeneratePassword" (dict "namespace" .Release.Namespace "secretName" "seaweedfs-sftp-secret" "key" "admin_password" 20) -}}
|
||||||
|
{{- $read_user_pwd := include "getOrGeneratePassword" (dict "namespace" .Release.Namespace "secretName" "seaweedfs-sftp-secret" "key" "readonly_password" 20) -}}
|
||||||
|
{{- $public_user_pwd := include "getOrGeneratePassword" (dict "namespace" .Release.Namespace "secretName" "seaweedfs-sftp-secret" "key" "public_user_password" 20) -}}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
type: Opaque
|
||||||
|
metadata:
|
||||||
|
name: seaweedfs-sftp-secret
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
annotations:
|
||||||
|
"helm.sh/resource-policy": keep
|
||||||
|
"helm.sh/hook": "pre-install,pre-upgrade"
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: sftp
|
||||||
|
stringData:
|
||||||
|
admin_password: {{ $admin_pwd }}
|
||||||
|
readonly_password: {{ $read_user_pwd }}
|
||||||
|
public_user_password: {{ $public_user_pwd }}
|
||||||
|
seaweedfs_sftp_config: '[{"Username":"admin","Password":"{{ $admin_pwd }}","PublicKeys":[],"HomeDir":"/","Permissions":{"/":["read","write","list"]},"Uid":0,"Gid":0},{"Username":"readonly_user","Password":"{{ $read_user_pwd }}","PublicKeys":[],"HomeDir":"/","Permissions":{"/":["read","list"]},"Uid":1112,"Gid":1112},{"Username":"public_user","Password":"{{ $public_user_pwd }}","PublicKeys":[],"HomeDir":"/public","Permissions":{"/public":["write","read","list"]},"Uid":1113,"Gid":1113}]'
|
||||||
|
seaweedfs_sftp_ssh_private_key: |
|
||||||
|
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||||
|
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
|
||||||
|
QyNTUxOQAAACDH4McwcDphteXVullu6q7ephEN1N60z+w0qZw0UVW8OwAAAJDjxkmk48ZJ
|
||||||
|
pAAAAAtzc2gtZWQyNTUxOQAAACDH4McwcDphteXVullu6q7ephEN1N60z+w0qZw0UVW8Ow
|
||||||
|
AAAEAeVy/4+gf6rjj2jla/AHqJpC1LcS5hn04IUs4q+iVq/MfgxzBwOmG15dW6WW7qrt6m
|
||||||
|
EQ3U3rTP7DSpnDRRVbw7AAAADHNla291ckAwMDY2NwE=
|
||||||
|
-----END OPENSSH PRIVATE KEY-----
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
{{- if .Values.sftp.enabled }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-sftp
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
app.kubernetes.io/component: sftp
|
||||||
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- if .Values.sftp.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.sftp.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
internalTrafficPolicy: {{ .Values.sftp.internalTrafficPolicy | default "Cluster" }}
|
||||||
|
ports:
|
||||||
|
- name: "swfs-sftp"
|
||||||
|
port: {{ .Values.sftp.port }}
|
||||||
|
targetPort: {{ .Values.sftp.port }}
|
||||||
|
protocol: TCP
|
||||||
|
{{- if .Values.sftp.metricsPort }}
|
||||||
|
- name: "metrics"
|
||||||
|
port: {{ .Values.sftp.metricsPort }}
|
||||||
|
targetPort: {{ .Values.sftp.metricsPort }}
|
||||||
|
protocol: TCP
|
||||||
|
{{- end }}
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
app.kubernetes.io/component: sftp
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
{{- if .Values.sftp.enabled }}
|
||||||
|
{{- if .Values.sftp.metricsPort }}
|
||||||
|
{{- if .Values.global.monitoring.enabled }}
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-sftp
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: sftp
|
||||||
|
{{- with .Values.global.monitoring.additionalLabels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sftp.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.sftp.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
endpoints:
|
||||||
|
- interval: 30s
|
||||||
|
port: metrics
|
||||||
|
scrapeTimeout: 5s
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
app.kubernetes.io/component: sftp
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -10,6 +10,10 @@ metadata:
|
|||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: volume
|
app.kubernetes.io/component: volume
|
||||||
|
{{- if .Values.volume.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.volume.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
secretName: {{ template "seaweedfs.name" . }}-volume-cert
|
secretName: {{ template "seaweedfs.name" . }}-volume-cert
|
||||||
issuerRef:
|
issuerRef:
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ metadata:
|
|||||||
app.kubernetes.io/component: volume
|
app.kubernetes.io/component: volume
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- if .Values.volume.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.volume.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
clusterIP: None
|
clusterIP: None
|
||||||
internalTrafficPolicy: {{ .Values.volume.internalTrafficPolicy | default "Cluster" }}
|
internalTrafficPolicy: {{ .Values.volume.internalTrafficPolicy | default "Cluster" }}
|
||||||
|
|||||||
@@ -15,6 +15,10 @@ metadata:
|
|||||||
{{- with .Values.global.monitoring.additionalLabels }}
|
{{- with .Values.global.monitoring.additionalLabels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.volume.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.volume.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- interval: 30s
|
- interval: 30s
|
||||||
|
|||||||
@@ -9,6 +9,11 @@ metadata:
|
|||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: volume
|
||||||
|
{{- if .Values.volume.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml .Values.volume.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
serviceName: {{ template "seaweedfs.name" . }}-volume
|
serviceName: {{ template "seaweedfs.name" . }}-volume
|
||||||
replicas: {{ .Values.volume.replicas }}
|
replicas: {{ .Values.volume.replicas }}
|
||||||
@@ -43,6 +48,9 @@ spec:
|
|||||||
affinity:
|
affinity:
|
||||||
{{ tpl .Values.volume.affinity . | nindent 8 | trim }}
|
{{ tpl .Values.volume.affinity . | nindent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.volume.topologySpreadConstraints }}
|
||||||
|
{{- include "seaweedfs.topologySpreadConstraints" (dict "Values" .Values "component" "volume") | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
restartPolicy: {{ default .Values.global.restartPolicy .Values.volume.restartPolicy }}
|
restartPolicy: {{ default .Values.global.restartPolicy .Values.volume.restartPolicy }}
|
||||||
{{- if .Values.volume.tolerations }}
|
{{- if .Values.volume.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
@@ -142,11 +150,16 @@ spec:
|
|||||||
{{- if .Values.volume.metricsPort }}
|
{{- if .Values.volume.metricsPort }}
|
||||||
-metricsPort={{ .Values.volume.metricsPort }} \
|
-metricsPort={{ .Values.volume.metricsPort }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.volume.metricsIp }}
|
||||||
|
-metricsIp={{ .Values.volume.metricsIp }} \
|
||||||
|
{{- end }}
|
||||||
-dir {{range $index, $dir := .Values.volume.dataDirs }}{{if ne $index 0}},{{end}}/{{$dir.name}}{{end}} \
|
-dir {{range $index, $dir := .Values.volume.dataDirs }}{{if ne $index 0}},{{end}}/{{$dir.name}}{{end}} \
|
||||||
{{- if .Values.volume.idx }}
|
{{- if .Values.volume.idx }}
|
||||||
-dir.idx=/idx \
|
-dir.idx=/idx \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
-max {{range $index, $dir := .Values.volume.dataDirs }}{{if ne $index 0}},{{end}}{{$dir.maxVolumes}}{{end}} \
|
-max {{range $index, $dir := .Values.volume.dataDirs }}{{if ne $index 0}},{{end}}
|
||||||
|
{{- if eq ($dir.maxVolumes | toString) "0" }}0{{ else if not $dir.maxVolumes }}7{{ else }}{{$dir.maxVolumes}}{{ end }}
|
||||||
|
{{- end }} \
|
||||||
{{- if .Values.volume.rack }}
|
{{- if .Values.volume.rack }}
|
||||||
-rack={{ .Values.volume.rack }} \
|
-rack={{ .Values.volume.rack }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -173,12 +186,17 @@ spec:
|
|||||||
-minFreeSpacePercent={{ .Values.volume.minFreeSpacePercent }} \
|
-minFreeSpacePercent={{ .Values.volume.minFreeSpacePercent }} \
|
||||||
-ip=${POD_NAME}.${SEAWEEDFS_FULLNAME}-volume.{{ .Release.Namespace }} \
|
-ip=${POD_NAME}.${SEAWEEDFS_FULLNAME}-volume.{{ .Release.Namespace }} \
|
||||||
-compactionMBps={{ .Values.volume.compactionMBps }} \
|
-compactionMBps={{ .Values.volume.compactionMBps }} \
|
||||||
-mserver={{ if .Values.global.masterServer }}{{.Values.global.masterServer}}{{ else }}{{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master.{{ $.Release.Namespace }}:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }}{{ end }}
|
-mserver={{ if .Values.global.masterServer }}{{.Values.global.masterServer}}{{ else }}{{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master.{{ $.Release.Namespace }}:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }}{{ end }} \
|
||||||
|
{{- range .Values.volume.extraArgs }}
|
||||||
|
{{ . }} \
|
||||||
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- range $dir := .Values.volume.dataDirs }}
|
{{- range $dir := .Values.volume.dataDirs }}
|
||||||
|
{{- if not ( eq $dir.type "custom" ) }}
|
||||||
- name: {{ $dir.name }}
|
- name: {{ $dir.name }}
|
||||||
mountPath: "/{{ $dir.name }}/"
|
mountPath: "/{{ $dir.name }}/"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.volume.logs }}
|
{{- if .Values.volume.logs }}
|
||||||
- name: logs
|
- name: logs
|
||||||
mountPath: "/logs/"
|
mountPath: "/logs/"
|
||||||
@@ -339,7 +357,9 @@ spec:
|
|||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
{{- range $dir := .Values.volume.dataDirs }}
|
{{- range $dir := .Values.volume.dataDirs }}
|
||||||
{{- if eq $dir.type "persistentVolumeClaim" }}
|
{{- if eq $dir.type "persistentVolumeClaim" }}
|
||||||
- metadata:
|
- apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
name: {{ $dir.name }}
|
name: {{ $dir.name }}
|
||||||
{{- with $dir.annotations }}
|
{{- with $dir.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
@@ -355,7 +375,9 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if and .Values.volume.idx (eq .Values.volume.idx.type "persistentVolumeClaim") }}
|
{{- if and .Values.volume.idx (eq .Values.volume.idx.type "persistentVolumeClaim") }}
|
||||||
- metadata:
|
- apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
name: idx
|
name: idx
|
||||||
{{- with .Values.volume.idx.annotations }}
|
{{- with .Values.volume.idx.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
@@ -369,7 +391,9 @@ spec:
|
|||||||
storage: {{ .Values.volume.idx.size }}
|
storage: {{ .Values.volume.idx.size }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and .Values.volume.logs (eq .Values.volume.logs.type "persistentVolumeClaim") }}
|
{{- if and .Values.volume.logs (eq .Values.volume.logs.type "persistentVolumeClaim") }}
|
||||||
- metadata:
|
- apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
name: logs
|
name: logs
|
||||||
{{- with .Values.volume.logs.annotations }}
|
{{- with .Values.volume.logs.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
|
|||||||
@@ -27,13 +27,13 @@ global:
|
|||||||
gatewayHost: null
|
gatewayHost: null
|
||||||
gatewayPort: null
|
gatewayPort: null
|
||||||
additionalLabels: {}
|
additionalLabels: {}
|
||||||
# if enabled will use global.replicationPlacment and override master & filer defaultReplicaPlacement config
|
# if enabled will use global.replicationPlacement and override master & filer defaultReplicaPlacement config
|
||||||
enableReplication: false
|
enableReplication: false
|
||||||
# replication type is XYZ:
|
# replication type is XYZ:
|
||||||
# X number of replica in other data centers
|
# X number of replica in other data centers
|
||||||
# Y number of replica in other racks in the same data center
|
# Y number of replica in other racks in the same data center
|
||||||
# Z number of replica in other servers in the same rack
|
# Z number of replica in other servers in the same rack
|
||||||
replicationPlacment: "001"
|
replicationPlacement: "001"
|
||||||
extraEnvironmentVars:
|
extraEnvironmentVars:
|
||||||
WEED_CLUSTER_DEFAULT: "sw"
|
WEED_CLUSTER_DEFAULT: "sw"
|
||||||
WEED_CLUSTER_SW_MASTER: "seaweedfs-master.seaweedfs:9333"
|
WEED_CLUSTER_SW_MASTER: "seaweedfs-master.seaweedfs:9333"
|
||||||
@@ -46,6 +46,7 @@ global:
|
|||||||
image:
|
image:
|
||||||
registry: ""
|
registry: ""
|
||||||
repository: ""
|
repository: ""
|
||||||
|
tag: ""
|
||||||
|
|
||||||
master:
|
master:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -55,12 +56,11 @@ master:
|
|||||||
port: 9333
|
port: 9333
|
||||||
grpcPort: 19333
|
grpcPort: 19333
|
||||||
metricsPort: 9327
|
metricsPort: 9327
|
||||||
|
metricsIp: "" # Metrics listen IP. If empty, defaults to ipBind
|
||||||
ipBind: "0.0.0.0"
|
ipBind: "0.0.0.0"
|
||||||
volumePreallocate: false
|
volumePreallocate: false
|
||||||
volumeSizeLimitMB: 1000
|
volumeSizeLimitMB: 1000
|
||||||
loggingOverrideLevel: null
|
loggingOverrideLevel: null
|
||||||
# number of seconds between heartbeats, default 5
|
|
||||||
pulseSeconds: null
|
|
||||||
# threshold to vacuum and reclaim spaces, default 0.3 (30%)
|
# threshold to vacuum and reclaim spaces, default 0.3 (30%)
|
||||||
garbageThreshold: null
|
garbageThreshold: null
|
||||||
# Prometheus push interval in seconds, default 15
|
# Prometheus push interval in seconds, default 15
|
||||||
@@ -74,6 +74,25 @@ master:
|
|||||||
# Disable http request, only gRpc operations are allowed
|
# Disable http request, only gRpc operations are allowed
|
||||||
disableHttp: false
|
disableHttp: false
|
||||||
|
|
||||||
|
# Resume previous state on start master server
|
||||||
|
resumeState: false
|
||||||
|
# Use Hashicorp Raft
|
||||||
|
raftHashicorp: false
|
||||||
|
# Whether to bootstrap the Raft cluster. Only use it when use Hashicorp Raft
|
||||||
|
raftBootstrap: false
|
||||||
|
|
||||||
|
# election timeout of master servers
|
||||||
|
electionTimeout: "10s"
|
||||||
|
# heartbeat interval of master servers, and will be randomly multiplied by [1, 1.25)
|
||||||
|
heartbeatInterval: "300ms"
|
||||||
|
|
||||||
|
# Custom command line arguments to add to the master command
|
||||||
|
# Example to fix IPv6 metrics connectivity issues:
|
||||||
|
# extraArgs: ["-metricsIp", "0.0.0.0"]
|
||||||
|
# Example with multiple args:
|
||||||
|
# extraArgs: ["-customFlag", "value", "-anotherFlag"]
|
||||||
|
extraArgs: []
|
||||||
|
|
||||||
config: |-
|
config: |-
|
||||||
# Enter any extra configuration for master.toml here.
|
# Enter any extra configuration for master.toml here.
|
||||||
# It may be a multi-line string.
|
# It may be a multi-line string.
|
||||||
@@ -140,6 +159,9 @@ master:
|
|||||||
# Annotations to be added to the master pods
|
# Annotations to be added to the master pods
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
|
||||||
|
# Annotations to be added to the master resources
|
||||||
|
annotations: {}
|
||||||
|
|
||||||
## Set podManagementPolicy
|
## Set podManagementPolicy
|
||||||
podManagementPolicy: Parallel
|
podManagementPolicy: Parallel
|
||||||
|
|
||||||
@@ -166,6 +188,11 @@ master:
|
|||||||
app.kubernetes.io/component: master
|
app.kubernetes.io/component: master
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|
||||||
|
# Topology Spread Constraints Settings
|
||||||
|
# This should map directly to the value of the topologySpreadConstraints
|
||||||
|
# for a PodSpec. By Default no constraints are set.
|
||||||
|
topologySpreadConstraints: null
|
||||||
|
|
||||||
# Toleration Settings for master pods
|
# Toleration Settings for master pods
|
||||||
# This should be a multi-line string matching the Toleration array
|
# This should be a multi-line string matching the Toleration array
|
||||||
# in a PodSpec.
|
# in a PodSpec.
|
||||||
@@ -268,6 +295,7 @@ volume:
|
|||||||
port: 8080
|
port: 8080
|
||||||
grpcPort: 18080
|
grpcPort: 18080
|
||||||
metricsPort: 9327
|
metricsPort: 9327
|
||||||
|
metricsIp: "" # Metrics listen IP. If empty, defaults to ipBind
|
||||||
ipBind: "0.0.0.0"
|
ipBind: "0.0.0.0"
|
||||||
replicas: 1
|
replicas: 1
|
||||||
loggingOverrideLevel: null
|
loggingOverrideLevel: null
|
||||||
@@ -280,10 +308,17 @@ volume:
|
|||||||
# minimum free disk space(in percents). If free disk space lower this value - all volumes marks as ReadOnly
|
# minimum free disk space(in percents). If free disk space lower this value - all volumes marks as ReadOnly
|
||||||
minFreeSpacePercent: 7
|
minFreeSpacePercent: 7
|
||||||
|
|
||||||
|
# Custom command line arguments to add to the volume command
|
||||||
|
# Example to fix IPv6 metrics connectivity issues:
|
||||||
|
# extraArgs: ["-metricsIp", "0.0.0.0"]
|
||||||
|
# Example with multiple args:
|
||||||
|
# extraArgs: ["-customFlag", "value", "-anotherFlag"]
|
||||||
|
extraArgs: []
|
||||||
|
|
||||||
# For each data disk you may use ANY storage-class, example with local-path-provisioner
|
# For each data disk you may use ANY storage-class, example with local-path-provisioner
|
||||||
# Annotations are optional.
|
# Annotations are optional.
|
||||||
# dataDirs:
|
# dataDirs:
|
||||||
# - name: data:
|
# - name: data
|
||||||
# type: "persistentVolumeClaim"
|
# type: "persistentVolumeClaim"
|
||||||
# size: "24Ti"
|
# size: "24Ti"
|
||||||
# storageClass: "local-path-provisioner"
|
# storageClass: "local-path-provisioner"
|
||||||
@@ -301,6 +336,12 @@ volume:
|
|||||||
# - name: data
|
# - name: data
|
||||||
# type: "emptyDir"
|
# type: "emptyDir"
|
||||||
# maxVolumes: 0 # If set to zero on non-windows OS, the limit will be auto configured. (default "7")
|
# maxVolumes: 0 # If set to zero on non-windows OS, the limit will be auto configured. (default "7")
|
||||||
|
#
|
||||||
|
# If these don't meet your needs, you can use "custom" here along with extraVolumes and extraVolumeMounts
|
||||||
|
# Particularly useful when using more than 1 for the volume server replicas.
|
||||||
|
# - name: data
|
||||||
|
# type: "custom"
|
||||||
|
# maxVolumes: 0 # If set to zero on non-windows OS, the limit will be auto configured. (default "7")
|
||||||
|
|
||||||
dataDirs:
|
dataDirs:
|
||||||
- name: data1
|
- name: data1
|
||||||
@@ -381,6 +422,15 @@ volume:
|
|||||||
sidecars: []
|
sidecars: []
|
||||||
initContainers: ""
|
initContainers: ""
|
||||||
|
|
||||||
|
# Example for use when using more than 1 volume server replica
|
||||||
|
# extraVolumeMounts: |
|
||||||
|
# - name: drive
|
||||||
|
# mountPath: /drive
|
||||||
|
# subPathExpr: $(POD_NAME)
|
||||||
|
# extraVolumes: |
|
||||||
|
# - name: drive
|
||||||
|
# hostPath:
|
||||||
|
# path: /var/mnt/
|
||||||
extraVolumes: ""
|
extraVolumes: ""
|
||||||
extraVolumeMounts: ""
|
extraVolumeMounts: ""
|
||||||
|
|
||||||
@@ -390,6 +440,9 @@ volume:
|
|||||||
# Annotations to be added to the volume pods
|
# Annotations to be added to the volume pods
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
|
||||||
|
# Annotations to be added to the volume resources
|
||||||
|
annotations: {}
|
||||||
|
|
||||||
## Set podManagementPolicy
|
## Set podManagementPolicy
|
||||||
podManagementPolicy: Parallel
|
podManagementPolicy: Parallel
|
||||||
|
|
||||||
@@ -406,6 +459,11 @@ volume:
|
|||||||
app.kubernetes.io/component: volume
|
app.kubernetes.io/component: volume
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|
||||||
|
# Topology Spread Constraints Settings
|
||||||
|
# This should map directly to the value of the topologySpreadConstraints
|
||||||
|
# for a PodSpec. By Default no constraints are set.
|
||||||
|
topologySpreadConstraints: null
|
||||||
|
|
||||||
# Resource requests, limits, etc. for the server cluster placement. This
|
# Resource requests, limits, etc. for the server cluster placement. This
|
||||||
# should map directly to the value of the resources field for a PodSpec,
|
# should map directly to the value of the resources field for a PodSpec,
|
||||||
# formatted as a multi-line string. By default no direct resource request
|
# formatted as a multi-line string. By default no direct resource request
|
||||||
@@ -488,8 +546,14 @@ filer:
|
|||||||
port: 8888
|
port: 8888
|
||||||
grpcPort: 18888
|
grpcPort: 18888
|
||||||
metricsPort: 9327
|
metricsPort: 9327
|
||||||
|
metricsIp: "" # Metrics listen IP. If empty, defaults to ipBind
|
||||||
|
ipBind: "0.0.0.0" # IP address to bind to. Set to 0.0.0.0 to allow external traffic
|
||||||
loggingOverrideLevel: null
|
loggingOverrideLevel: null
|
||||||
filerGroup: ""
|
filerGroup: ""
|
||||||
|
# prefer to read and write to volumes in this data center (not set by default)
|
||||||
|
dataCenter: null
|
||||||
|
# prefer to write to volumes in this rack (not set by default)
|
||||||
|
rack: null
|
||||||
# replication type is XYZ:
|
# replication type is XYZ:
|
||||||
# X number of replica in other data centers
|
# X number of replica in other data centers
|
||||||
# Y number of replica in other racks in the same data center
|
# Y number of replica in other racks in the same data center
|
||||||
@@ -511,6 +575,26 @@ filer:
|
|||||||
# Disable http request, only gRpc operations are allowed
|
# Disable http request, only gRpc operations are allowed
|
||||||
disableHttp: false
|
disableHttp: false
|
||||||
|
|
||||||
|
# Custom command line arguments to add to the filer command
|
||||||
|
# Example to fix IPv6 metrics connectivity issues:
|
||||||
|
# extraArgs: ["-metricsIp", "0.0.0.0"]
|
||||||
|
# Example with multiple args:
|
||||||
|
# extraArgs: ["-customFlag", "value", "-anotherFlag"]
|
||||||
|
extraArgs: []
|
||||||
|
|
||||||
|
# Add a custom notification.toml to configure filer notifications
|
||||||
|
# Example:
|
||||||
|
# notificationConfig: |-
|
||||||
|
# [notification.kafka]
|
||||||
|
# enabled = false
|
||||||
|
# hosts = [
|
||||||
|
# "localhost:9092"
|
||||||
|
# ]
|
||||||
|
# topic = "seaweedfs_filer"
|
||||||
|
# offsetFile = "./last.offset"
|
||||||
|
# offsetSaveIntervalSeconds = 10
|
||||||
|
notificationConfig: ""
|
||||||
|
|
||||||
# DEPRECATE: enablePVC, storage, storageClass
|
# DEPRECATE: enablePVC, storage, storageClass
|
||||||
# Consider replacing with filer.data section below instead.
|
# Consider replacing with filer.data section below instead.
|
||||||
|
|
||||||
@@ -584,6 +668,9 @@ filer:
|
|||||||
# Annotations to be added to the filer pods
|
# Annotations to be added to the filer pods
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
|
||||||
|
# Annotations to be added to the filer resource
|
||||||
|
annotations: {}
|
||||||
|
|
||||||
## Set podManagementPolicy
|
## Set podManagementPolicy
|
||||||
podManagementPolicy: Parallel
|
podManagementPolicy: Parallel
|
||||||
|
|
||||||
@@ -600,6 +687,11 @@ filer:
|
|||||||
app.kubernetes.io/component: filer
|
app.kubernetes.io/component: filer
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|
||||||
|
# Topology Spread Constraints Settings
|
||||||
|
# This should map directly to the value of the topologySpreadConstraints
|
||||||
|
# for a PodSpec. By Default no constraints are set.
|
||||||
|
topologySpreadConstraints: null
|
||||||
|
|
||||||
# updatePartition is used to control a careful rolling update of SeaweedFS
|
# updatePartition is used to control a careful rolling update of SeaweedFS
|
||||||
# masters.
|
# masters.
|
||||||
updatePartition: 0
|
updatePartition: 0
|
||||||
@@ -673,7 +765,7 @@ filer:
|
|||||||
sub_filter '/seaweedfsstatic' './seaweedfsstatic';
|
sub_filter '/seaweedfsstatic' './seaweedfsstatic';
|
||||||
sub_filter_once off;
|
sub_filter_once off;
|
||||||
|
|
||||||
# extraEnvVars is a list of extra enviroment variables to set with the stateful set.
|
# extraEnvVars is a list of extra environment variables to set with the stateful set.
|
||||||
extraEnvironmentVars:
|
extraEnvironmentVars:
|
||||||
WEED_MYSQL_ENABLED: "false"
|
WEED_MYSQL_ENABLED: "false"
|
||||||
WEED_MYSQL_HOSTNAME: "mysql-db-host"
|
WEED_MYSQL_HOSTNAME: "mysql-db-host"
|
||||||
@@ -798,6 +890,9 @@ s3:
|
|||||||
# Annotations to be added to the s3 pods
|
# Annotations to be added to the s3 pods
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
|
||||||
|
# Annotations to be added to the s3 resources
|
||||||
|
annotations: {}
|
||||||
|
|
||||||
# Resource requests, limits, etc. for the server cluster placement. This
|
# Resource requests, limits, etc. for the server cluster placement. This
|
||||||
# should map directly to the value of the resources field for a PodSpec,
|
# should map directly to the value of the resources field for a PodSpec,
|
||||||
# formatted as a multi-line string. By default no direct resource request
|
# formatted as a multi-line string. By default no direct resource request
|
||||||
@@ -890,6 +985,215 @@ s3:
|
|||||||
annotations: {}
|
annotations: {}
|
||||||
tls: []
|
tls: []
|
||||||
|
|
||||||
|
sftp:
|
||||||
|
enabled: false
|
||||||
|
imageOverride: null
|
||||||
|
restartPolicy: null
|
||||||
|
replicas: 1
|
||||||
|
bindAddress: 0.0.0.0
|
||||||
|
port: 2022 # Default SFTP port
|
||||||
|
metricsPort: 9327
|
||||||
|
metricsIp: "" # If empty, defaults to bindAddress
|
||||||
|
loggingOverrideLevel: null
|
||||||
|
|
||||||
|
# SSH server configuration
|
||||||
|
sshPrivateKey: "/etc/sw/seaweedfs_sftp_ssh_private_key" # Path to the SSH private key file for host authentication
|
||||||
|
hostKeysFolder: "/etc/sw/ssh" # path to folder containing SSH private key files for host authentication
|
||||||
|
authMethods: "password,publickey" # Comma-separated list of allowed auth methods: password, publickey, keyboard-interactive
|
||||||
|
maxAuthTries: 6 # Maximum number of authentication attempts per connection
|
||||||
|
bannerMessage: "SeaweedFS SFTP Server" # Message displayed before authentication
|
||||||
|
loginGraceTime: "2m" # Timeout for authentication
|
||||||
|
clientAliveInterval: "5s" # Interval for sending keep-alive messages
|
||||||
|
clientAliveCountMax: 3 # Maximum number of missed keep-alive messages before disconnecting
|
||||||
|
dataCenter: "" # Prefer to read and write to volumes in this data center
|
||||||
|
localSocket: "" # Default to /tmp/seaweedfs-sftp-<port>.sock
|
||||||
|
|
||||||
|
# User authentication
|
||||||
|
enableAuth: false
|
||||||
|
# Set to the name of an existing kubernetes Secret with the sftp json config file
|
||||||
|
# Should have a secret key called seaweedfs_sftp_config with an inline json config
|
||||||
|
existingConfigSecret: null
|
||||||
|
# Set to the name of an existing kubernetes Secret with the list of ssh private keys for sftp
|
||||||
|
existingSshConfigSecret: null
|
||||||
|
|
||||||
|
# Additional resources
|
||||||
|
sidecars: []
|
||||||
|
initContainers: ""
|
||||||
|
extraVolumes: ""
|
||||||
|
extraVolumeMounts: ""
|
||||||
|
podLabels: {}
|
||||||
|
podAnnotations: {}
|
||||||
|
annotations: {}
|
||||||
|
resources: {}
|
||||||
|
tolerations: ""
|
||||||
|
nodeSelector: |
|
||||||
|
kubernetes.io/arch: amd64
|
||||||
|
priorityClassName: ""
|
||||||
|
serviceAccountName: ""
|
||||||
|
podSecurityContext: {}
|
||||||
|
containerSecurityContext: {}
|
||||||
|
|
||||||
|
logs:
|
||||||
|
type: "hostPath"
|
||||||
|
hostPathPrefix: /storage
|
||||||
|
|
||||||
|
extraEnvironmentVars: {}
|
||||||
|
|
||||||
|
# Health checks
|
||||||
|
# Health checks for SFTP - using tcpSocket instead of httpGet
|
||||||
|
livenessProbe:
|
||||||
|
enabled: true
|
||||||
|
initialDelaySeconds: 20
|
||||||
|
periodSeconds: 60
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 20
|
||||||
|
timeoutSeconds: 10
|
||||||
|
|
||||||
|
# Health checks for SFTP - using tcpSocket instead of httpGet
|
||||||
|
readinessProbe:
|
||||||
|
enabled: true
|
||||||
|
initialDelaySeconds: 15
|
||||||
|
periodSeconds: 15
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 100
|
||||||
|
timeoutSeconds: 10
|
||||||
|
|
||||||
|
# All-in-one deployment configuration
|
||||||
|
allInOne:
|
||||||
|
enabled: false
|
||||||
|
imageOverride: null
|
||||||
|
restartPolicy: Always
|
||||||
|
replicas: 1
|
||||||
|
|
||||||
|
# Core configuration
|
||||||
|
idleTimeout: 30 # Connection idle seconds
|
||||||
|
dataCenter: "" # Current volume server's data center name
|
||||||
|
rack: "" # Current volume server's rack name
|
||||||
|
whiteList: "" # Comma separated IP addresses having write permission
|
||||||
|
disableHttp: false # Disable HTTP requests, only gRPC operations are allowed
|
||||||
|
metricsPort: 9324 # Prometheus metrics listen port
|
||||||
|
metricsIp: "" # Metrics listen IP. If empty, defaults to bindAddress
|
||||||
|
loggingOverrideLevel: null # Override logging level
|
||||||
|
|
||||||
|
# Service configuration
|
||||||
|
s3:
|
||||||
|
enabled: false # Whether to enable S3 gateway
|
||||||
|
sftp:
|
||||||
|
enabled: false # Whether to enable SFTP server
|
||||||
|
|
||||||
|
# Service settings
|
||||||
|
service:
|
||||||
|
annotations: {} # Annotations for the service
|
||||||
|
type: ClusterIP # Service type (ClusterIP, NodePort, LoadBalancer)
|
||||||
|
|
||||||
|
# Storage configuration
|
||||||
|
data:
|
||||||
|
type: "emptyDir" # Options: "hostPath", "persistentVolumeClaim", "emptyDir"
|
||||||
|
hostPathPrefix: /mnt/data # Path prefix for hostPath volumes
|
||||||
|
claimName: seaweedfs-data-pvc # Name of the PVC to use
|
||||||
|
size: "" # Size of the PVC
|
||||||
|
storageClass: "" # Storage class for the PVC
|
||||||
|
|
||||||
|
# Health checks
|
||||||
|
readinessProbe:
|
||||||
|
enabled: true
|
||||||
|
httpGet:
|
||||||
|
path: /cluster/status
|
||||||
|
port: 9333
|
||||||
|
scheme: HTTP
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 15
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 3
|
||||||
|
timeoutSeconds: 5
|
||||||
|
|
||||||
|
livenessProbe:
|
||||||
|
enabled: true
|
||||||
|
httpGet:
|
||||||
|
path: /cluster/status
|
||||||
|
port: 9333
|
||||||
|
scheme: HTTP
|
||||||
|
initialDelaySeconds: 20
|
||||||
|
periodSeconds: 30
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 5
|
||||||
|
timeoutSeconds: 5
|
||||||
|
|
||||||
|
# Additional resources
|
||||||
|
extraEnvironmentVars: {} # Additional environment variables
|
||||||
|
extraVolumeMounts: "" # Additional volume mounts
|
||||||
|
extraVolumes: "" # Additional volumes
|
||||||
|
initContainers: "" # Init containers
|
||||||
|
sidecars: "" # Sidecar containers
|
||||||
|
annotations: {} # Annotations for the deployment
|
||||||
|
podAnnotations: {} # Annotations for the pods
|
||||||
|
podLabels: {} # Labels for the pods
|
||||||
|
|
||||||
|
# Scheduling configuration
|
||||||
|
# Affinity Settings
|
||||||
|
# Commenting out or setting as empty the affinity variable, will allow
|
||||||
|
# deployment to single node services such as Minikube
|
||||||
|
affinity: |
|
||||||
|
podAntiAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: master
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|
||||||
|
# Topology Spread Constraints Settings
|
||||||
|
# This should map directly to the value of the topologySpreadConstraints
|
||||||
|
# for a PodSpec. By Default no constraints are set.
|
||||||
|
topologySpreadConstraints: null
|
||||||
|
|
||||||
|
# Toleration Settings for master pods
|
||||||
|
# This should be a multi-line string matching the Toleration array
|
||||||
|
# in a PodSpec.
|
||||||
|
tolerations: ""
|
||||||
|
|
||||||
|
# nodeSelector labels for master pod assignment, formatted as a muli-line string.
|
||||||
|
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
||||||
|
nodeSelector: |
|
||||||
|
kubernetes.io/arch: amd64
|
||||||
|
|
||||||
|
# Used to assign priority to master pods
|
||||||
|
# ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
|
||||||
|
priorityClassName: ""
|
||||||
|
|
||||||
|
# Used to assign a service account.
|
||||||
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
||||||
|
serviceAccountName: ""
|
||||||
|
|
||||||
|
# Configure security context for Pod
|
||||||
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
|
||||||
|
# Example:
|
||||||
|
# podSecurityContext:
|
||||||
|
# enabled: true
|
||||||
|
# runAsUser: 1000
|
||||||
|
# runAsGroup: 3000
|
||||||
|
# fsGroup: 2000
|
||||||
|
podSecurityContext: {}
|
||||||
|
|
||||||
|
# Configure security context for Container
|
||||||
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
|
||||||
|
# Example:
|
||||||
|
# containerSecurityContext:
|
||||||
|
# enabled: true
|
||||||
|
# runAsUser: 2000
|
||||||
|
# allowPrivilegeEscalation: false
|
||||||
|
containerSecurityContext: {}
|
||||||
|
|
||||||
|
# Resource management
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "2"
|
||||||
|
memory: "2Gi"
|
||||||
|
requests:
|
||||||
|
cpu: "500m"
|
||||||
|
memory: "1Gi"
|
||||||
|
|
||||||
# Deploy Kubernetes COSI Driver for SeaweedFS
|
# Deploy Kubernetes COSI Driver for SeaweedFS
|
||||||
# Requires COSI CRDs and controller to be installed in the cluster
|
# Requires COSI CRDs and controller to be installed in the cluster
|
||||||
# For more information, visit: https://container-object-storage-interface.github.io/docs/deployment-guide
|
# For more information, visit: https://container-object-storage-interface.github.io/docs/deployment-guide
|
||||||
@@ -903,6 +1207,11 @@ cosi:
|
|||||||
|
|
||||||
sidecar:
|
sidecar:
|
||||||
image: gcr.io/k8s-staging-sig-storage/objectstorage-sidecar/objectstorage-sidecar:v20230130-v0.1.0-24-gc0cf995
|
image: gcr.io/k8s-staging-sig-storage/objectstorage-sidecar/objectstorage-sidecar:v20230130-v0.1.0-24-gc0cf995
|
||||||
|
# Resource requests, limits, etc. for the server cluster placement. This
|
||||||
|
# should map directly to the value of the resources field for a PodSpec,
|
||||||
|
# formatted as a multi-line string. By default no direct resource request
|
||||||
|
# is made.
|
||||||
|
resources: {}
|
||||||
|
|
||||||
# enable user & permission to s3 (need to inject to all services)
|
# enable user & permission to s3 (need to inject to all services)
|
||||||
enableAuth: false
|
enableAuth: false
|
||||||
@@ -916,6 +1225,12 @@ cosi:
|
|||||||
extraVolumes: ""
|
extraVolumes: ""
|
||||||
extraVolumeMounts: ""
|
extraVolumeMounts: ""
|
||||||
|
|
||||||
|
# Resource requests, limits, etc. for the server cluster placement. This
|
||||||
|
# should map directly to the value of the resources field for a PodSpec,
|
||||||
|
# formatted as a multi-line string. By default no direct resource request
|
||||||
|
# is made.
|
||||||
|
resources: {}
|
||||||
|
|
||||||
certificates:
|
certificates:
|
||||||
commonName: "SeaweedFS CA"
|
commonName: "SeaweedFS CA"
|
||||||
ipAddresses: []
|
ipAddresses: []
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>com.seaweedfs</groupId>
|
<groupId>com.seaweedfs</groupId>
|
||||||
<artifactId>seaweedfs-client</artifactId>
|
<artifactId>seaweedfs-client</artifactId>
|
||||||
<version>3.71</version>
|
<version>3.80</version>
|
||||||
|
|
||||||
<name>SeaweedFS Java Client</name>
|
<name>SeaweedFS Java Client</name>
|
||||||
<description>A java client for SeaweedFS.</description>
|
<description>A java client for SeaweedFS.</description>
|
||||||
@@ -31,9 +31,9 @@
|
|||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<protobuf.version>3.16.3</protobuf.version>
|
<protobuf.version>3.25.5</protobuf.version>
|
||||||
<!-- follow https://github.com/grpc/grpc-java -->
|
<!-- follow https://github.com/grpc/grpc-java -->
|
||||||
<grpc.version>1.53.0</grpc.version>
|
<grpc.version>1.68.1</grpc.version>
|
||||||
<guava.version>32.0.0-jre</guava.version>
|
<guava.version>32.0.0-jre</guava.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>com.seaweedfs</groupId>
|
<groupId>com.seaweedfs</groupId>
|
||||||
<artifactId>seaweedfs-client</artifactId>
|
<artifactId>seaweedfs-client</artifactId>
|
||||||
<version>3.71</version>
|
<version>3.80</version>
|
||||||
|
|
||||||
<name>SeaweedFS Java Client</name>
|
<name>SeaweedFS Java Client</name>
|
||||||
<description>A java client for SeaweedFS.</description>
|
<description>A java client for SeaweedFS.</description>
|
||||||
@@ -31,9 +31,9 @@
|
|||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<protobuf.version>3.16.3</protobuf.version>
|
<protobuf.version>3.25.5</protobuf.version>
|
||||||
<!-- follow https://github.com/grpc/grpc-java -->
|
<!-- follow https://github.com/grpc/grpc-java -->
|
||||||
<grpc.version>1.53.0</grpc.version>
|
<grpc.version>1.68.1</grpc.version>
|
||||||
<guava.version>32.0.0-jre</guava.version>
|
<guava.version>32.0.0-jre</guava.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>com.seaweedfs</groupId>
|
<groupId>com.seaweedfs</groupId>
|
||||||
<artifactId>seaweedfs-client</artifactId>
|
<artifactId>seaweedfs-client</artifactId>
|
||||||
<version>3.71</version>
|
<version>3.80</version>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.sonatype.oss</groupId>
|
<groupId>org.sonatype.oss</groupId>
|
||||||
@@ -14,9 +14,9 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<protobuf.version>3.9.1</protobuf.version>
|
<protobuf.version>3.25.5</protobuf.version>
|
||||||
<!-- follow https://github.com/grpc/grpc-java -->
|
<!-- follow https://github.com/grpc/grpc-java -->
|
||||||
<grpc.version>1.23.0</grpc.version>
|
<grpc.version>1.68.1</grpc.version>
|
||||||
<guava.version>28.0-jre</guava.version>
|
<guava.version>28.0-jre</guava.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -14,11 +14,13 @@ public class FilerClient extends FilerGrpcClient {
|
|||||||
private static final Logger LOG = LoggerFactory.getLogger(FilerClient.class);
|
private static final Logger LOG = LoggerFactory.getLogger(FilerClient.class);
|
||||||
|
|
||||||
public FilerClient(String filerHost, int filerGrpcPort) {
|
public FilerClient(String filerHost, int filerGrpcPort) {
|
||||||
super(filerHost, filerGrpcPort-10000, filerGrpcPort);
|
this(filerHost, filerGrpcPort-10000, filerGrpcPort, "");
|
||||||
}
|
}
|
||||||
|
public FilerClient(String filerHost, int filerGrpcPort, String cn) { this(filerHost, filerGrpcPort-10000, filerGrpcPort, cn); }
|
||||||
|
public FilerClient(String filerHost, int filerPort, int filerGrpcPort) { this(filerHost, filerPort, filerGrpcPort, ""); }
|
||||||
|
|
||||||
public FilerClient(String filerHost, int filerPort, int filerGrpcPort) {
|
public FilerClient(String filerHost, int filerPort, int filerGrpcPort, String cn) {
|
||||||
super(filerHost, filerPort, filerGrpcPort);
|
super(filerHost, filerPort, filerGrpcPort, cn);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String toFileId(FilerProto.FileId fid) {
|
public static String toFileId(FilerProto.FileId fid) {
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import io.grpc.netty.shaded.io.netty.handler.ssl.SslContext;
|
|||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import javax.net.ssl.SSLException;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
@@ -17,14 +16,12 @@ import java.util.concurrent.TimeUnit;
|
|||||||
public class FilerGrpcClient {
|
public class FilerGrpcClient {
|
||||||
|
|
||||||
private static final Logger logger = LoggerFactory.getLogger(FilerGrpcClient.class);
|
private static final Logger logger = LoggerFactory.getLogger(FilerGrpcClient.class);
|
||||||
static SslContext sslContext;
|
private static final SslContext sslContext;
|
||||||
|
private static final String protocol;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
try {
|
sslContext = FilerSecurityContext.getGrpcSslContext();
|
||||||
sslContext = FilerSslContext.loadSslContext();
|
protocol = FilerSecurityContext.isHttpSecurityEnabled() ? "https" : "http";
|
||||||
} catch (SSLException e) {
|
|
||||||
logger.warn("failed to load ssl context", e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int VOLUME_SERVER_ACCESS_DIRECT = 0;
|
public final int VOLUME_SERVER_ACCESS_DIRECT = 0;
|
||||||
@@ -42,19 +39,27 @@ public class FilerGrpcClient {
|
|||||||
private int volumeServerAccess = VOLUME_SERVER_ACCESS_DIRECT;
|
private int volumeServerAccess = VOLUME_SERVER_ACCESS_DIRECT;
|
||||||
private String filerAddress;
|
private String filerAddress;
|
||||||
|
|
||||||
public FilerGrpcClient(String host, int port, int grpcPort) {
|
public FilerGrpcClient(String host, int port, int grpcPort, String cn) {
|
||||||
this(host, port, grpcPort, sslContext);
|
this(host, port, grpcPort, cn, sslContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
public FilerGrpcClient(String host, int port, int grpcPort, SslContext sslContext) {
|
public FilerGrpcClient(String host, int port, int grpcPort, String cn, SslContext sslContext) {
|
||||||
|
|
||||||
this(sslContext == null ?
|
this(sslContext == null ?
|
||||||
ManagedChannelBuilder.forAddress(host, grpcPort).usePlaintext()
|
ManagedChannelBuilder.forAddress(host, grpcPort)
|
||||||
|
.usePlaintext()
|
||||||
.maxInboundMessageSize(1024 * 1024 * 1024) :
|
.maxInboundMessageSize(1024 * 1024 * 1024) :
|
||||||
NettyChannelBuilder.forAddress(host, grpcPort)
|
cn.isEmpty() ?
|
||||||
.maxInboundMessageSize(1024 * 1024 * 1024)
|
NettyChannelBuilder.forAddress(host, grpcPort)
|
||||||
.negotiationType(NegotiationType.TLS)
|
.maxInboundMessageSize(1024 * 1024 * 1024)
|
||||||
.sslContext(sslContext));
|
.negotiationType(NegotiationType.TLS)
|
||||||
|
.sslContext(sslContext) :
|
||||||
|
NettyChannelBuilder.forAddress(host, grpcPort)
|
||||||
|
.maxInboundMessageSize(1024 * 1024 * 1024)
|
||||||
|
.negotiationType(NegotiationType.TLS)
|
||||||
|
.overrideAuthority(cn) //will not check hostname of the filer server
|
||||||
|
.sslContext(sslContext)
|
||||||
|
);
|
||||||
|
|
||||||
filerAddress = SeaweedUtil.joinHostPort(host, port);
|
filerAddress = SeaweedUtil.joinHostPort(host, port);
|
||||||
|
|
||||||
@@ -130,12 +135,11 @@ public class FilerGrpcClient {
|
|||||||
public String getChunkUrl(String chunkId, String url, String publicUrl) {
|
public String getChunkUrl(String chunkId, String url, String publicUrl) {
|
||||||
switch (this.volumeServerAccess) {
|
switch (this.volumeServerAccess) {
|
||||||
case VOLUME_SERVER_ACCESS_PUBLIC_URL:
|
case VOLUME_SERVER_ACCESS_PUBLIC_URL:
|
||||||
return String.format("http://%s/%s", publicUrl, chunkId);
|
return String.format("%s://%s/%s", protocol, publicUrl, chunkId);
|
||||||
case VOLUME_SERVER_ACCESS_FILER_PROXY:
|
case VOLUME_SERVER_ACCESS_FILER_PROXY:
|
||||||
return String.format("http://%s/?proxyChunkId=%s", this.filerAddress, chunkId);
|
return String.format("%s://%s/?proxyChunkId=%s", protocol, this.filerAddress, chunkId);
|
||||||
default:
|
default:
|
||||||
return String.format("http://%s/%s", url, chunkId);
|
return String.format("%s://%s/%s", protocol, url, chunkId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,164 @@
|
|||||||
|
package seaweedfs.client;
|
||||||
|
|
||||||
|
import com.google.common.base.Strings;
|
||||||
|
import com.moandjiezana.toml.Toml;
|
||||||
|
import io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts;
|
||||||
|
import io.grpc.netty.shaded.io.netty.handler.ssl.SslContext;
|
||||||
|
import io.grpc.netty.shaded.io.netty.handler.ssl.SslContextBuilder;
|
||||||
|
import io.grpc.netty.shaded.io.netty.handler.ssl.util.InsecureTrustManagerFactory;
|
||||||
|
import org.apache.http.ssl.SSLContextBuilder;
|
||||||
|
import org.apache.http.ssl.SSLContexts;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import javax.net.ssl.*;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.security.GeneralSecurityException;
|
||||||
|
import java.security.KeyStore;
|
||||||
|
import java.security.PrivateKey;
|
||||||
|
import java.security.cert.X509Certificate;
|
||||||
|
|
||||||
|
public abstract class FilerSecurityContext extends SslContext {
|
||||||
|
//extends Netty SslContext to access its protected static utility methods in
|
||||||
|
//buildHttpSslContext()
|
||||||
|
|
||||||
|
private static final Logger logger = LoggerFactory.getLogger(FilerSecurityContext.class);
|
||||||
|
private static boolean grpcSecurityEnabled;
|
||||||
|
private static boolean httpSecurityEnabled;
|
||||||
|
private static SslContext grpcSslContext;
|
||||||
|
private static SSLContext httpSslContext;
|
||||||
|
|
||||||
|
private static String grpcTrustCertCollectionFilePath;
|
||||||
|
private static String grpcClientCertChainFilePath;
|
||||||
|
private static String grpcClientPrivateKeyFilePath;
|
||||||
|
|
||||||
|
private static String httpTrustCertCollectionFilePath;
|
||||||
|
private static String httpClientCertChainFilePath;
|
||||||
|
private static String httpClientPrivateKeyFilePath;
|
||||||
|
|
||||||
|
|
||||||
|
static {
|
||||||
|
String securityFileName = "security.toml";
|
||||||
|
String home = System.getProperty("user.home");
|
||||||
|
File f1 = new File("./"+securityFileName);
|
||||||
|
File f2 = new File(home + "/.seaweedfs/"+securityFileName);
|
||||||
|
File f3 = new File("/etc/seaweedfs/"+securityFileName);
|
||||||
|
|
||||||
|
File securityFile = f1.exists()? f1 : f2.exists() ? f2 : f3.exists()? f3 : null;
|
||||||
|
|
||||||
|
if (securityFile==null){
|
||||||
|
logger.debug("Security file not found");
|
||||||
|
grpcSecurityEnabled = false;
|
||||||
|
httpSecurityEnabled = false;
|
||||||
|
} else {
|
||||||
|
|
||||||
|
Toml toml = new Toml().read(securityFile);
|
||||||
|
logger.debug("reading ssl setup from {}", securityFile);
|
||||||
|
|
||||||
|
grpcTrustCertCollectionFilePath = toml.getString("grpc.ca");
|
||||||
|
logger.debug("loading gRPC ca from {}", grpcTrustCertCollectionFilePath);
|
||||||
|
grpcClientCertChainFilePath = toml.getString("grpc.client.cert");
|
||||||
|
logger.debug("loading gRPC client ca from {}", grpcClientCertChainFilePath);
|
||||||
|
grpcClientPrivateKeyFilePath = toml.getString("grpc.client.key");
|
||||||
|
logger.debug("loading gRPC client key from {}", grpcClientPrivateKeyFilePath);
|
||||||
|
|
||||||
|
if (Strings.isNullOrEmpty(grpcClientCertChainFilePath) && Strings.isNullOrEmpty(grpcClientPrivateKeyFilePath)) {
|
||||||
|
logger.debug("gRPC private key file locations not set");
|
||||||
|
grpcSecurityEnabled = false;
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
grpcSslContext = buildGrpcSslContext();
|
||||||
|
grpcSecurityEnabled = true;
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.warn("Couldn't initialize gRPC security context, filer operations are likely to fail!", e);
|
||||||
|
grpcSslContext = null;
|
||||||
|
grpcSecurityEnabled = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (toml.getBoolean("https.client.enabled")) {
|
||||||
|
httpTrustCertCollectionFilePath = toml.getString("https.client.ca");
|
||||||
|
logger.debug("loading HTTP ca from {}", httpTrustCertCollectionFilePath);
|
||||||
|
httpClientCertChainFilePath = toml.getString("https.client.cert");
|
||||||
|
logger.debug("loading HTTP client ca from {}", httpClientCertChainFilePath);
|
||||||
|
httpClientPrivateKeyFilePath = toml.getString("https.client.key");
|
||||||
|
logger.debug("loading HTTP client key from {}", httpClientPrivateKeyFilePath);
|
||||||
|
|
||||||
|
if (Strings.isNullOrEmpty(httpClientCertChainFilePath) && Strings.isNullOrEmpty(httpClientPrivateKeyFilePath)) {
|
||||||
|
logger.debug("HTTP private key file locations not set");
|
||||||
|
httpSecurityEnabled = false;
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
httpSslContext = buildHttpSslContext();
|
||||||
|
httpSecurityEnabled = true;
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.warn("Couldn't initialize HTTP security context, volume operations are likely to fail!", e);
|
||||||
|
httpSslContext = null;
|
||||||
|
httpSecurityEnabled = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
httpSecurityEnabled = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// possibly fix the format https://netty.io/wiki/sslcontextbuilder-and-private-key.html
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean isGrpcSecurityEnabled() {
|
||||||
|
return grpcSecurityEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean isHttpSecurityEnabled() {
|
||||||
|
return httpSecurityEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static SslContext getGrpcSslContext() {
|
||||||
|
return grpcSslContext;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static SSLContext getHttpSslContext() {
|
||||||
|
return httpSslContext;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static SslContext buildGrpcSslContext() throws SSLException {
|
||||||
|
SslContextBuilder builder = GrpcSslContexts.forClient();
|
||||||
|
if (grpcTrustCertCollectionFilePath != null) {
|
||||||
|
builder.trustManager(new File(grpcTrustCertCollectionFilePath));
|
||||||
|
}
|
||||||
|
if (grpcClientCertChainFilePath != null && grpcClientPrivateKeyFilePath != null) {
|
||||||
|
builder.keyManager(new File(grpcClientCertChainFilePath), new File(grpcClientPrivateKeyFilePath));
|
||||||
|
}
|
||||||
|
|
||||||
|
return builder.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static SSLContext buildHttpSslContext() throws GeneralSecurityException, IOException {
|
||||||
|
SSLContextBuilder builder = SSLContexts.custom();
|
||||||
|
|
||||||
|
if (httpTrustCertCollectionFilePath != null) {
|
||||||
|
final X509Certificate[] trustCerts = toX509Certificates(new File(httpTrustCertCollectionFilePath));
|
||||||
|
final KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());
|
||||||
|
ks.load(null, null);
|
||||||
|
|
||||||
|
int i = 0;
|
||||||
|
for (X509Certificate cert: trustCerts) {
|
||||||
|
String alias = Integer.toString(++i);
|
||||||
|
ks.setCertificateEntry(alias, cert);
|
||||||
|
}
|
||||||
|
|
||||||
|
builder.loadTrustMaterial(ks, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (httpClientCertChainFilePath != null && httpClientPrivateKeyFilePath != null) {
|
||||||
|
final X509Certificate[] keyCerts = toX509Certificates(new File(httpClientCertChainFilePath));
|
||||||
|
final PrivateKey key = toPrivateKey(new File(httpClientPrivateKeyFilePath), null);
|
||||||
|
char[] emptyPassword = new char[0];
|
||||||
|
final KeyStore ks = buildKeyStore(keyCerts, key, emptyPassword, null);
|
||||||
|
logger.debug("Loaded {} key certificates", ks.size());
|
||||||
|
builder.loadKeyMaterial(ks, emptyPassword);
|
||||||
|
}
|
||||||
|
|
||||||
|
return builder.build();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
package seaweedfs.client;
|
|
||||||
|
|
||||||
import com.google.common.base.Strings;
|
|
||||||
import com.moandjiezana.toml.Toml;
|
|
||||||
import io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts;
|
|
||||||
import io.grpc.netty.shaded.io.netty.handler.ssl.SslContext;
|
|
||||||
import io.grpc.netty.shaded.io.netty.handler.ssl.SslContextBuilder;
|
|
||||||
import io.grpc.netty.shaded.io.netty.handler.ssl.util.InsecureTrustManagerFactory;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
import javax.net.ssl.SSLException;
|
|
||||||
import java.io.File;
|
|
||||||
|
|
||||||
public class FilerSslContext {
|
|
||||||
|
|
||||||
private static final Logger logger = LoggerFactory.getLogger(FilerSslContext.class);
|
|
||||||
|
|
||||||
public static SslContext loadSslContext() throws SSLException {
|
|
||||||
String securityFileName = "security.toml";
|
|
||||||
String home = System.getProperty("user.home");
|
|
||||||
File f1 = new File("./"+securityFileName);
|
|
||||||
File f2 = new File(home + "/.seaweedfs/"+securityFileName);
|
|
||||||
File f3 = new File("/etc/seaweedfs/"+securityFileName);
|
|
||||||
|
|
||||||
File securityFile = f1.exists()? f1 : f2.exists() ? f2 : f3.exists()? f3 : null;
|
|
||||||
|
|
||||||
if (securityFile==null){
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
Toml toml = new Toml().read(securityFile);
|
|
||||||
logger.debug("reading ssl setup from {}", securityFile);
|
|
||||||
|
|
||||||
String trustCertCollectionFilePath = toml.getString("grpc.ca");
|
|
||||||
logger.debug("loading ca from {}", trustCertCollectionFilePath);
|
|
||||||
String clientCertChainFilePath = toml.getString("grpc.client.cert");
|
|
||||||
logger.debug("loading client ca from {}", clientCertChainFilePath);
|
|
||||||
String clientPrivateKeyFilePath = toml.getString("grpc.client.key");
|
|
||||||
logger.debug("loading client key from {}", clientPrivateKeyFilePath);
|
|
||||||
|
|
||||||
if (Strings.isNullOrEmpty(clientPrivateKeyFilePath) && Strings.isNullOrEmpty(clientPrivateKeyFilePath)){
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
// possibly fix the format https://netty.io/wiki/sslcontextbuilder-and-private-key.html
|
|
||||||
|
|
||||||
return buildSslContext(trustCertCollectionFilePath, clientCertChainFilePath, clientPrivateKeyFilePath);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private static SslContext buildSslContext(String trustCertCollectionFilePath,
|
|
||||||
String clientCertChainFilePath,
|
|
||||||
String clientPrivateKeyFilePath) throws SSLException {
|
|
||||||
SslContextBuilder builder = GrpcSslContexts.forClient();
|
|
||||||
if (trustCertCollectionFilePath != null) {
|
|
||||||
builder.trustManager(new File(trustCertCollectionFilePath));
|
|
||||||
}
|
|
||||||
if (clientCertChainFilePath != null && clientPrivateKeyFilePath != null) {
|
|
||||||
builder.keyManager(new File(clientCertChainFilePath), new File(clientPrivateKeyFilePath));
|
|
||||||
}
|
|
||||||
return builder.trustManager(InsecureTrustManagerFactory.INSTANCE).build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -14,20 +14,23 @@ public class ReadChunks {
|
|||||||
points.add(new Point(chunk.getOffset(), chunk, true));
|
points.add(new Point(chunk.getOffset(), chunk, true));
|
||||||
points.add(new Point(chunk.getOffset() + chunk.getSize(), chunk, false));
|
points.add(new Point(chunk.getOffset() + chunk.getSize(), chunk, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
Collections.sort(points, new Comparator<Point>() {
|
Collections.sort(points, new Comparator<Point>() {
|
||||||
@Override
|
@Override
|
||||||
public int compare(Point a, Point b) {
|
public int compare(Point a, Point b) {
|
||||||
int x = (int) (a.x - b.x);
|
int xComparison = Long.compare(a.x, b.x);
|
||||||
if (a.x != b.x) {
|
if (xComparison != 0) {
|
||||||
return (int) (a.x - b.x);
|
return xComparison;
|
||||||
}
|
}
|
||||||
if (a.ts != b.ts) {
|
|
||||||
return (int) (a.ts - b.ts);
|
// If x values are equal, compare ts
|
||||||
|
int tsComparison = Long.compare(a.ts, b.ts);
|
||||||
|
if (tsComparison != 0) {
|
||||||
|
return tsComparison;
|
||||||
}
|
}
|
||||||
if (!a.isStart) {
|
|
||||||
return -1;
|
// If both x and ts are equal, prioritize start points
|
||||||
}
|
return Boolean.compare(b.isStart, a.isStart); // b.isStart first to prioritize starts
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,27 +1,64 @@
|
|||||||
package seaweedfs.client;
|
package seaweedfs.client;
|
||||||
|
|
||||||
|
import org.apache.http.config.Registry;
|
||||||
|
import org.apache.http.config.RegistryBuilder;
|
||||||
|
import org.apache.http.conn.socket.ConnectionSocketFactory;
|
||||||
|
import org.apache.http.conn.socket.PlainConnectionSocketFactory;
|
||||||
|
import org.apache.http.conn.ssl.DefaultHostnameVerifier;
|
||||||
|
import org.apache.http.conn.ssl.NoopHostnameVerifier;
|
||||||
|
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
|
||||||
import org.apache.http.impl.DefaultConnectionReuseStrategy;
|
import org.apache.http.impl.DefaultConnectionReuseStrategy;
|
||||||
import org.apache.http.impl.client.CloseableHttpClient;
|
import org.apache.http.impl.client.CloseableHttpClient;
|
||||||
import org.apache.http.impl.client.DefaultConnectionKeepAliveStrategy;
|
import org.apache.http.impl.client.DefaultConnectionKeepAliveStrategy;
|
||||||
import org.apache.http.impl.client.HttpClientBuilder;
|
import org.apache.http.impl.client.HttpClientBuilder;
|
||||||
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
|
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import javax.net.ssl.HostnameVerifier;
|
||||||
|
import javax.net.ssl.SSLContext;
|
||||||
|
|
||||||
public class SeaweedUtil {
|
public class SeaweedUtil {
|
||||||
|
|
||||||
static PoolingHttpClientConnectionManager cm = new PoolingHttpClientConnectionManager();
|
private static final Logger logger = LoggerFactory.getLogger(SeaweedUtil.class);
|
||||||
|
static PoolingHttpClientConnectionManager cm;
|
||||||
static CloseableHttpClient httpClient;
|
static CloseableHttpClient httpClient;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
//Apache HTTP client has a terrible API that makes you configure everything twice
|
||||||
|
//NoopHostnameVerifier is required because SeaweedFS doesn't verify hostnames
|
||||||
|
//and the servers are likely to have TLS certificates that do not match their hosts
|
||||||
|
if (FilerSecurityContext.isHttpSecurityEnabled()) {
|
||||||
|
SSLConnectionSocketFactory sslSocketFactory = new SSLConnectionSocketFactory(
|
||||||
|
FilerSecurityContext.getHttpSslContext(),
|
||||||
|
NoopHostnameVerifier.INSTANCE);
|
||||||
|
|
||||||
|
Registry<ConnectionSocketFactory> socketFactoryRegistry =
|
||||||
|
RegistryBuilder.<ConnectionSocketFactory>create()
|
||||||
|
.register("https", sslSocketFactory)
|
||||||
|
.register("http", new PlainConnectionSocketFactory())
|
||||||
|
.build();
|
||||||
|
cm = new PoolingHttpClientConnectionManager(socketFactoryRegistry);
|
||||||
|
} else {
|
||||||
|
cm = new PoolingHttpClientConnectionManager();
|
||||||
|
}
|
||||||
|
|
||||||
// Increase max total connection to 200
|
// Increase max total connection to 200
|
||||||
cm.setMaxTotal(200);
|
cm.setMaxTotal(200);
|
||||||
// Increase default max connection per route to 20
|
// Increase default max connection per route to 20
|
||||||
cm.setDefaultMaxPerRoute(20);
|
cm.setDefaultMaxPerRoute(20);
|
||||||
|
|
||||||
httpClient = HttpClientBuilder.create()
|
HttpClientBuilder builder = HttpClientBuilder.create()
|
||||||
.setConnectionManager(cm)
|
.setConnectionManager(cm)
|
||||||
.setConnectionReuseStrategy(DefaultConnectionReuseStrategy.INSTANCE)
|
.setConnectionReuseStrategy(DefaultConnectionReuseStrategy.INSTANCE)
|
||||||
.setKeepAliveStrategy(DefaultConnectionKeepAliveStrategy.INSTANCE)
|
.setKeepAliveStrategy(DefaultConnectionKeepAliveStrategy.INSTANCE);
|
||||||
.build();
|
|
||||||
|
if (FilerSecurityContext.isHttpSecurityEnabled()) {
|
||||||
|
builder.setSSLContext(FilerSecurityContext.getHttpSslContext());
|
||||||
|
builder.setSSLHostnameVerifier(NoopHostnameVerifier.INSTANCE);
|
||||||
|
}
|
||||||
|
|
||||||
|
httpClient = builder.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CloseableHttpClient getClosableHttpClient() {
|
public static CloseableHttpClient getClosableHttpClient() {
|
||||||
|
|||||||
@@ -125,6 +125,7 @@ message Entry {
|
|||||||
|
|
||||||
RemoteEntry remote_entry = 10;
|
RemoteEntry remote_entry = 10;
|
||||||
int64 quota = 11; // for bucket only. Positive/Negative means enabled/disabled.
|
int64 quota = 11; // for bucket only. Positive/Negative means enabled/disabled.
|
||||||
|
int64 worm_enforced_at_ts_ns = 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
message FullEntry {
|
message FullEntry {
|
||||||
@@ -443,6 +444,8 @@ message FilerConf {
|
|||||||
uint32 max_file_name_length = 12;
|
uint32 max_file_name_length = 12;
|
||||||
bool disable_chunk_deletion = 13;
|
bool disable_chunk_deletion = 13;
|
||||||
bool worm = 14;
|
bool worm = 14;
|
||||||
|
uint64 worm_grace_period_seconds = 15;
|
||||||
|
uint64 worm_retention_time_seconds = 16;
|
||||||
}
|
}
|
||||||
repeated PathConf locations = 2;
|
repeated PathConf locations = 2;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,13 +11,13 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.seaweedfs</groupId>
|
<groupId>com.seaweedfs</groupId>
|
||||||
<artifactId>seaweedfs-client</artifactId>
|
<artifactId>seaweedfs-client</artifactId>
|
||||||
<version>3.71</version>
|
<version>3.80</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.seaweedfs</groupId>
|
<groupId>com.seaweedfs</groupId>
|
||||||
<artifactId>seaweedfs-hadoop2-client</artifactId>
|
<artifactId>seaweedfs-hadoop2-client</artifactId>
|
||||||
<version>3.71</version>
|
<version>3.80</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@@ -327,7 +327,7 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<properties>
|
<properties>
|
||||||
<seaweedfs.client.version>3.71</seaweedfs.client.version>
|
<seaweedfs.client.version>3.80</seaweedfs.client.version>
|
||||||
<hadoop.version>3.2.4</hadoop.version>
|
<hadoop.version>3.2.4</hadoop.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<seaweedfs.client.version>3.71</seaweedfs.client.version>
|
<seaweedfs.client.version>3.80</seaweedfs.client.version>
|
||||||
<hadoop.version>3.2.4</hadoop.version>
|
<hadoop.version>3.2.4</hadoop.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ public class SeaweedFileSystem extends FileSystem {
|
|||||||
public static final String FS_SEAWEED_REPLICATION = "fs.seaweed.replication";
|
public static final String FS_SEAWEED_REPLICATION = "fs.seaweed.replication";
|
||||||
public static final String FS_SEAWEED_VOLUME_SERVER_ACCESS = "fs.seaweed.volume.server.access";
|
public static final String FS_SEAWEED_VOLUME_SERVER_ACCESS = "fs.seaweed.volume.server.access";
|
||||||
public static final int FS_SEAWEED_DEFAULT_BUFFER_SIZE = 4 * 1024 * 1024;
|
public static final int FS_SEAWEED_DEFAULT_BUFFER_SIZE = 4 * 1024 * 1024;
|
||||||
|
public static final String FS_SEAWEED_FILER_CN = "fs.seaweed.filer.cn";
|
||||||
|
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(SeaweedFileSystem.class);
|
private static final Logger LOG = LoggerFactory.getLogger(SeaweedFileSystem.class);
|
||||||
|
|
||||||
@@ -63,8 +64,9 @@ public class SeaweedFileSystem extends FileSystem {
|
|||||||
setConf(conf);
|
setConf(conf);
|
||||||
this.uri = uri;
|
this.uri = uri;
|
||||||
|
|
||||||
seaweedFileSystemStore = new SeaweedFileSystemStore(host, port, grpcPort, conf);
|
String cn = conf.get(FS_SEAWEED_FILER_CN, "");
|
||||||
|
|
||||||
|
seaweedFileSystemStore = new SeaweedFileSystemStore(host, port, grpcPort, cn, conf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ public class SeaweedFileSystemStore {
|
|||||||
private FilerClient filerClient;
|
private FilerClient filerClient;
|
||||||
private Configuration conf;
|
private Configuration conf;
|
||||||
|
|
||||||
public SeaweedFileSystemStore(String host, int port, int grpcPort, Configuration conf) {
|
public SeaweedFileSystemStore(String host, int port, int grpcPort, String cn, Configuration conf) {
|
||||||
filerClient = new FilerClient(host, port, grpcPort);
|
filerClient = new FilerClient(host, port, grpcPort, cn);
|
||||||
this.conf = conf;
|
this.conf = conf;
|
||||||
String volumeServerAccessMode = this.conf.get(FS_SEAWEED_VOLUME_SERVER_ACCESS, "direct");
|
String volumeServerAccessMode = this.conf.get(FS_SEAWEED_VOLUME_SERVER_ACCESS, "direct");
|
||||||
if (volumeServerAccessMode.equals("publicUrl")) {
|
if (volumeServerAccessMode.equals("publicUrl")) {
|
||||||
@@ -36,7 +36,6 @@ public class SeaweedFileSystemStore {
|
|||||||
} else if (volumeServerAccessMode.equals("filerProxy")) {
|
} else if (volumeServerAccessMode.equals("filerProxy")) {
|
||||||
filerClient.setAccessVolumeServerByFilerProxy();
|
filerClient.setAccessVolumeServerByFilerProxy();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void close() {
|
public void close() {
|
||||||
|
|||||||
@@ -327,7 +327,7 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<properties>
|
<properties>
|
||||||
<seaweedfs.client.version>3.71</seaweedfs.client.version>
|
<seaweedfs.client.version>3.80</seaweedfs.client.version>
|
||||||
<hadoop.version>3.2.4</hadoop.version>
|
<hadoop.version>3.2.4</hadoop.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<seaweedfs.client.version>3.71</seaweedfs.client.version>
|
<seaweedfs.client.version>3.80</seaweedfs.client.version>
|
||||||
<hadoop.version>3.2.4</hadoop.version>
|
<hadoop.version>3.2.4</hadoop.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ public class SeaweedFileSystem extends FileSystem {
|
|||||||
public static final String FS_SEAWEED_REPLICATION = "fs.seaweed.replication";
|
public static final String FS_SEAWEED_REPLICATION = "fs.seaweed.replication";
|
||||||
public static final String FS_SEAWEED_VOLUME_SERVER_ACCESS = "fs.seaweed.volume.server.access";
|
public static final String FS_SEAWEED_VOLUME_SERVER_ACCESS = "fs.seaweed.volume.server.access";
|
||||||
public static final int FS_SEAWEED_DEFAULT_BUFFER_SIZE = 4 * 1024 * 1024;
|
public static final int FS_SEAWEED_DEFAULT_BUFFER_SIZE = 4 * 1024 * 1024;
|
||||||
|
public static final String FS_SEAWEED_FILER_CN = "fs.seaweed.filer.cn";
|
||||||
|
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(SeaweedFileSystem.class);
|
private static final Logger LOG = LoggerFactory.getLogger(SeaweedFileSystem.class);
|
||||||
|
|
||||||
@@ -63,8 +64,9 @@ public class SeaweedFileSystem extends FileSystem {
|
|||||||
setConf(conf);
|
setConf(conf);
|
||||||
this.uri = uri;
|
this.uri = uri;
|
||||||
|
|
||||||
seaweedFileSystemStore = new SeaweedFileSystemStore(host, port, grpcPort, conf);
|
String cn = conf.get(FS_SEAWEED_FILER_CN, "");
|
||||||
|
|
||||||
|
seaweedFileSystemStore = new SeaweedFileSystemStore(host, port, grpcPort, cn, conf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ public class SeaweedFileSystemStore {
|
|||||||
private FilerClient filerClient;
|
private FilerClient filerClient;
|
||||||
private Configuration conf;
|
private Configuration conf;
|
||||||
|
|
||||||
public SeaweedFileSystemStore(String host, int port, int grpcPort, Configuration conf) {
|
public SeaweedFileSystemStore(String host, int port, int grpcPort, String cn, Configuration conf) {
|
||||||
filerClient = new FilerClient(host, port, grpcPort);
|
filerClient = new FilerClient(host, port, grpcPort, cn);
|
||||||
this.conf = conf;
|
this.conf = conf;
|
||||||
String volumeServerAccessMode = this.conf.get(FS_SEAWEED_VOLUME_SERVER_ACCESS, "direct");
|
String volumeServerAccessMode = this.conf.get(FS_SEAWEED_VOLUME_SERVER_ACCESS, "direct");
|
||||||
if (volumeServerAccessMode.equals("publicUrl")) {
|
if (volumeServerAccessMode.equals("publicUrl")) {
|
||||||
@@ -36,7 +36,6 @@ public class SeaweedFileSystemStore {
|
|||||||
} else if (volumeServerAccessMode.equals("filerProxy")) {
|
} else if (volumeServerAccessMode.equals("filerProxy")) {
|
||||||
filerClient.setAccessVolumeServerByFilerProxy();
|
filerClient.setAccessVolumeServerByFilerProxy();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void close() {
|
public void close() {
|
||||||
|
|||||||
@@ -105,7 +105,7 @@
|
|||||||
"steppedLine": false,
|
"steppedLine": false,
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "histogram_quantile(0.90, sum(rate(SeaweedFS_filer_request_seconds_bucket[1m])) by (le))",
|
"expr": "histogram_quantile(0.90, sum(rate(SeaweedFS_filerStore_request_seconds_bucket[1m])) by (le))",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"hide": false,
|
"hide": false,
|
||||||
"intervalFactor": 2,
|
"intervalFactor": 2,
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
"step": 60
|
"step": 60
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "histogram_quantile(0.90, sum(rate(SeaweedFS_filer_request_seconds_bucket[1m])) by (le, type))",
|
"expr": "histogram_quantile(0.90, sum(rate(SeaweedFS_filerStore_request_seconds_bucket[1m])) by (le, type))",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"hide": false,
|
"hide": false,
|
||||||
"intervalFactor": 2,
|
"intervalFactor": 2,
|
||||||
@@ -200,7 +200,7 @@
|
|||||||
"steppedLine": false,
|
"steppedLine": false,
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "histogram_quantile(0.95, sum(rate(SeaweedFS_filer_request_seconds_bucket[1m])) by (le))",
|
"expr": "histogram_quantile(0.95, sum(rate(SeaweedFS_filerStore_request_seconds_bucket[1m])) by (le))",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"hide": false,
|
"hide": false,
|
||||||
"intervalFactor": 2,
|
"intervalFactor": 2,
|
||||||
@@ -209,7 +209,7 @@
|
|||||||
"step": 60
|
"step": 60
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "histogram_quantile(0.95, sum(rate(SeaweedFS_filer_request_seconds_bucket[1m])) by (le, type))",
|
"expr": "histogram_quantile(0.95, sum(rate(SeaweedFS_filerStore_request_seconds_bucket[1m])) by (le, type))",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"hide": false,
|
"hide": false,
|
||||||
"intervalFactor": 2,
|
"intervalFactor": 2,
|
||||||
@@ -301,7 +301,7 @@
|
|||||||
"steppedLine": false,
|
"steppedLine": false,
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "histogram_quantile(0.99, sum(rate(SeaweedFS_filer_request_seconds_bucket[1m])) by (le))",
|
"expr": "histogram_quantile(0.99, sum(rate(SeaweedFS_filerStore_request_seconds_bucket[1m])) by (le))",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"hide": false,
|
"hide": false,
|
||||||
"intervalFactor": 2,
|
"intervalFactor": 2,
|
||||||
@@ -310,7 +310,7 @@
|
|||||||
"step": 60
|
"step": 60
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expr": "histogram_quantile(0.99, sum(rate(SeaweedFS_filer_request_seconds_bucket[1m])) by (le, type))",
|
"expr": "histogram_quantile(0.99, sum(rate(SeaweedFS_filerStore_request_seconds_bucket[1m])) by (le, type))",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"hide": false,
|
"hide": false,
|
||||||
"intervalFactor": 2,
|
"intervalFactor": 2,
|
||||||
@@ -415,7 +415,7 @@
|
|||||||
"steppedLine": false,
|
"steppedLine": false,
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "rate(SeaweedFS_filer_request_total[1m])",
|
"expr": "rate(SeaweedFS_filerStore_request_total[1m])",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"intervalFactor": 2,
|
"intervalFactor": 2,
|
||||||
"legendFormat": "{{type}}",
|
"legendFormat": "{{type}}",
|
||||||
@@ -804,6 +804,192 @@
|
|||||||
"alignLevel": null
|
"alignLevel": null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"aliasColors": {},
|
||||||
|
"bars": false,
|
||||||
|
"dashLength": 10,
|
||||||
|
"dashes": false,
|
||||||
|
"datasource": "${DS_PROMETHEUS}",
|
||||||
|
"fill": 1,
|
||||||
|
"fillGradient": 0,
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "decbytes"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"h": 7,
|
||||||
|
"w": 12,
|
||||||
|
"x": 0,
|
||||||
|
"y": 9
|
||||||
|
},
|
||||||
|
"hiddenSeries": false,
|
||||||
|
"id": 84,
|
||||||
|
"legend": {
|
||||||
|
"avg": false,
|
||||||
|
"current": false,
|
||||||
|
"max": false,
|
||||||
|
"min": false,
|
||||||
|
"show": true,
|
||||||
|
"total": false,
|
||||||
|
"values": false
|
||||||
|
},
|
||||||
|
"lines": true,
|
||||||
|
"linewidth": 1,
|
||||||
|
"links": [],
|
||||||
|
"nullPointMode": "null",
|
||||||
|
"options": {
|
||||||
|
"alertThreshold": true
|
||||||
|
},
|
||||||
|
"percentage": false,
|
||||||
|
"pluginVersion": "8.1.2",
|
||||||
|
"pointradius": 5,
|
||||||
|
"points": false,
|
||||||
|
"renderer": "flot",
|
||||||
|
"seriesOverrides": [],
|
||||||
|
"spaceLength": 10,
|
||||||
|
"stack": false,
|
||||||
|
"steppedLine": false,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"expr": "sum(rate(SeaweedFS_s3_bucket_traffic_received_bytes_total[$__interval])) by (bucket)",
|
||||||
|
"format": "time_series",
|
||||||
|
"hide": false,
|
||||||
|
"intervalFactor": 2,
|
||||||
|
"legendFormat": "{{bucket}}",
|
||||||
|
"refId": "A"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"thresholds": [],
|
||||||
|
"timeFrom": null,
|
||||||
|
"timeRegions": [],
|
||||||
|
"timeShift": null,
|
||||||
|
"title": "S3 Bucket Traffic Received",
|
||||||
|
"tooltip": {
|
||||||
|
"shared": true,
|
||||||
|
"sort": 0,
|
||||||
|
"value_type": "individual"
|
||||||
|
},
|
||||||
|
"type": "graph",
|
||||||
|
"xaxis": {
|
||||||
|
"buckets": null,
|
||||||
|
"mode": "time",
|
||||||
|
"name": null,
|
||||||
|
"show": true,
|
||||||
|
"values": []
|
||||||
|
},
|
||||||
|
"yaxes": [
|
||||||
|
{
|
||||||
|
"format": "decbytes",
|
||||||
|
"logBase": 1,
|
||||||
|
"min": 0,
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"format": "short",
|
||||||
|
"logBase": 1,
|
||||||
|
"show": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"yaxis": {
|
||||||
|
"align": false,
|
||||||
|
"alignLevel": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"aliasColors": {},
|
||||||
|
"bars": false,
|
||||||
|
"dashLength": 10,
|
||||||
|
"dashes": false,
|
||||||
|
"datasource": "${DS_PROMETHEUS}",
|
||||||
|
"fill": 1,
|
||||||
|
"fillGradient": 0,
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "decbytes"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"h": 7,
|
||||||
|
"w": 12,
|
||||||
|
"x": 12,
|
||||||
|
"y": 9
|
||||||
|
},
|
||||||
|
"hiddenSeries": false,
|
||||||
|
"id": 85,
|
||||||
|
"legend": {
|
||||||
|
"avg": false,
|
||||||
|
"current": false,
|
||||||
|
"max": false,
|
||||||
|
"min": false,
|
||||||
|
"show": true,
|
||||||
|
"total": false,
|
||||||
|
"values": false
|
||||||
|
},
|
||||||
|
"lines": true,
|
||||||
|
"linewidth": 1,
|
||||||
|
"links": [],
|
||||||
|
"nullPointMode": "null",
|
||||||
|
"options": {
|
||||||
|
"alertThreshold": true
|
||||||
|
},
|
||||||
|
"percentage": false,
|
||||||
|
"pluginVersion": "8.1.2",
|
||||||
|
"pointradius": 5,
|
||||||
|
"points": false,
|
||||||
|
"renderer": "flot",
|
||||||
|
"seriesOverrides": [],
|
||||||
|
"spaceLength": 10,
|
||||||
|
"stack": false,
|
||||||
|
"steppedLine": false,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"expr": "sum(rate(SeaweedFS_s3_bucket_traffic_sent_bytes_total[$__interval])) by (bucket)",
|
||||||
|
"format": "time_series",
|
||||||
|
"hide": false,
|
||||||
|
"intervalFactor": 2,
|
||||||
|
"legendFormat": "{{bucket}}",
|
||||||
|
"refId": "A"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"thresholds": [],
|
||||||
|
"timeFrom": null,
|
||||||
|
"timeRegions": [],
|
||||||
|
"timeShift": null,
|
||||||
|
"title": "S3 Bucket Traffic Sent",
|
||||||
|
"tooltip": {
|
||||||
|
"shared": true,
|
||||||
|
"sort": 0,
|
||||||
|
"value_type": "individual"
|
||||||
|
},
|
||||||
|
"type": "graph",
|
||||||
|
"xaxis": {
|
||||||
|
"buckets": null,
|
||||||
|
"mode": "time",
|
||||||
|
"name": null,
|
||||||
|
"show": true,
|
||||||
|
"values": []
|
||||||
|
},
|
||||||
|
"yaxes": [
|
||||||
|
{
|
||||||
|
"format": "decbytes",
|
||||||
|
"logBase": 1,
|
||||||
|
"min": 0,
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"format": "short",
|
||||||
|
"logBase": 1,
|
||||||
|
"show": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"yaxis": {
|
||||||
|
"align": false,
|
||||||
|
"alignLevel": null
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"aliasColors": {},
|
"aliasColors": {},
|
||||||
"bars": false,
|
"bars": false,
|
||||||
@@ -819,7 +1005,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 9
|
"y": 16
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 55,
|
"id": 55,
|
||||||
@@ -928,7 +1114,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 16
|
"y": 23
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"hideTimeOverride": false,
|
"hideTimeOverride": false,
|
||||||
@@ -1068,7 +1254,7 @@
|
|||||||
"h": 1,
|
"h": 1,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 23
|
"y": 30
|
||||||
},
|
},
|
||||||
"id": 71,
|
"id": 71,
|
||||||
"panels": [],
|
"panels": [],
|
||||||
@@ -1091,7 +1277,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 24
|
"y": 31
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 47,
|
"id": 47,
|
||||||
@@ -1195,7 +1381,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 12,
|
"x": 12,
|
||||||
"y": 24
|
"y": 31
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 40,
|
"id": 40,
|
||||||
@@ -1294,7 +1480,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 31
|
"y": 38
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 48,
|
"id": 48,
|
||||||
@@ -1393,7 +1579,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 38
|
"y": 45
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 50,
|
"id": 50,
|
||||||
@@ -1492,7 +1678,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 45
|
"y": 52
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 51,
|
"id": 51,
|
||||||
@@ -1583,7 +1769,7 @@
|
|||||||
"h": 1,
|
"h": 1,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 52
|
"y": 59
|
||||||
},
|
},
|
||||||
"id": 72,
|
"id": 72,
|
||||||
"panels": [],
|
"panels": [],
|
||||||
@@ -1606,7 +1792,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 53
|
"y": 60
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 12,
|
"id": 12,
|
||||||
@@ -1702,7 +1888,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 12,
|
"x": 12,
|
||||||
"y": 53
|
"y": 60
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 14,
|
"id": 14,
|
||||||
@@ -1797,7 +1983,7 @@
|
|||||||
"h": 1,
|
"h": 1,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 60
|
"y": 67
|
||||||
},
|
},
|
||||||
"id": 73,
|
"id": 73,
|
||||||
"panels": [],
|
"panels": [],
|
||||||
@@ -1820,7 +2006,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 61
|
"y": 68
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 52,
|
"id": 52,
|
||||||
@@ -1941,7 +2127,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 12,
|
"x": 12,
|
||||||
"y": 61
|
"y": 68
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 54,
|
"id": 54,
|
||||||
@@ -2037,7 +2223,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 68
|
"y": 75
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 53,
|
"id": 53,
|
||||||
@@ -2136,7 +2322,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 8,
|
"w": 8,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 75
|
"y": 82
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 66,
|
"id": 66,
|
||||||
@@ -2287,7 +2473,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 8,
|
"w": 8,
|
||||||
"x": 8,
|
"x": 8,
|
||||||
"y": 75
|
"y": 82
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 68,
|
"id": 68,
|
||||||
|
|||||||
@@ -713,6 +713,168 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"aliasColors": {},
|
||||||
|
"bars": false,
|
||||||
|
"dashLength": 10,
|
||||||
|
"dashes": false,
|
||||||
|
"datasource": "${DS_PROMETHEUS-DEV}",
|
||||||
|
"editable": true,
|
||||||
|
"error": false,
|
||||||
|
"fill": 1,
|
||||||
|
"grid": {},
|
||||||
|
"id": 84,
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "decbytes"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"legend": {
|
||||||
|
"avg": false,
|
||||||
|
"current": false,
|
||||||
|
"max": false,
|
||||||
|
"min": false,
|
||||||
|
"show": true,
|
||||||
|
"total": false,
|
||||||
|
"values": false
|
||||||
|
},
|
||||||
|
"lines": true,
|
||||||
|
"linewidth": 1,
|
||||||
|
"links": [],
|
||||||
|
"nullPointMode": "null as zero",
|
||||||
|
"percentage": false,
|
||||||
|
"pointradius": 5,
|
||||||
|
"points": false,
|
||||||
|
"renderer": "flot",
|
||||||
|
"seriesOverrides": [],
|
||||||
|
"spaceLength": 10,
|
||||||
|
"span": 6,
|
||||||
|
"stack": false,
|
||||||
|
"steppedLine": false,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"expr": "sum(rate(SeaweedFS_s3_bucket_traffic_received_bytes_total[$__interval])) by (bucket)",
|
||||||
|
"format": "time_series",
|
||||||
|
"hide": false,
|
||||||
|
"intervalFactor": 2,
|
||||||
|
"legendFormat": "{{bucket}}",
|
||||||
|
"refId": "A"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"thresholds": [],
|
||||||
|
"timeFrom": null,
|
||||||
|
"timeShift": null,
|
||||||
|
"title": "S3 Bucket Traffic Received",
|
||||||
|
"tooltip": {
|
||||||
|
"msResolution": true,
|
||||||
|
"shared": true,
|
||||||
|
"sort": 0,
|
||||||
|
"value_type": "cumulative"
|
||||||
|
},
|
||||||
|
"type": "graph",
|
||||||
|
"xaxis": {
|
||||||
|
"buckets": null,
|
||||||
|
"mode": "time",
|
||||||
|
"name": null,
|
||||||
|
"show": true,
|
||||||
|
"values": []
|
||||||
|
},
|
||||||
|
"yaxes": [
|
||||||
|
{
|
||||||
|
"format": "decbytes",
|
||||||
|
"logBase": 1,
|
||||||
|
"min": 0,
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"format": "short",
|
||||||
|
"logBase": 1,
|
||||||
|
"show": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"aliasColors": {},
|
||||||
|
"bars": false,
|
||||||
|
"dashLength": 10,
|
||||||
|
"dashes": false,
|
||||||
|
"datasource": "${DS_PROMETHEUS-DEV}",
|
||||||
|
"editable": true,
|
||||||
|
"error": false,
|
||||||
|
"fill": 1,
|
||||||
|
"grid": {},
|
||||||
|
"id": 85,
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "decbytes"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"legend": {
|
||||||
|
"avg": false,
|
||||||
|
"current": false,
|
||||||
|
"max": false,
|
||||||
|
"min": false,
|
||||||
|
"show": true,
|
||||||
|
"total": false,
|
||||||
|
"values": false
|
||||||
|
},
|
||||||
|
"lines": true,
|
||||||
|
"linewidth": 1,
|
||||||
|
"links": [],
|
||||||
|
"nullPointMode": "null as zero",
|
||||||
|
"percentage": false,
|
||||||
|
"pointradius": 5,
|
||||||
|
"points": false,
|
||||||
|
"renderer": "flot",
|
||||||
|
"seriesOverrides": [],
|
||||||
|
"spaceLength": 10,
|
||||||
|
"span": 6,
|
||||||
|
"stack": false,
|
||||||
|
"steppedLine": false,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"expr": "sum(rate(SeaweedFS_s3_bucket_traffic_sent_bytes_total[$__interval])) by (bucket)",
|
||||||
|
"format": "time_series",
|
||||||
|
"hide": false,
|
||||||
|
"intervalFactor": 2,
|
||||||
|
"legendFormat": "{{bucket}}",
|
||||||
|
"refId": "A"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"thresholds": [],
|
||||||
|
"timeFrom": null,
|
||||||
|
"timeShift": null,
|
||||||
|
"title": "S3 Bucket Traffic Sent",
|
||||||
|
"tooltip": {
|
||||||
|
"msResolution": true,
|
||||||
|
"shared": true,
|
||||||
|
"sort": 0,
|
||||||
|
"value_type": "cumulative"
|
||||||
|
},
|
||||||
|
"type": "graph",
|
||||||
|
"xaxis": {
|
||||||
|
"buckets": null,
|
||||||
|
"mode": "time",
|
||||||
|
"name": null,
|
||||||
|
"show": true,
|
||||||
|
"values": []
|
||||||
|
},
|
||||||
|
"yaxes": [
|
||||||
|
{
|
||||||
|
"format": "decbytes",
|
||||||
|
"logBase": 1,
|
||||||
|
"min": 0,
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"format": "short",
|
||||||
|
"logBase": 1,
|
||||||
|
"show": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"aliasColors": {},
|
"aliasColors": {},
|
||||||
"bars": false,
|
"bars": false,
|
||||||
|
|||||||
@@ -261,6 +261,192 @@
|
|||||||
"alignLevel": null
|
"alignLevel": null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"aliasColors": {},
|
||||||
|
"bars": false,
|
||||||
|
"dashLength": 10,
|
||||||
|
"dashes": false,
|
||||||
|
"datasource": "${DS_PROMETHEUS}",
|
||||||
|
"fill": 1,
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "decbytes"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"fillGradient": 0,
|
||||||
|
"gridPos": {
|
||||||
|
"h": 7,
|
||||||
|
"w": 12,
|
||||||
|
"x": 0,
|
||||||
|
"y": 8
|
||||||
|
},
|
||||||
|
"hiddenSeries": false,
|
||||||
|
"id": 84,
|
||||||
|
"legend": {
|
||||||
|
"avg": false,
|
||||||
|
"current": false,
|
||||||
|
"max": false,
|
||||||
|
"min": false,
|
||||||
|
"show": true,
|
||||||
|
"total": false,
|
||||||
|
"values": false
|
||||||
|
},
|
||||||
|
"lines": true,
|
||||||
|
"linewidth": 1,
|
||||||
|
"links": [],
|
||||||
|
"nullPointMode": "null",
|
||||||
|
"options": {
|
||||||
|
"alertThreshold": true
|
||||||
|
},
|
||||||
|
"percentage": false,
|
||||||
|
"pluginVersion": "8.1.2",
|
||||||
|
"pointradius": 5,
|
||||||
|
"points": false,
|
||||||
|
"renderer": "flot",
|
||||||
|
"seriesOverrides": [],
|
||||||
|
"spaceLength": 10,
|
||||||
|
"stack": false,
|
||||||
|
"steppedLine": false,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"expr": "sum(rate(SeaweedFS_s3_bucket_traffic_received_bytes_total{namespace=\"$namespace\",service=~\"$service-api\"}[$__interval])) by (bucket)",
|
||||||
|
"format": "time_series",
|
||||||
|
"hide": false,
|
||||||
|
"intervalFactor": 2,
|
||||||
|
"legendFormat": "{{bucket}}",
|
||||||
|
"refId": "A"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"thresholds": [],
|
||||||
|
"timeFrom": null,
|
||||||
|
"timeRegions": [],
|
||||||
|
"timeShift": null,
|
||||||
|
"title": "S3 Bucket Traffic Received",
|
||||||
|
"tooltip": {
|
||||||
|
"shared": true,
|
||||||
|
"sort": 0,
|
||||||
|
"value_type": "individual"
|
||||||
|
},
|
||||||
|
"type": "graph",
|
||||||
|
"xaxis": {
|
||||||
|
"buckets": null,
|
||||||
|
"mode": "time",
|
||||||
|
"name": null,
|
||||||
|
"show": true,
|
||||||
|
"values": []
|
||||||
|
},
|
||||||
|
"yaxes": [
|
||||||
|
{
|
||||||
|
"format": "decbytes",
|
||||||
|
"logBase": 1,
|
||||||
|
"min": 0,
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"format": "short",
|
||||||
|
"logBase": 1,
|
||||||
|
"show": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"yaxis": {
|
||||||
|
"align": false,
|
||||||
|
"alignLevel": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"aliasColors": {},
|
||||||
|
"bars": false,
|
||||||
|
"dashLength": 10,
|
||||||
|
"dashes": false,
|
||||||
|
"datasource": "${DS_PROMETHEUS}",
|
||||||
|
"fill": 1,
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "decbytes"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"fillGradient": 0,
|
||||||
|
"gridPos": {
|
||||||
|
"h": 7,
|
||||||
|
"w": 12,
|
||||||
|
"x": 12,
|
||||||
|
"y": 8
|
||||||
|
},
|
||||||
|
"hiddenSeries": false,
|
||||||
|
"id": 85,
|
||||||
|
"legend": {
|
||||||
|
"avg": false,
|
||||||
|
"current": false,
|
||||||
|
"max": false,
|
||||||
|
"min": false,
|
||||||
|
"show": true,
|
||||||
|
"total": false,
|
||||||
|
"values": false
|
||||||
|
},
|
||||||
|
"lines": true,
|
||||||
|
"linewidth": 1,
|
||||||
|
"links": [],
|
||||||
|
"nullPointMode": "null",
|
||||||
|
"options": {
|
||||||
|
"alertThreshold": true
|
||||||
|
},
|
||||||
|
"percentage": false,
|
||||||
|
"pluginVersion": "8.1.2",
|
||||||
|
"pointradius": 5,
|
||||||
|
"points": false,
|
||||||
|
"renderer": "flot",
|
||||||
|
"seriesOverrides": [],
|
||||||
|
"spaceLength": 10,
|
||||||
|
"stack": false,
|
||||||
|
"steppedLine": false,
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"expr": "sum(rate(SeaweedFS_s3_bucket_traffic_sent_bytes_total{namespace=\"$namespace\",service=~\"$service-api\"}[$__interval])) by (bucket)",
|
||||||
|
"format": "time_series",
|
||||||
|
"hide": false,
|
||||||
|
"intervalFactor": 2,
|
||||||
|
"legendFormat": "{{bucket}}",
|
||||||
|
"refId": "A"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"thresholds": [],
|
||||||
|
"timeFrom": null,
|
||||||
|
"timeRegions": [],
|
||||||
|
"timeShift": null,
|
||||||
|
"title": "S3 Bucket Traffic Sent",
|
||||||
|
"tooltip": {
|
||||||
|
"shared": true,
|
||||||
|
"sort": 0,
|
||||||
|
"value_type": "individual"
|
||||||
|
},
|
||||||
|
"type": "graph",
|
||||||
|
"xaxis": {
|
||||||
|
"buckets": null,
|
||||||
|
"mode": "time",
|
||||||
|
"name": null,
|
||||||
|
"show": true,
|
||||||
|
"values": []
|
||||||
|
},
|
||||||
|
"yaxes": [
|
||||||
|
{
|
||||||
|
"format": "decbytes",
|
||||||
|
"logBase": 1,
|
||||||
|
"min": 0,
|
||||||
|
"show": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"format": "short",
|
||||||
|
"logBase": 1,
|
||||||
|
"show": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"yaxis": {
|
||||||
|
"align": false,
|
||||||
|
"alignLevel": null
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"aliasColors": {},
|
"aliasColors": {},
|
||||||
"bars": false,
|
"bars": false,
|
||||||
@@ -282,7 +468,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 8,
|
"w": 8,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 8
|
"y": 15
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 68,
|
"id": 68,
|
||||||
@@ -393,7 +579,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 8,
|
"w": 8,
|
||||||
"x": 8,
|
"x": 8,
|
||||||
"y": 8
|
"y": 15
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 67,
|
"id": 67,
|
||||||
@@ -504,7 +690,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 8,
|
"w": 8,
|
||||||
"x": 16,
|
"x": 16,
|
||||||
"y": 8
|
"y": 15
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 65,
|
"id": 65,
|
||||||
@@ -601,7 +787,7 @@
|
|||||||
"h": 1,
|
"h": 1,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 15
|
"y": 22
|
||||||
},
|
},
|
||||||
"id": 55,
|
"id": 55,
|
||||||
"panels": [],
|
"panels": [],
|
||||||
@@ -630,7 +816,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 8,
|
"w": 8,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 16
|
"y": 23
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 46,
|
"id": 46,
|
||||||
@@ -741,7 +927,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 8,
|
"w": 8,
|
||||||
"x": 8,
|
"x": 8,
|
||||||
"y": 16
|
"y": 23
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 49,
|
"id": 49,
|
||||||
@@ -857,7 +1043,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 8,
|
"w": 8,
|
||||||
"x": 16,
|
"x": 16,
|
||||||
"y": 16
|
"y": 23
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 66,
|
"id": 66,
|
||||||
@@ -973,7 +1159,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 23
|
"y": 30
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 2,
|
"id": 2,
|
||||||
@@ -1072,7 +1258,7 @@
|
|||||||
"h": 1,
|
"h": 1,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 30
|
"y": 37
|
||||||
},
|
},
|
||||||
"id": 56,
|
"id": 56,
|
||||||
"panels": [],
|
"panels": [],
|
||||||
@@ -1101,7 +1287,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 31
|
"y": 38
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 47,
|
"id": 47,
|
||||||
@@ -1209,7 +1395,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 12,
|
"x": 12,
|
||||||
"y": 31
|
"y": 38
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 40,
|
"id": 40,
|
||||||
@@ -1312,7 +1498,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 38
|
"y": 45
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 48,
|
"id": 48,
|
||||||
@@ -1425,7 +1611,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 45
|
"y": 52
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 50,
|
"id": 50,
|
||||||
@@ -1530,7 +1716,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 52
|
"y": 59
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 51,
|
"id": 51,
|
||||||
@@ -1615,7 +1801,7 @@
|
|||||||
"h": 1,
|
"h": 1,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 59
|
"y": 66
|
||||||
},
|
},
|
||||||
"id": 57,
|
"id": 57,
|
||||||
"panels": [],
|
"panels": [],
|
||||||
@@ -1644,7 +1830,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 60
|
"y": 67
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 12,
|
"id": 12,
|
||||||
@@ -1744,7 +1930,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 12,
|
"x": 12,
|
||||||
"y": 60
|
"y": 67
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 14,
|
"id": 14,
|
||||||
@@ -1833,7 +2019,7 @@
|
|||||||
"h": 1,
|
"h": 1,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 67
|
"y": 74
|
||||||
},
|
},
|
||||||
"id": 58,
|
"id": 58,
|
||||||
"panels": [],
|
"panels": [],
|
||||||
@@ -1862,7 +2048,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 68
|
"y": 75
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 52,
|
"id": 52,
|
||||||
@@ -1990,7 +2176,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 12,
|
"w": 12,
|
||||||
"x": 12,
|
"x": 12,
|
||||||
"y": 68
|
"y": 75
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 54,
|
"id": 54,
|
||||||
@@ -2090,7 +2276,7 @@
|
|||||||
"h": 7,
|
"h": 7,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 75
|
"y": 82
|
||||||
},
|
},
|
||||||
"hiddenSeries": false,
|
"hiddenSeries": false,
|
||||||
"id": 53,
|
"id": 53,
|
||||||
|
|||||||
@@ -0,0 +1,95 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"flag"
|
||||||
|
"fmt"
|
||||||
|
"github.com/seaweedfs/seaweedfs/other/mq_client_example/example"
|
||||||
|
"github.com/seaweedfs/seaweedfs/weed/mq/client/agent_client"
|
||||||
|
"github.com/seaweedfs/seaweedfs/weed/mq/schema"
|
||||||
|
"log"
|
||||||
|
"sync"
|
||||||
|
"sync/atomic"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
messageCount = flag.Int("n", 1000, "message count")
|
||||||
|
messageDelay = flag.Duration("d", time.Second, "delay between messages")
|
||||||
|
concurrency = flag.Int("c", 4, "concurrent publishers")
|
||||||
|
partitionCount = flag.Int("p", 6, "partition count")
|
||||||
|
|
||||||
|
clientName = flag.String("client", "c1", "client name")
|
||||||
|
|
||||||
|
namespace = flag.String("ns", "test", "namespace")
|
||||||
|
t = flag.String("t", "test", "t")
|
||||||
|
agent = flag.String("agent", "localhost:16777", "mq agent address")
|
||||||
|
|
||||||
|
counter int32
|
||||||
|
)
|
||||||
|
|
||||||
|
func genMyRecord(id int32) *example.MyRecord {
|
||||||
|
return &example.MyRecord{
|
||||||
|
Key: []byte(fmt.Sprintf("key-%s-%d", *clientName, id)),
|
||||||
|
Field1: []byte(fmt.Sprintf("field1-%s-%d", *clientName, id)),
|
||||||
|
Field2: fmt.Sprintf("field2-%s-%d", *clientName, id),
|
||||||
|
Field3: id,
|
||||||
|
Field4: int64(id),
|
||||||
|
Field5: float32(id),
|
||||||
|
Field6: float64(id),
|
||||||
|
Field7: id%2 == 0,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func doPublish(publisher *agent_client.PublishSession, id int) {
|
||||||
|
startTime := time.Now()
|
||||||
|
for {
|
||||||
|
i := atomic.AddInt32(&counter, 1)
|
||||||
|
if i > int32(*messageCount) {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
// Simulate publishing a message
|
||||||
|
myRecord := genMyRecord(int32(i))
|
||||||
|
if err := publisher.PublishMessageRecord(myRecord.Key, myRecord.ToRecordValue()); err != nil {
|
||||||
|
fmt.Println(err)
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if *messageDelay > 0 {
|
||||||
|
time.Sleep(*messageDelay)
|
||||||
|
fmt.Printf("sent %+v\n", string(myRecord.Key))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elapsed := time.Since(startTime)
|
||||||
|
log.Printf("Publisher %s-%d finished in %s", *clientName, id, elapsed)
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
flag.Parse()
|
||||||
|
|
||||||
|
recordType := example.MyRecordType()
|
||||||
|
|
||||||
|
session, err := agent_client.NewPublishSession(*agent, schema.NewSchema(*namespace, *t, recordType), *partitionCount, *clientName)
|
||||||
|
if err != nil {
|
||||||
|
log.Printf("failed to create session: %v", err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
defer session.CloseSession()
|
||||||
|
|
||||||
|
startTime := time.Now()
|
||||||
|
|
||||||
|
var wg sync.WaitGroup
|
||||||
|
// Start multiple publishers
|
||||||
|
for i := 0; i < *concurrency; i++ {
|
||||||
|
wg.Add(1)
|
||||||
|
go func(id int) {
|
||||||
|
defer wg.Done()
|
||||||
|
doPublish(session, id)
|
||||||
|
}(i)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Wait for all publishers to finish
|
||||||
|
wg.Wait()
|
||||||
|
elapsed := time.Since(startTime)
|
||||||
|
|
||||||
|
log.Printf("Published %d messages in %s (%.2f msg/s)", *messageCount, elapsed, float64(*messageCount)/elapsed.Seconds())
|
||||||
|
|
||||||
|
}
|
||||||
Loaded 100 of 571 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user