-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SeaweedFS Remote Mount #8660
Merged
Merged
SeaweedFS Remote Mount #8660
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
3160748
[seaweedfs] major overhaul
yashgorana f39d981
[syft] use custom bucket name
yashgorana 11501a8
[helm] update seaweedfs chart
yashgorana b5b025a
[syft] update env vars
yashgorana 442ba50
[syft] fix mypy
yashgorana d62116e
[seaweedfs] fixes
yashgorana 1e5692e
[seaweedfs] fix docker compose
yashgorana d913045
Merge branch 'dev' into yash/seaweedfs-remote
yashgorana b28f012
[tests] run integrationw without --dev
yashgorana 84ed64b
[seaweedfs] fix blocked proc in /configure_azure
yashgorana 67d1693
[tests] fix seaweed mount
yashgorana 372f0ed
[tests] add seaweedfs unit tests
yashgorana 9c353c5
Merge branch 'dev' into yash/seaweedfs-remote
yashgorana 4d9b30b
[seaweedfs] py3.10 compat
yashgorana 04f7362
Merge branch 'dev' into yash/seaweedfs-remote
yashgorana 6c973b4
Merge branch 'dev' into yash/seaweedfs-remote
yashgorana 7712c3c
Merge branch 'dev' into yash/seaweedfs-remote
yashgorana 0c13b56
Merge branch 'dev' into yash/seaweedfs-remote
yashgorana 5a82d79
[tox] fix swfs description
yashgorana File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
packages/grid/helm/syft/templates/seaweedfs/seaweedfs-mount-secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{- if and (ne .Values.node.type "gateway") (.Values.seaweedfs.secret.mountCredentials) }} | ||
{{- $secretName := "seaweedfs-mount-secret" }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ $secretName }} | ||
labels: | ||
{{- include "common.labels" . | nindent 4 }} | ||
app.kubernetes.io/component: seaweedfs | ||
type: Opaque | ||
data: | ||
# we don't need to call "common.secrets.set" because: | ||
# 1. secrets are not generated randomly | ||
# 2. secrets can expire and might require a force update | ||
{{- range $obj := $.Values.seaweedfs.secret.mountCredentials }} | ||
{{ $obj.name }}: {{ $obj.value | b64enc }} | ||
{{- end }} | ||
{{ end }} |
2 changes: 1 addition & 1 deletion
2
packages/grid/helm/syft/templates/seaweedfs/seaweedfs-secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Auto mount remote buckets on seaweed startup | ||
# Example: | ||
|
||
# mounts: | ||
# - local_bucket: gcs-test-bucket | ||
# remote_bucket: | ||
# type: gcs | ||
# bucket_name: test-bucket | ||
# creds: /tmp/test-bucket-gcs-credentials.json | ||
# # ------- test-bucket-gcs-credentials.json ------- | ||
# # { | ||
# # "type": "service_account", | ||
# # "project_id": "...", | ||
# # ... | ||
# # "universe_domain": "googleapis.com", | ||
# # } | ||
# # ------------------------------------------------ | ||
|
||
# - local_bucket: s3-test-bucket | ||
# remote_bucket: | ||
# type: s3 | ||
# bucket_name: test-bucket | ||
# creds: /tmp/test-bucket-s3-credentials.json | ||
# # ------- test-bucket-azure-credentials.json ------- | ||
# # { | ||
# # "aws_access_key_id": "example" | ||
# # "aws_secret_access_key": "example" | ||
# # } | ||
# # -------------------------------------------------- | ||
|
||
# - local_bucket: azure-test-bucket | ||
# remote_bucket: | ||
# type: azure | ||
# bucket_name: test-bucket | ||
# creds: /tmp/test-bucket-azure-credentials.json | ||
# # ------- test-bucket-azure-credentials.json ------- | ||
# # { | ||
# # "azure_account_name": "example" | ||
# # "azure_account_key": "example" | ||
# # } | ||
# # -------------------------------------------------- | ||
|
||
mounts: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[leveldb2] | ||
enabled = false | ||
dir = "/data/filerldb2" | ||
|
||
[leveldb3] | ||
# similar to leveldb2. | ||
# each bucket has its own meta store. | ||
enabled = true | ||
dir = "/data/filerldb3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[master.volume_growth] | ||
copy_1 = 5 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: Why did we remove the S3_PORT ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, as there is no extra usefulness, is allowing users to customize this port?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed & not used. No point customizing the port as we're in a container environment and they can just port forward whatever to 8333
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can still provide it as through
backend.env
in values.yaml