mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c057ae6004 | ||
|
|
5e42b69841 | ||
|
|
59f44b70c3 |
No files matched your search
@@ -38,13 +38,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v2
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v2
|
||||||
|
|
||||||
- name: Set BUILD_TIME env
|
- name: Set BUILD_TIME env
|
||||||
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@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@074de155de851f31c28201ff48135d4ecea0fb6c # 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: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.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@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@074de155de851f31c28201ff48135d4ecea0fb6c # 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: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.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
|
||||||
@@ -87,13 +87,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v2
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v2
|
||||||
|
|
||||||
- name: Set BUILD_TIME env
|
- name: Set BUILD_TIME env
|
||||||
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@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@074de155de851f31c28201ff48135d4ecea0fb6c # 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: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.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@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@074de155de851f31c28201ff48135d4ecea0fb6c # 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: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.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
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ jobs:
|
|||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# 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@b4ffde65f46336ab88eb53be808477a3936bae11 # v2
|
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v2
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@074de155de851f31c28201ff48135d4ecea0fb6c # 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: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.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@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@074de155de851f31c28201ff48135d4ecea0fb6c # 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: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.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
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ jobs:
|
|||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# 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@b4ffde65f46336ab88eb53be808477a3936bae11 # v2
|
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v2
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@074de155de851f31c28201ff48135d4ecea0fb6c # 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: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.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@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@074de155de851f31c28201ff48135d4ecea0fb6c # 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: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.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
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ jobs:
|
|||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# 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@b4ffde65f46336ab88eb53be808477a3936bae11 # v2
|
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v2
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@074de155de851f31c28201ff48135d4ecea0fb6c # 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: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.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@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@074de155de851f31c28201ff48135d4ecea0fb6c # 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: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.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
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ jobs:
|
|||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# 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@b4ffde65f46336ab88eb53be808477a3936bae11 # v2
|
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v2
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@074de155de851f31c28201ff48135d4ecea0fb6c # 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: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.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@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@074de155de851f31c28201ff48135d4ecea0fb6c # 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: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.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
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ jobs:
|
|||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# 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@b4ffde65f46336ab88eb53be808477a3936bae11 # v2
|
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v2
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@074de155de851f31c28201ff48135d4ecea0fb6c # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -39,13 +39,13 @@ jobs:
|
|||||||
build_flags: -tags elastic,ydb,gocdk,tikv
|
build_flags: -tags elastic,ydb,gocdk,tikv
|
||||||
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: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.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@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@074de155de851f31c28201ff48135d4ecea0fb6c # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -53,7 +53,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,elastic,ydb,gocdk,tikv
|
build_flags: -tags 5BytesOffset,elastic,ydb,gocdk,tikv
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.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
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
|||||||
@@ -16,11 +16,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v2
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v3
|
uses: docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96 # 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@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v1
|
uses: docker/setup-buildx-action@f03ac48505955848960e80bbb68046aa35c7b9e7 # 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@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # 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@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # 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@0565240e2d4ab88bba5387d719585280857ece09 # v2
|
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v2
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v3
|
uses: docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96 # 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@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v1
|
uses: docker/setup-buildx-action@f03ac48505955848960e80bbb68046aa35c7b9e7 # 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@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # 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@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # 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@0565240e2d4ab88bba5387d719585280857ece09 # v2
|
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -16,11 +16,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v2
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v3
|
uses: docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96 # 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@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v1
|
uses: docker/setup-buildx-action@f03ac48505955848960e80bbb68046aa35c7b9e7 # 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@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # 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@0565240e2d4ab88bba5387d719585280857ece09 # v2
|
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v2
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v3
|
uses: docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96 # 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@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v1
|
uses: docker/setup-buildx-action@f03ac48505955848960e80bbb68046aa35c7b9e7 # 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@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # 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@0565240e2d4ab88bba5387d719585280857ece09 # v2
|
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v2
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v3
|
uses: docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96 # 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@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v1
|
uses: docker/setup-buildx-action@f03ac48505955848960e80bbb68046aa35c7b9e7 # 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@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # 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@0565240e2d4ab88bba5387d719585280857ece09 # v2
|
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -16,11 +16,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v2
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v3
|
uses: docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96 # 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@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v1
|
uses: docker/setup-buildx-action@f03ac48505955848960e80bbb68046aa35c7b9e7 # 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@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # 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@0565240e2d4ab88bba5387d719585280857ece09 # v2
|
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -16,11 +16,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v2
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v3
|
uses: docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96 # 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@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v1
|
uses: docker/setup-buildx-action@f03ac48505955848960e80bbb68046aa35c7b9e7 # 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@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # 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@0565240e2d4ab88bba5387d719585280857ece09 # v2
|
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -9,6 +9,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checkout Repository'
|
- name: 'Checkout Repository'
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
|
||||||
- name: 'Dependency Review'
|
- name: 'Dependency Review'
|
||||||
uses: actions/dependency-review-action@6c5ccdad469c9f8a2996bfecaec55a631a347034
|
uses: actions/dependency-review-action@c090f4e553673e6e505ea70d6a95362ee12adb94
|
||||||
@@ -21,16 +21,16 @@ jobs:
|
|||||||
e2e:
|
e2e:
|
||||||
name: FUSE Mount
|
name: FUSE Mount
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
timeout-minutes: 30
|
timeout-minutes: 15
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go 1.x
|
- name: Set up Go 1.x
|
||||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v2
|
||||||
with:
|
with:
|
||||||
go-version: ^1.13
|
go-version: ^1.13
|
||||||
id: go
|
id: go
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v2
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v2
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -41,20 +41,20 @@ jobs:
|
|||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
run: make build_e2e && docker compose -f ./compose/e2e-mount.yml up --wait
|
run: make build_e2e && docker compose -f ./compose/e2e-mount.yml up --wait
|
||||||
|
|
||||||
- name: Run FIO 4k
|
- name: Run FIO
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
run: |
|
run: |
|
||||||
echo "Starting FIO at: $(date)"
|
echo "Starting FIO at: $(date)"
|
||||||
# Concurrent r/w
|
# Concurrent r/w
|
||||||
echo 'Run randrw with size=16M bs=4k'
|
echo 'Run randrw with size=16M bs=4k'
|
||||||
docker compose -f ./compose/e2e-mount.yml exec mount timeout -k5 60 fio --name=fiotest --filename=/mnt/seaweedfs/fiotest --size=16M --rw=randrw --bs=4k --direct=1 --numjobs=8 --ioengine=libaio --group_reporting --runtime=30 --time_based=1
|
docker compose -f ./compose/e2e-mount.yml exec mount timeout -k5 60 fio --name=fiotest --filename=/mnt/seaweedfs/fiotest --size=16M --rw=randrw --bs=4k --direct=1 --numjobs=8 --ioengine=libaio --iodepth=32 --group_reporting --runtime=30 --time_based=1
|
||||||
|
|
||||||
echo "Verify FIO at: $(date)"
|
echo "Verify FIO at: $(date)"
|
||||||
# Verified write
|
# Verified write
|
||||||
echo 'Run randwrite with size=16M bs=4k'
|
echo 'Run randwrite with size=16M bs=4k'
|
||||||
docker compose -f ./compose/e2e-mount.yml exec mount timeout -k5 60 fio --name=fiotest --filename=/mnt/seaweedfs/fiotest --size=16M --rw=randwrite --bs=4k --direct=1 --numjobs=8 --ioengine=libaio --iodepth=32 --group_reporting --runtime=30 --time_based=1 --do_verify=0 --verify=crc32c --verify_backlog=1
|
docker compose -f ./compose/e2e-mount.yml exec mount timeout -k5 60 fio --name=fiotest --filename=/mnt/seaweedfs/fiotest --size=16M --rw=randwrite --bs=4k --direct=1 --numjobs=8 --ioengine=libaio --iodepth=32 --group_reporting --runtime=30 --time_based=1 --do_verify=0 --verify=crc32c --verify_backlog=1
|
||||||
|
|
||||||
- name: Run FIO 128k
|
- name: Run FIO
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
run: |
|
run: |
|
||||||
echo "Starting FIO at: $(date)"
|
echo "Starting FIO at: $(date)"
|
||||||
@@ -67,7 +67,7 @@ jobs:
|
|||||||
echo 'Run randwrite with size=16M bs=128k'
|
echo 'Run randwrite with size=16M bs=128k'
|
||||||
docker compose -f ./compose/e2e-mount.yml exec mount timeout -k5 60 fio --name=fiotest --filename=/mnt/seaweedfs/fiotest --size=16M --rw=randwrite --bs=128k --direct=1 --numjobs=8 --ioengine=libaio --iodepth=32 --group_reporting --runtime=30 --time_based=1 --do_verify=0 --verify=crc32c --verify_backlog=1
|
docker compose -f ./compose/e2e-mount.yml exec mount timeout -k5 60 fio --name=fiotest --filename=/mnt/seaweedfs/fiotest --size=16M --rw=randwrite --bs=128k --direct=1 --numjobs=8 --ioengine=libaio --iodepth=32 --group_reporting --runtime=30 --time_based=1 --do_verify=0 --verify=crc32c --verify_backlog=1
|
||||||
|
|
||||||
- name: Run FIO 1MB
|
- name: Run FIO
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
run: |
|
run: |
|
||||||
echo "Starting FIO at: $(date)"
|
echo "Starting FIO at: $(date)"
|
||||||
|
|||||||
@@ -21,13 +21,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Set up Go 1.x
|
- name: Set up Go 1.x
|
||||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v2
|
||||||
with:
|
with:
|
||||||
go-version: ^1.13
|
go-version: ^1.13
|
||||||
id: go
|
id: go
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v2
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v2
|
||||||
|
|
||||||
- name: Get dependencies
|
- name: Get dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
name: "helm: publish charts"
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
pages: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
||||||
- name: Publish Helm charts
|
|
||||||
uses: stefanprodan/helm-gh-pages@master
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
charts_dir: k8s/charts
|
|
||||||
target_dir: helm
|
|
||||||
branch: gh-pages
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
name: "helm: lint and test charts"
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
paths: ['k8s/**']
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
paths: ['k8s/**']
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
lint-test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Set up Helm
|
|
||||||
uses: azure/setup-helm@v3
|
|
||||||
with:
|
|
||||||
version: v3.10.0
|
|
||||||
|
|
||||||
- uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: '3.9'
|
|
||||||
check-latest: true
|
|
||||||
|
|
||||||
- name: Set up chart-testing
|
|
||||||
uses: helm/chart-testing-action@v2.4.0
|
|
||||||
|
|
||||||
- name: Run chart-testing (list-changed)
|
|
||||||
id: list-changed
|
|
||||||
run: |
|
|
||||||
changed=$(ct list-changed --chart-dirs k8s/charts)
|
|
||||||
if [[ -n "$changed" ]]; then
|
|
||||||
echo "::set-output name=changed::true"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Run chart-testing (lint)
|
|
||||||
run: ct lint --all --validate-maintainers=false --chart-dirs k8s/charts
|
|
||||||
|
|
||||||
- name: Create kind cluster
|
|
||||||
uses: helm/kind-action@v1.8.0
|
|
||||||
|
|
||||||
- name: Run chart-testing (install)
|
|
||||||
run: ct install --all --chart-dirs k8s/charts
|
|
||||||
@@ -87,4 +87,3 @@ other/java/hdfs/dependency-reduced-pom.xml
|
|||||||
|
|
||||||
# binary file
|
# binary file
|
||||||
weed/weed
|
weed/weed
|
||||||
weed/mq/client/cmd/weed_pub/weed_pub
|
|
||||||
@@ -1,35 +1,14 @@
|
|||||||
BINARY = weed
|
BINARY = weed
|
||||||
|
|
||||||
SOURCE_DIR = .
|
SOURCE_DIR = .
|
||||||
debug ?= 0
|
|
||||||
|
|
||||||
all: install
|
all: install
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cd weed; go install
|
cd weed; go install
|
||||||
|
|
||||||
warp_install:
|
|
||||||
go install github.com/minio/warp@v0.7.6
|
|
||||||
|
|
||||||
full_install:
|
full_install:
|
||||||
cd weed; go install -tags "elastic gocdk sqlite ydb tikv"
|
cd weed; go install -tags "elastic gocdk sqlite ydb tikv"
|
||||||
|
|
||||||
server: install
|
tests:
|
||||||
weed -v 4 server -s3 -filer -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1 -s3.port=8000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=false -s3.config=./docker/compose/s3.json
|
cd weed; go test -tags "elastic gocdk sqlite ydb tikv" -v ./...
|
||||||
|
|
||||||
benchmark: install warp_install
|
|
||||||
pkill weed || true
|
|
||||||
pkill warp || true
|
|
||||||
weed server -debug=$(debug) -s3 -filer -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1 -s3.port=8000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=false -s3.config=./docker/compose/s3.json &
|
|
||||||
warp client &
|
|
||||||
while ! nc -z localhost 8000 ; do sleep 1 ; done
|
|
||||||
warp mixed --host=127.0.0.1:8000 --access-key=some_access_key1 --secret-key=some_secret_key1 --autoterm
|
|
||||||
pkill warp
|
|
||||||
pkill weed
|
|
||||||
|
|
||||||
# curl -o profile "http://127.0.0.1:6060/debug/pprof/profile?debug=1"
|
|
||||||
benchmark_with_pprof: debug = 1
|
|
||||||
benchmark_with_pprof: benchmark
|
|
||||||
|
|
||||||
test:
|
|
||||||
cd weed; go test -tags "elastic gocdk sqlite ydb tikv" -v ./...
|
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
[](https://github.com/seaweedfs/seaweedfs/wiki)
|
[](https://github.com/seaweedfs/seaweedfs/wiki)
|
||||||
[](https://hub.docker.com/r/chrislusf/seaweedfs/)
|
[](https://hub.docker.com/r/chrislusf/seaweedfs/)
|
||||||
[](https://search.maven.org/search?q=g:com.github.chrislusf)
|
[](https://search.maven.org/search?q=g:com.github.chrislusf)
|
||||||
[](https://artifacthub.io/packages/search?repo=seaweedfs)
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ Your support will be really appreciated by me and other supporters!
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
### Gold Sponsors
|
### Gold Sponsors
|
||||||
[](https://www.nodion.com)
|
[](https://www.nodion.com)
|
||||||
[](https://www.piknik.com)
|
[](https://www.piknik.com)
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -66,7 +66,6 @@ Table of Contents
|
|||||||
* [Compared to GlusterFS, Ceph](#compared-to-glusterfs-ceph)
|
* [Compared to GlusterFS, Ceph](#compared-to-glusterfs-ceph)
|
||||||
* [Compared to GlusterFS](#compared-to-glusterfs)
|
* [Compared to GlusterFS](#compared-to-glusterfs)
|
||||||
* [Compared to Ceph](#compared-to-ceph)
|
* [Compared to Ceph](#compared-to-ceph)
|
||||||
* [Compared to Minio](#compared-to-minio)
|
|
||||||
* [Dev Plan](#dev-plan)
|
* [Dev Plan](#dev-plan)
|
||||||
* [Installation Guide](#installation-guide)
|
* [Installation Guide](#installation-guide)
|
||||||
* [Disk Related Topics](#disk-related-topics)
|
* [Disk Related Topics](#disk-related-topics)
|
||||||
@@ -121,7 +120,7 @@ SeaweedFS can transparently integrate with the cloud.
|
|||||||
With hot data on local cluster, and warm data on the cloud with O(1) access time,
|
With hot data on local cluster, and warm data on the cloud with O(1) access time,
|
||||||
SeaweedFS can achieve both fast local access time and elastic cloud storage capacity.
|
SeaweedFS can achieve both fast local access time and elastic cloud storage capacity.
|
||||||
What's more, the cloud storage access API cost is minimized.
|
What's more, the cloud storage access API cost is minimized.
|
||||||
Faster and cheaper than direct cloud storage!
|
Faster and Cheaper than direct cloud storage!
|
||||||
|
|
||||||
[Back to TOC](#table-of-contents)
|
[Back to TOC](#table-of-contents)
|
||||||
|
|
||||||
@@ -132,7 +131,7 @@ Faster and cheaper than direct cloud storage!
|
|||||||
* Automatic Gzip compression depending on file MIME type.
|
* Automatic Gzip compression depending on file MIME type.
|
||||||
* Automatic compaction to reclaim disk space after deletion or update.
|
* Automatic compaction to reclaim disk space after deletion or update.
|
||||||
* [Automatic entry TTL expiration][VolumeServerTTL].
|
* [Automatic entry TTL expiration][VolumeServerTTL].
|
||||||
* Any server with some disk space can add to the total storage space.
|
* Any server with some disk spaces can add to the total storage space.
|
||||||
* Adding/Removing servers does **not** cause any data re-balancing unless triggered by admin commands.
|
* Adding/Removing servers does **not** cause any data re-balancing unless triggered by admin commands.
|
||||||
* Optional picture resizing.
|
* Optional picture resizing.
|
||||||
* Support ETag, Accept-Range, Last-Modified, etc.
|
* Support ETag, Accept-Range, Last-Modified, etc.
|
||||||
@@ -145,7 +144,7 @@ Faster and cheaper than direct cloud storage!
|
|||||||
[Back to TOC](#table-of-contents)
|
[Back to TOC](#table-of-contents)
|
||||||
|
|
||||||
## Filer Features ##
|
## Filer Features ##
|
||||||
* [Filer server][Filer] provides "normal" directories and files via HTTP.
|
* [Filer server][Filer] provides "normal" directories and files via http.
|
||||||
* [File TTL][FilerTTL] automatically expires file metadata and actual file data.
|
* [File TTL][FilerTTL] automatically expires file metadata and actual file data.
|
||||||
* [Mount filer][Mount] reads and writes files directly as a local directory via FUSE.
|
* [Mount filer][Mount] reads and writes files directly as a local directory via FUSE.
|
||||||
* [Filer Store Replication][FilerStoreReplication] enables HA for filer meta data stores.
|
* [Filer Store Replication][FilerStoreReplication] enables HA for filer meta data stores.
|
||||||
@@ -582,71 +581,6 @@ Percentage of the requests served within a certain time (ms)
|
|||||||
100% 54.1 ms
|
100% 54.1 ms
|
||||||
```
|
```
|
||||||
|
|
||||||
### Run WARP and launch a mixed benchmark. ###
|
|
||||||
|
|
||||||
```
|
|
||||||
make benchmark
|
|
||||||
warp: Benchmark data written to "warp-mixed-2023-10-16[102354]-l70a.csv.zst"
|
|
||||||
Mixed operations.
|
|
||||||
Operation: DELETE, 10%, Concurrency: 20, Ran 4m59s.
|
|
||||||
* Throughput: 6.19 obj/s
|
|
||||||
|
|
||||||
Operation: GET, 45%, Concurrency: 20, Ran 5m0s.
|
|
||||||
* Throughput: 279.85 MiB/s, 27.99 obj/s
|
|
||||||
|
|
||||||
Operation: PUT, 15%, Concurrency: 20, Ran 5m0s.
|
|
||||||
* Throughput: 89.86 MiB/s, 8.99 obj/s
|
|
||||||
|
|
||||||
Operation: STAT, 30%, Concurrency: 20, Ran 5m0s.
|
|
||||||
* Throughput: 18.63 obj/s
|
|
||||||
|
|
||||||
Cluster Total: 369.74 MiB/s, 61.79 obj/s, 0 errors over 5m0s.
|
|
||||||
```
|
|
||||||
|
|
||||||
To see segmented request statistics, use the --analyze.v parameter.
|
|
||||||
```
|
|
||||||
warp analyze --analyze.v warp-mixed-2023-10-16[102354]-l70a.csv.zst
|
|
||||||
18642 operations loaded... Done!
|
|
||||||
Mixed operations.
|
|
||||||
----------------------------------------
|
|
||||||
Operation: DELETE - total: 1854, 10.0%, Concurrency: 20, Ran 5m0s, starting 2023-10-16 10:23:57.115 +0500 +05
|
|
||||||
* Throughput: 6.19 obj/s
|
|
||||||
|
|
||||||
Requests considered: 1855:
|
|
||||||
* Avg: 104ms, 50%: 30ms, 90%: 207ms, 99%: 1.355s, Fastest: 1ms, Slowest: 4.613s, StdDev: 320ms
|
|
||||||
|
|
||||||
----------------------------------------
|
|
||||||
Operation: GET - total: 8388, 45.3%, Size: 10485760 bytes. Concurrency: 20, Ran 5m0s, starting 2023-10-16 10:23:57.12 +0500 +05
|
|
||||||
* Throughput: 279.77 MiB/s, 27.98 obj/s
|
|
||||||
|
|
||||||
Requests considered: 8389:
|
|
||||||
* Avg: 221ms, 50%: 106ms, 90%: 492ms, 99%: 1.739s, Fastest: 8ms, Slowest: 8.633s, StdDev: 383ms
|
|
||||||
* TTFB: Avg: 81ms, Best: 2ms, 25th: 24ms, Median: 39ms, 75th: 65ms, 90th: 171ms, 99th: 669ms, Worst: 4.783s StdDev: 163ms
|
|
||||||
* First Access: Avg: 240ms, 50%: 105ms, 90%: 511ms, 99%: 2.08s, Fastest: 12ms, Slowest: 8.633s, StdDev: 480ms
|
|
||||||
* First Access TTFB: Avg: 88ms, Best: 2ms, 25th: 24ms, Median: 38ms, 75th: 64ms, 90th: 179ms, 99th: 919ms, Worst: 4.783s StdDev: 199ms
|
|
||||||
* Last Access: Avg: 219ms, 50%: 106ms, 90%: 463ms, 99%: 1.782s, Fastest: 9ms, Slowest: 8.633s, StdDev: 416ms
|
|
||||||
* Last Access TTFB: Avg: 81ms, Best: 2ms, 25th: 24ms, Median: 39ms, 75th: 65ms, 90th: 161ms, 99th: 657ms, Worst: 4.783s StdDev: 176ms
|
|
||||||
|
|
||||||
----------------------------------------
|
|
||||||
Operation: PUT - total: 2688, 14.5%, Size: 10485760 bytes. Concurrency: 20, Ran 5m0s, starting 2023-10-16 10:23:57.115 +0500 +05
|
|
||||||
* Throughput: 89.83 MiB/s, 8.98 obj/s
|
|
||||||
|
|
||||||
Requests considered: 2689:
|
|
||||||
* Avg: 1.165s, 50%: 878ms, 90%: 2.015s, 99%: 5.74s, Fastest: 99ms, Slowest: 8.264s, StdDev: 968ms
|
|
||||||
|
|
||||||
----------------------------------------
|
|
||||||
Operation: STAT - total: 5586, 30.2%, Concurrency: 20, Ran 5m0s, starting 2023-10-16 10:23:57.113 +0500 +05
|
|
||||||
* Throughput: 18.63 obj/s
|
|
||||||
|
|
||||||
Requests considered: 5587:
|
|
||||||
* Avg: 15ms, 50%: 11ms, 90%: 34ms, 99%: 80ms, Fastest: 0s, Slowest: 245ms, StdDev: 17ms
|
|
||||||
* First Access: Avg: 14ms, 50%: 10ms, 90%: 33ms, 99%: 69ms, Fastest: 0s, Slowest: 203ms, StdDev: 16ms
|
|
||||||
* Last Access: Avg: 15ms, 50%: 11ms, 90%: 34ms, 99%: 74ms, Fastest: 0s, Slowest: 203ms, StdDev: 17ms
|
|
||||||
|
|
||||||
Cluster Total: 369.64 MiB/s, 61.77 obj/s, 0 errors over 5m0s.
|
|
||||||
Total Errors:0.
|
|
||||||
```
|
|
||||||
|
|
||||||
[Back to TOC](#table-of-contents)
|
[Back to TOC](#table-of-contents)
|
||||||
|
|
||||||
## License ##
|
## License ##
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
- [Evercam Camera Management Software](https://evercam.io/)
|
- [Evercam Camera Management Software](https://evercam.io/)
|
||||||
- [Spherical Elephant GmbH](https://www.sphericalelephant.com)
|
- [Spherical Elephant GmbH](https://www.sphericalelephant.com)
|
||||||
- [WizardTales GmbH](https://www.wizardtales.com)
|
- [WizardTales GmbH](https://www.wizardtales.com)
|
||||||
- [Nimbus Web Services](https://nimbusws.com)
|
|
||||||
|
|
||||||
- <h2 align="center">Backers</h2>
|
- <h2 align="center">Backers</h2>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.21-alpine as builder
|
FROM golang:1.20-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
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
FROM golang:1.21-buster as builder
|
FROM golang:1.20-buster 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.1.1
|
ENV ROCKSDB_VERSION v7.5.3
|
||||||
|
|
||||||
# build RocksDB
|
# build RocksDB
|
||||||
RUN cd /tmp && \
|
RUN cd /tmp && \
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
FROM golang:1.21-buster as builder
|
FROM golang:1.20-buster 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.1.1
|
ENV ROCKSDB_VERSION v7.5.3
|
||||||
|
|
||||||
# build RocksDB
|
# build RocksDB
|
||||||
RUN cd /tmp && \
|
RUN cd /tmp && \
|
||||||
|
|||||||
+8
-8
@@ -8,7 +8,7 @@ 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.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 "-extldflags -static $(SWLDFLAGS)" && mv weed ../docker/
|
||||||
|
|
||||||
binary_race: options = -race
|
binary_race: options = -race
|
||||||
binary_race: cgo = 1
|
binary_race: cgo = 1
|
||||||
@@ -29,7 +29,7 @@ go_build_large_disk:
|
|||||||
build_rocksdb_dev_env:
|
build_rocksdb_dev_env:
|
||||||
docker build --no-cache -t chrislusf/rocksdb_dev_env -f Dockerfile.rocksdb_dev_env .
|
docker build --no-cache -t chrislusf/rocksdb_dev_env -f Dockerfile.rocksdb_dev_env .
|
||||||
|
|
||||||
build_rocksdb_local: build_rocksdb_dev_env
|
build_rocksdb_local:
|
||||||
cd .. ; docker build --no-cache -t chrislusf/seaweedfs:rocksdb_local -f docker/Dockerfile.rocksdb_large_local .
|
cd .. ; docker build --no-cache -t chrislusf/seaweedfs:rocksdb_local -f docker/Dockerfile.rocksdb_large_local .
|
||||||
|
|
||||||
build_rocksdb:
|
build_rocksdb:
|
||||||
@@ -102,12 +102,12 @@ clean:
|
|||||||
rm ./weed
|
rm ./weed
|
||||||
|
|
||||||
certstrap:
|
certstrap:
|
||||||
go install -v github.com/square/certstrap@latest
|
go get github.com/square/certstrap
|
||||||
certstrap --depot-path compose/tls init --curve P-256 --passphrase "" --common-name "SeaweedFS CA" || true
|
certstrap --depot-path compose/tls init --passphrase "" --common-name "SeaweedFS CA" || true
|
||||||
certstrap --depot-path compose/tls request-cert --ou "SeaweedFS" --curve P-256 --passphrase "" --domain localhost --common-name volume01.dev || true
|
certstrap --depot-path compose/tls request-cert --passphrase "" --common-name volume01.dev || true
|
||||||
certstrap --depot-path compose/tls request-cert --ou "SeaweedFS" --curve P-256 --passphrase "" --common-name master01.dev || true
|
certstrap --depot-path compose/tls request-cert --passphrase "" --common-name master01.dev || true
|
||||||
certstrap --depot-path compose/tls request-cert --ou "SeaweedFS" --curve P-256 --passphrase "" --common-name filer01.dev || true
|
certstrap --depot-path compose/tls request-cert --passphrase "" --common-name filer01.dev || true
|
||||||
certstrap --depot-path compose/tls request-cert --ou "SeaweedFS" --curve P-256 --passphrase "" --common-name client01.dev || true
|
certstrap --depot-path compose/tls request-cert --passphrase "" --common-name client01.dev || true
|
||||||
certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" volume01.dev || true
|
certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" volume01.dev || true
|
||||||
certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" master01.dev || true
|
certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" master01.dev || true
|
||||||
certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" filer01.dev || true
|
certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" filer01.dev || true
|
||||||
|
|||||||
+2
-12
@@ -40,10 +40,7 @@
|
|||||||
"List",
|
"List",
|
||||||
"Tagging",
|
"Tagging",
|
||||||
"Write"
|
"Write"
|
||||||
],
|
]
|
||||||
"account": {
|
|
||||||
"id": "testid"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "s3_tests_alt",
|
"name": "s3_tests_alt",
|
||||||
@@ -104,12 +101,5 @@
|
|||||||
"Write"
|
"Write"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"accounts": [
|
|
||||||
{
|
|
||||||
"id" : "testid",
|
|
||||||
"displayName": "M. Tester",
|
|
||||||
"emailAddress": "tester@ceph.com"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@@ -12,9 +12,5 @@ WEED_GRPC_MASTER_ALLOWED_COMMONNAMES="volume01.dev,master01.dev,filer01.dev,clie
|
|||||||
WEED_GRPC_VOLUME_ALLOWED_COMMONNAMES="volume01.dev,master01.dev,filer01.dev,client01.dev"
|
WEED_GRPC_VOLUME_ALLOWED_COMMONNAMES="volume01.dev,master01.dev,filer01.dev,client01.dev"
|
||||||
WEED_GRPC_FILER_ALLOWED_COMMONNAMES="volume01.dev,master01.dev,filer01.dev,client01.dev"
|
WEED_GRPC_FILER_ALLOWED_COMMONNAMES="volume01.dev,master01.dev,filer01.dev,client01.dev"
|
||||||
WEED_GRPC_CLIENT_ALLOWED_COMMONNAMES="volume01.dev,master01.dev,filer01.dev,client01.dev"
|
WEED_GRPC_CLIENT_ALLOWED_COMMONNAMES="volume01.dev,master01.dev,filer01.dev,client01.dev"
|
||||||
WEED_HTTPS_CLIENT_ENABLE=true
|
|
||||||
WEED_HTTPS_VOLUME_CERT=/etc/seaweedfs/tls/volume01.dev.crt
|
|
||||||
WEED_HTTPS_VOLUME_KEY=/etc/seaweedfs/tls/volume01.dev.key
|
|
||||||
WEED_HTTPS_VOLUME_CA=/etc/seaweedfs/tls/SeaweedFS_CA.crt
|
|
||||||
#GRPC_GO_LOG_SEVERITY_LEVEL=info
|
#GRPC_GO_LOG_SEVERITY_LEVEL=info
|
||||||
#GRPC_GO_LOG_VERBOSITY_LEVEL=2
|
#GRPC_GO_LOG_VERBOSITY_LEVEL=2
|
||||||
@@ -1,25 +1,24 @@
|
|||||||
module github.com/seaweedfs/seaweedfs
|
module github.com/seaweedfs/seaweedfs
|
||||||
|
|
||||||
go 1.21
|
go 1.20
|
||||||
|
|
||||||
require (
|
require (
|
||||||
cloud.google.com/go v0.110.8 // indirect
|
cloud.google.com/go v0.107.0 // indirect
|
||||||
cloud.google.com/go/pubsub v1.33.0
|
cloud.google.com/go/pubsub v1.28.0
|
||||||
cloud.google.com/go/storage v1.33.0
|
cloud.google.com/go/storage v1.29.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.45.25
|
github.com/aws/aws-sdk-go v1.44.189
|
||||||
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.2.1
|
github.com/cespare/xxhash/v2 v2.1.2 // indirect
|
||||||
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
github.com/coreos/go-semver v0.3.0 // indirect
|
||||||
github.com/coreos/go-semver v0.3.1 // indirect
|
|
||||||
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
|
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
|
||||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
||||||
github.com/disintegration/imaging v1.6.2
|
github.com/disintegration/imaging v1.6.2
|
||||||
github.com/dustin/go-humanize v1.0.1
|
github.com/dustin/go-humanize v1.0.0
|
||||||
github.com/eapache/go-resiliency v1.3.0 // indirect
|
github.com/eapache/go-resiliency v1.3.0 // indirect
|
||||||
github.com/eapache/go-xerial-snappy v0.0.0-20230111030713-bf00bc1b83b6 // indirect
|
github.com/eapache/go-xerial-snappy v0.0.0-20230111030713-bf00bc1b83b6 // indirect
|
||||||
github.com/eapache/queue v1.1.0 // indirect
|
github.com/eapache/queue v1.1.0 // indirect
|
||||||
@@ -28,23 +27,23 @@ 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.22.0
|
github.com/fclairamb/ftpserverlib v0.20.0
|
||||||
github.com/fsnotify/fsnotify v1.6.0 // indirect
|
github.com/fsnotify/fsnotify v1.6.0 // indirect
|
||||||
github.com/go-errors/errors v1.1.1 // indirect
|
github.com/go-errors/errors v1.1.1 // indirect
|
||||||
github.com/go-redis/redis/v8 v8.11.5
|
github.com/go-redis/redis/v8 v8.11.5
|
||||||
github.com/go-redsync/redsync/v4 v4.10.0
|
github.com/go-redsync/redsync/v4 v4.7.1
|
||||||
github.com/go-sql-driver/mysql v1.7.1
|
github.com/go-sql-driver/mysql v1.7.0
|
||||||
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 v0.0.0-20210707082121-9a3953d1826d
|
||||||
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
|
github.com/golang-jwt/jwt v3.2.2+incompatible
|
||||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
||||||
github.com/golang/protobuf v1.5.3
|
github.com/golang/protobuf v1.5.2
|
||||||
github.com/golang/snappy v0.0.4 // indirect
|
github.com/golang/snappy v0.0.4 // indirect
|
||||||
github.com/google/btree v1.1.2
|
github.com/google/btree v1.1.2
|
||||||
github.com/google/go-cmp v0.6.0 // indirect
|
github.com/google/go-cmp v0.5.9 // indirect
|
||||||
github.com/google/uuid v1.3.1
|
github.com/google/uuid v1.3.0
|
||||||
github.com/google/wire v0.5.0 // indirect
|
github.com/google/wire v0.5.0 // indirect
|
||||||
github.com/googleapis/gax-go/v2 v2.12.0 // indirect
|
github.com/googleapis/gax-go/v2 v2.7.0 // indirect
|
||||||
github.com/gorilla/mux v1.8.0
|
github.com/gorilla/mux v1.8.0
|
||||||
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
|
||||||
@@ -52,47 +51,48 @@ require (
|
|||||||
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/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.3 // indirect
|
||||||
github.com/jinzhu/copier v0.4.0
|
github.com/jinzhu/copier v0.3.5
|
||||||
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/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
|
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
|
||||||
github.com/klauspost/compress v1.17.0 // indirect
|
github.com/klauspost/compress v1.15.14 // indirect
|
||||||
github.com/klauspost/reedsolomon v1.11.8
|
github.com/klauspost/reedsolomon v1.11.6
|
||||||
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.7
|
||||||
github.com/linxGnu/grocksdb v1.8.0
|
github.com/linxGnu/grocksdb v1.7.14
|
||||||
github.com/magiconair/properties v1.8.7 // indirect
|
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.9 // indirect
|
||||||
github.com/mattn/go-isatty v0.0.19 // indirect
|
github.com/mattn/go-isatty v0.0.17 // indirect
|
||||||
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
|
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
|
||||||
github.com/mitchellh/mapstructure v1.5.0 // 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
|
||||||
github.com/peterh/liner v1.2.2
|
github.com/peterh/liner v1.2.2
|
||||||
github.com/pkg/errors v0.9.1 // indirect
|
github.com/pkg/errors v0.9.1 // indirect
|
||||||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
github.com/pmezard/go-difflib v1.0.0 // 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.1.0
|
||||||
github.com/prometheus/client_golang v1.17.0
|
github.com/prometheus/client_golang v1.14.0
|
||||||
github.com/prometheus/client_model v0.4.1-0.20230718164431-9a2bf3000d16 // indirect
|
github.com/prometheus/client_model v0.3.0 // indirect
|
||||||
github.com/prometheus/common v0.44.0 // indirect
|
github.com/prometheus/common v0.37.0 // indirect
|
||||||
github.com/prometheus/procfs v0.11.1
|
github.com/prometheus/procfs v0.9.0
|
||||||
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-20200410134404-eec4a21b6bb0 // 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.0
|
||||||
github.com/sirupsen/logrus v1.9.3 // indirect
|
github.com/sirupsen/logrus v1.9.0 // indirect
|
||||||
github.com/spf13/afero v1.10.0 // indirect
|
github.com/spf13/afero v1.9.3 // indirect
|
||||||
github.com/spf13/cast v1.5.1 // indirect
|
github.com/spf13/cast v1.5.0 // indirect
|
||||||
github.com/spf13/viper v1.17.0
|
github.com/spf13/jwalterweatherman v1.1.0 // indirect
|
||||||
github.com/stretchr/testify v1.8.4
|
github.com/spf13/viper v1.15.0
|
||||||
|
github.com/stretchr/testify v1.8.1
|
||||||
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.0
|
github.com/tidwall/gjson v1.14.4
|
||||||
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
|
||||||
@@ -104,239 +104,141 @@ 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-20181117223130-1be2e3e5546d // indirect
|
||||||
go.etcd.io/etcd/client/v3 v3.5.9
|
go.etcd.io/etcd/client/v3 v3.5.7
|
||||||
go.mongodb.org/mongo-driver v1.12.1
|
go.mongodb.org/mongo-driver v1.11.1
|
||||||
go.opencensus.io v0.24.0 // indirect
|
go.opencensus.io v0.24.0 // indirect
|
||||||
gocloud.dev v0.34.0
|
gocloud.dev v0.28.0
|
||||||
gocloud.dev/pubsub/natspubsub v0.34.0
|
gocloud.dev/pubsub/natspubsub v0.28.0
|
||||||
gocloud.dev/pubsub/rabbitpubsub v0.34.0
|
gocloud.dev/pubsub/rabbitpubsub v0.27.0
|
||||||
golang.org/x/crypto v0.14.0 // indirect
|
golang.org/x/crypto v0.3.0 // indirect
|
||||||
golang.org/x/exp v0.0.0-20230905200255-921286631fa9
|
golang.org/x/exp v0.0.0-20221031165847-c99f073a8326
|
||||||
golang.org/x/image v0.12.0
|
golang.org/x/image v0.0.0-20200119044424-58c23975cae1
|
||||||
golang.org/x/net v0.17.0
|
golang.org/x/net v0.5.0
|
||||||
golang.org/x/oauth2 v0.13.0 // indirect
|
golang.org/x/oauth2 v0.2.0 // indirect
|
||||||
golang.org/x/sys v0.13.0
|
golang.org/x/sys v0.4.0
|
||||||
golang.org/x/text v0.13.0 // indirect
|
golang.org/x/text v0.6.0 // indirect
|
||||||
golang.org/x/tools v0.14.0
|
golang.org/x/tools v0.5.0
|
||||||
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
|
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
|
||||||
google.golang.org/api v0.148.0
|
google.golang.org/api v0.108.0
|
||||||
google.golang.org/appengine v1.6.7 // indirect
|
google.golang.org/appengine v1.6.7 // indirect
|
||||||
google.golang.org/genproto v0.0.0-20231002182017-d307bd883b97 // indirect
|
google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
|
||||||
google.golang.org/grpc v1.58.3
|
google.golang.org/grpc v1.52.0
|
||||||
google.golang.org/protobuf v1.31.0
|
google.golang.org/protobuf v1.28.1
|
||||||
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/cc/v3 v3.40.0 // indirect
|
modernc.org/cc/v3 v3.40.0 // indirect
|
||||||
modernc.org/ccgo/v3 v3.16.13 // indirect
|
modernc.org/ccgo/v3 v3.16.13 // indirect
|
||||||
modernc.org/libc v1.24.1 // indirect
|
modernc.org/libc v1.22.2 // indirect
|
||||||
modernc.org/mathutil v1.6.0 // indirect
|
modernc.org/mathutil v1.5.0 // indirect
|
||||||
modernc.org/memory v1.6.0 // indirect
|
modernc.org/memory v1.4.0 // indirect
|
||||||
modernc.org/opt v0.1.3 // indirect
|
modernc.org/opt v0.1.3 // indirect
|
||||||
modernc.org/sqlite v1.25.0
|
modernc.org/sqlite v1.20.1
|
||||||
modernc.org/strutil v1.2.0
|
modernc.org/strutil v1.1.3
|
||||||
modernc.org/token v1.0.1 // indirect
|
modernc.org/token v1.0.1 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/Jille/raft-grpc-transport v1.4.0
|
github.com/Jille/raft-grpc-transport v1.4.0
|
||||||
github.com/arangodb/go-driver v1.6.0
|
github.com/arangodb/go-driver v1.4.1
|
||||||
github.com/armon/go-metrics v0.4.1
|
github.com/armon/go-metrics v0.4.1
|
||||||
github.com/aws/aws-sdk-go-v2 v1.21.2
|
|
||||||
github.com/aws/aws-sdk-go-v2/config v1.18.42
|
|
||||||
github.com/aws/aws-sdk-go-v2/credentials v1.13.40
|
|
||||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.40.2
|
|
||||||
github.com/fluent/fluent-logger-golang v1.9.0
|
github.com/fluent/fluent-logger-golang v1.9.0
|
||||||
github.com/golang-jwt/jwt/v5 v5.0.0
|
|
||||||
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.4.0
|
github.com/hanwen/go-fuse/v2 v2.1.1-0.20220627082937-d01fda7edf17
|
||||||
github.com/hashicorp/raft v1.5.0
|
github.com/hashicorp/raft v1.3.11
|
||||||
github.com/hashicorp/raft-boltdb/v2 v2.2.2
|
github.com/hashicorp/raft-boltdb/v2 v2.2.2
|
||||||
github.com/orcaman/concurrent-map/v2 v2.0.1
|
github.com/rabbitmq/amqp091-go v1.5.0
|
||||||
github.com/puzpuzpuz/xsync/v2 v2.5.1
|
github.com/schollz/progressbar/v3 v3.13.0
|
||||||
github.com/rabbitmq/amqp091-go v1.9.0
|
github.com/tikv/client-go/v2 v2.0.5
|
||||||
github.com/rclone/rclone v1.64.0
|
github.com/ydb-platform/ydb-go-sdk-auth-environ v0.1.2
|
||||||
github.com/rdleal/intervalst v1.1.0
|
github.com/ydb-platform/ydb-go-sdk/v3 v3.42.6
|
||||||
github.com/schollz/progressbar/v3 v3.13.1
|
|
||||||
github.com/shirou/gopsutil/v3 v3.23.9
|
|
||||||
github.com/tikv/client-go/v2 v2.0.7
|
|
||||||
github.com/ydb-platform/ydb-go-sdk-auth-environ v0.2.0
|
|
||||||
github.com/ydb-platform/ydb-go-sdk/v3 v3.53.3
|
|
||||||
google.golang.org/grpc/security/advancedtls v0.0.0-20220622233350-5cdb09fa29c1
|
google.golang.org/grpc/security/advancedtls v0.0.0-20220622233350-5cdb09fa29c1
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
cloud.google.com/go/compute v1.23.0 // indirect
|
cloud.google.com/go/compute v1.14.0 // indirect
|
||||||
cloud.google.com/go/compute/metadata v0.2.3 // indirect
|
cloud.google.com/go/compute/metadata v0.2.3 // indirect
|
||||||
cloud.google.com/go/iam v1.1.2 // indirect
|
cloud.google.com/go/iam v0.8.0 // indirect
|
||||||
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.7.0 // indirect
|
|
||||||
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.3.0 // indirect
|
|
||||||
github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0 // indirect
|
|
||||||
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.1.0 // indirect
|
|
||||||
github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 // indirect
|
|
||||||
github.com/AzureAD/microsoft-authentication-library-for-go v1.0.0 // indirect
|
|
||||||
github.com/Max-Sum/base32768 v0.0.0-20230304063302-18e6ce5945fd // indirect
|
|
||||||
github.com/Microsoft/go-winio v0.6.0 // 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/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 // indirect
|
|
||||||
github.com/ProtonMail/go-mime v0.0.0-20230322103455-7d82a3887f2f // indirect
|
|
||||||
github.com/ProtonMail/go-srp v0.0.7 // indirect
|
|
||||||
github.com/ProtonMail/gopenpgp/v2 v2.7.3 // indirect
|
|
||||||
github.com/PuerkitoBio/goquery v1.8.1 // indirect
|
|
||||||
github.com/Unknwon/goconfig v1.0.0 // indirect
|
|
||||||
github.com/abbot/go-http-auth v0.4.0 // indirect
|
|
||||||
github.com/andybalholm/cascadia v1.3.2 // 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.4.14 // indirect
|
github.com/aws/aws-sdk-go-v2 v1.17.1 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.11 // indirect
|
github.com/aws/aws-sdk-go-v2/config v1.18.3 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.43 // indirect
|
github.com/aws/aws-sdk-go-v2/credentials v1.13.3 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.37 // indirect
|
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.12.19 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.43 // indirect
|
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.25 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.1.6 // indirect
|
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.19 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.15 // indirect
|
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.26 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.38 // indirect
|
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.19 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.37 // indirect
|
github.com/aws/aws-sdk-go-v2/service/sns v1.18.6 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.15.6 // indirect
|
github.com/aws/aws-sdk-go-v2/service/sqs v1.19.15 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/sns v1.21.1 // indirect
|
github.com/aws/aws-sdk-go-v2/service/sso v1.11.25 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/sqs v1.24.1 // indirect
|
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.13.8 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/sso v1.14.1 // indirect
|
github.com/aws/aws-sdk-go-v2/service/sts v1.17.5 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.17.1 // indirect
|
github.com/aws/smithy-go v1.13.4 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/sts v1.22.0 // indirect
|
github.com/benbjohnson/clock v1.1.0 // indirect
|
||||||
github.com/aws/smithy-go v1.15.0 // indirect
|
|
||||||
github.com/benbjohnson/clock v1.3.0 // indirect
|
|
||||||
github.com/boltdb/bolt v1.3.1 // indirect
|
github.com/boltdb/bolt v1.3.1 // indirect
|
||||||
github.com/bradenaw/juniper v0.13.1 // indirect
|
|
||||||
github.com/buengese/sgzip v0.1.1 // indirect
|
|
||||||
github.com/calebcase/tmpfile v1.0.3 // indirect
|
|
||||||
github.com/cloudflare/circl v1.3.3 // indirect
|
|
||||||
github.com/colinmarc/hdfs/v2 v2.4.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/fatih/color v1.13.0 // indirect
|
||||||
github.com/elastic/gosigar v0.14.2 // indirect
|
|
||||||
github.com/emersion/go-message v0.17.0 // indirect
|
|
||||||
github.com/emersion/go-textwrapper v0.0.0-20200911093747-65d896831594 // indirect
|
|
||||||
github.com/emersion/go-vcard v0.0.0-20230815062825-8fda7d206ec9 // indirect
|
|
||||||
github.com/fatih/color v1.14.1 // indirect
|
|
||||||
github.com/fclairamb/go-log v0.4.1 // indirect
|
github.com/fclairamb/go-log v0.4.1 // indirect
|
||||||
github.com/flynn/noise v1.0.0 // indirect
|
|
||||||
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
|
|
||||||
github.com/geoffgarside/ber v1.1.0 // indirect
|
|
||||||
github.com/go-chi/chi/v5 v5.0.10 // indirect
|
|
||||||
github.com/go-ole/go-ole v1.2.6 // indirect
|
|
||||||
github.com/go-resty/resty/v2 v2.7.0 // indirect
|
|
||||||
github.com/gofrs/flock v0.8.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.4.3 // indirect
|
||||||
github.com/google/go-querystring v1.1.0 // indirect
|
github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect
|
||||||
github.com/google/s2a-go v0.1.7 // indirect
|
|
||||||
github.com/googleapis/enterprise-certificate-proxy v0.3.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/hashicorp/go-hclog v1.5.0 // indirect
|
github.com/hashicorp/go-hclog v1.2.0 // 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-msgpack v1.1.5 // indirect
|
github.com/hashicorp/go-msgpack v1.1.5 // indirect
|
||||||
github.com/hashicorp/golang-lru v0.6.0 // indirect
|
github.com/hashicorp/golang-lru v0.5.4 // indirect
|
||||||
github.com/henrybear327/Proton-API-Bridge v0.0.0-20230908065933-5bfa15b567db // indirect
|
|
||||||
github.com/henrybear327/go-proton-api v0.0.0-20230907193451-e563407504ce // indirect
|
|
||||||
github.com/hirochachacha/go-smb2 v1.1.0 // indirect
|
|
||||||
github.com/iguanesolutions/go-systemd/v5 v5.1.1 // 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/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/jonboulle/clockwork v0.2.2 // indirect
|
||||||
github.com/jonboulle/clockwork v0.3.0 // indirect
|
|
||||||
github.com/josharian/intern v1.0.0 // indirect
|
github.com/josharian/intern v1.0.0 // indirect
|
||||||
github.com/jtolio/eventkit v0.0.0-20221004135224-074cf276595b // indirect
|
github.com/klauspost/cpuid/v2 v2.1.1 // indirect
|
||||||
github.com/jtolio/noiseconn v0.0.0-20230111204749-d7ec1a08b0b8 // indirect
|
|
||||||
github.com/jzelinskie/whirlpool v0.0.0-20201016144138-0675e54bb004 // indirect
|
|
||||||
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
|
|
||||||
github.com/koofr/go-httpclient v0.0.0-20230225102643-5d51a2e9dea6 // indirect
|
|
||||||
github.com/koofr/go-koofrclient v0.0.0-20221207135200-cbd7fc9ad6a6 // indirect
|
|
||||||
github.com/kr/fs v0.1.0 // indirect
|
|
||||||
github.com/kylelemons/godebug v1.1.0 // indirect
|
|
||||||
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
|
|
||||||
github.com/mattn/go-colorable v0.1.13 // indirect
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
||||||
github.com/mattn/go-runewidth v0.0.15 // indirect
|
github.com/mattn/go-runewidth v0.0.14 // indirect
|
||||||
github.com/mattn/go-sqlite3 v2.0.1+incompatible // indirect
|
github.com/mattn/go-sqlite3 v2.0.1+incompatible // 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/montanaflynn/stats v0.6.6 // indirect
|
||||||
github.com/montanaflynn/stats v0.7.0 // indirect
|
github.com/nats-io/nats.go v1.20.0 // indirect
|
||||||
github.com/nats-io/nats.go v1.30.2 // indirect
|
github.com/nats-io/nkeys v0.3.0 // indirect
|
||||||
github.com/nats-io/nkeys v0.4.5 // indirect
|
|
||||||
github.com/nats-io/nuid v1.0.1 // indirect
|
github.com/nats-io/nuid v1.0.1 // indirect
|
||||||
github.com/ncw/go-acd v0.0.0-20201019170801-fe55f33415b1 // indirect
|
|
||||||
github.com/ncw/swift/v2 v2.0.2 // 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.45.0 // indirect
|
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
|
||||||
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
|
|
||||||
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
|
|
||||||
github.com/pengsrc/go-shared v0.2.1-0.20190131101655-1999055a4a14 // indirect
|
|
||||||
github.com/philhofer/fwd v1.1.1 // indirect
|
github.com/philhofer/fwd v1.1.1 // indirect
|
||||||
github.com/pierrec/lz4/v4 v4.1.17 // indirect
|
github.com/pierrec/lz4/v4 v4.1.17 // 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-20210918120811-547c13e3eb00 // indirect
|
||||||
github.com/pingcap/kvproto v0.0.0-20230403051650-e166ae588106 // indirect
|
github.com/pingcap/kvproto v0.0.0-20230201112839-2b853bed8125 // 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-20210911075715-681adbf594b8 // indirect
|
github.com/rivo/uniseg v0.4.3 // indirect
|
||||||
github.com/pkg/sftp v1.13.6-0.20230213180117-971c283182b6 // indirect
|
github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd // indirect
|
||||||
github.com/pkg/xattr v0.4.9 // indirect
|
|
||||||
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
|
|
||||||
github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8 // indirect
|
|
||||||
github.com/relvacode/iso8601 v1.3.0 // indirect
|
|
||||||
github.com/rfjakob/eme v1.1.2 // indirect
|
|
||||||
github.com/rivo/uniseg v0.4.4 // indirect
|
|
||||||
github.com/sagikazarmark/locafero v0.3.0 // indirect
|
|
||||||
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
|
|
||||||
github.com/shoenig/go-m1cpu v0.1.6 // indirect
|
|
||||||
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 // indirect
|
|
||||||
github.com/smartystreets/goconvey v1.8.1 // indirect
|
|
||||||
github.com/sony/gobreaker v0.5.0 // indirect
|
|
||||||
github.com/sourcegraph/conc v0.3.0 // indirect
|
|
||||||
github.com/spacemonkeygo/monkit/v3 v3.0.20-0.20230227152157-d00b379de191 // indirect
|
|
||||||
github.com/spf13/pflag v1.0.5 // indirect
|
github.com/spf13/pflag v1.0.5 // indirect
|
||||||
github.com/subosito/gotenv v1.6.0 // indirect
|
github.com/stathat/consistent v1.0.0 // indirect
|
||||||
github.com/t3rm1n4l/go-mega v0.0.0-20230228171823-a01a2cda13ca // indirect
|
github.com/subosito/gotenv v1.4.2 // 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 v1.1.0-beta.0.20230202094356-18df271ce57f // indirect
|
||||||
|
github.com/tikv/pd/client v0.0.0-20230202094356-18df271ce57f // indirect
|
||||||
github.com/tinylib/msgp v1.1.6 // indirect
|
github.com/tinylib/msgp v1.1.6 // indirect
|
||||||
github.com/tklauser/go-sysconf v0.3.12 // indirect
|
|
||||||
github.com/tklauser/numcpus v0.6.1 // indirect
|
|
||||||
github.com/twmb/murmur3 v1.1.3 // indirect
|
github.com/twmb/murmur3 v1.1.3 // indirect
|
||||||
github.com/vivint/infectious v0.0.0-20200605153912-25a574ae18a3 // 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-20231012155159-f85a672542fd // indirect
|
github.com/ydb-platform/ydb-go-genproto v0.0.0-20221215182650-986f9d10542f // indirect
|
||||||
github.com/ydb-platform/ydb-go-yc v0.10.2 // indirect
|
github.com/ydb-platform/ydb-go-yc v0.8.3 // indirect
|
||||||
github.com/ydb-platform/ydb-go-yc-metadata v0.5.2 // indirect
|
github.com/ydb-platform/ydb-go-yc-metadata v0.5.2 // indirect
|
||||||
github.com/yunify/qingstor-sdk-go/v3 v3.2.0 // indirect
|
go.etcd.io/bbolt v1.3.6 // indirect
|
||||||
github.com/yusufpapurcu/wmi v1.2.3 // indirect
|
go.etcd.io/etcd/api/v3 v3.5.7 // indirect
|
||||||
github.com/zeebo/blake3 v0.2.3 // indirect
|
go.etcd.io/etcd/client/pkg/v3 v3.5.7 // indirect
|
||||||
github.com/zeebo/errs v1.3.0 // indirect
|
go.uber.org/atomic v1.10.0 // indirect
|
||||||
go.etcd.io/bbolt v1.3.7 // indirect
|
go.uber.org/multierr v1.8.0 // indirect
|
||||||
go.etcd.io/etcd/api/v3 v3.5.9 // indirect
|
|
||||||
go.etcd.io/etcd/client/pkg/v3 v3.5.9 // indirect
|
|
||||||
go.uber.org/atomic v1.11.0 // indirect
|
|
||||||
go.uber.org/multierr v1.11.0 // indirect
|
|
||||||
go.uber.org/zap v1.24.0 // indirect
|
go.uber.org/zap v1.24.0 // indirect
|
||||||
golang.org/x/mod v0.13.0 // indirect
|
golang.org/x/mod v0.7.0 // indirect
|
||||||
golang.org/x/sync v0.4.0 // indirect
|
golang.org/x/sync v0.1.0 // indirect
|
||||||
golang.org/x/term v0.13.0 // indirect
|
golang.org/x/term v0.4.0 // indirect
|
||||||
golang.org/x/time v0.3.0 // indirect
|
|
||||||
google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97 // indirect
|
|
||||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231012201019-e917dd12ba7a // indirect
|
|
||||||
gopkg.in/ini.v1 v1.67.0 // indirect
|
gopkg.in/ini.v1 v1.67.0 // indirect
|
||||||
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
|
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // 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
|
||||||
lukechampine.com/uint128 v1.2.0 // indirect
|
lukechampine.com/uint128 v1.2.0 // indirect
|
||||||
storj.io/common v0.0.0-20230602145716-d6ea82d58b3d // indirect
|
|
||||||
storj.io/drpc v0.0.33 // indirect
|
|
||||||
storj.io/picobuf v0.0.1 // indirect
|
|
||||||
storj.io/uplink v1.11.0 // indirect
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// replace github.com/seaweedfs/raft => /Users/chrislu/go/src/github.com/seaweedfs/raft
|
// replace github.com/seaweedfs/raft => /Users/chrislu/go/src/github.com/seaweedfs/raft
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
# Artifact Hub repository metadata file
|
|
||||||
#
|
|
||||||
# Some settings like the verified publisher flag or the ignored packages won't
|
|
||||||
# be applied until the next time the repository is processed. Please keep in
|
|
||||||
# mind that the repository won't be processed if it has not changed since the
|
|
||||||
# last time it was processed. Depending on the repository kind, this is checked
|
|
||||||
# in a different way. For Helm http based repositories, we consider it has
|
|
||||||
# changed if the `index.yaml` file changes. For git based repositories, it does
|
|
||||||
# when the hash of the last commit in the branch you set up changes. This does
|
|
||||||
# NOT apply to ownership claim operations, which are processed immediately.
|
|
||||||
#
|
|
||||||
|
|
||||||
repositoryID: 5b2f1fe2-20e5-486e-9746-183484642aa2
|
|
||||||
# owners: # (optional, used to claim repository ownership)
|
|
||||||
# - name: username
|
|
||||||
# email: email
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
# SEAWEEDFS - helm chart (2.x+)
|
|
||||||
|
|
||||||
## Getting Started
|
|
||||||
|
|
||||||
### Add the helm repo
|
|
||||||
|
|
||||||
`helm repo add seaweedfs https://seaweedfs.github.io/seaweedfs/helm`
|
|
||||||
|
|
||||||
### Install the helm chart
|
|
||||||
|
|
||||||
`helm install seaweedfs seaweedfs/seaweedfs`
|
|
||||||
|
|
||||||
### (Recommended) Provide `values.yaml`
|
|
||||||
|
|
||||||
`helm install --values=values.yaml seaweedfs seaweedfs/seaweedfs`
|
|
||||||
|
|
||||||
## Info:
|
|
||||||
* master/filer/volume are stateful sets with anti-affinity on the hostname,
|
|
||||||
so your deployment will be spread/HA.
|
|
||||||
* chart is using memsql(mysql) as the filer backend to enable HA (multiple filer instances) and backup/HA memsql can provide.
|
|
||||||
* mysql user/password are created in a k8s secret (secret-seaweedfs-db.yaml) and injected to the filer with ENV.
|
|
||||||
* cert config exists and can be enabled, but not been tested, requires cert-manager to be installed.
|
|
||||||
|
|
||||||
## Prerequisites
|
|
||||||
### Database
|
|
||||||
|
|
||||||
leveldb is the default database this only supports one filer replica.
|
|
||||||
|
|
||||||
To have multiple filers a external datastore is recommened.
|
|
||||||
|
|
||||||
Such as MySQL-compatible database, as specified in the `values.yaml` at `filer.extraEnvironmentVars`.
|
|
||||||
This database should be pre-configured and initialized by running:
|
|
||||||
```sql
|
|
||||||
CREATE TABLE IF NOT EXISTS `filemeta` (
|
|
||||||
`dirhash` BIGINT NOT NULL COMMENT 'first 64 bits of MD5 hash value of directory field',
|
|
||||||
`name` VARCHAR(766) NOT NULL COMMENT 'directory or file name',
|
|
||||||
`directory` TEXT NOT NULL COMMENT 'full path to parent directory',
|
|
||||||
`meta` LONGBLOB,
|
|
||||||
PRIMARY KEY (`dirhash`, `name`)
|
|
||||||
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
|
||||||
```
|
|
||||||
|
|
||||||
Alternative database can also be configured (e.g. leveldb, postgres) following the instructions at `filer.extraEnvironmentVars`.
|
|
||||||
|
|
||||||
### Node Labels
|
|
||||||
Kubernetes nodes can have labels which help to define which node(Host) will run which pod:
|
|
||||||
|
|
||||||
Here is an example:
|
|
||||||
* s3/filer/master needs the label **sw-backend=true**
|
|
||||||
* volume need the label **sw-volume=true**
|
|
||||||
|
|
||||||
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
|
|
||||||
```
|
|
||||||
|
|
||||||
on production k8s deployment you will want each pod to have a different host,
|
|
||||||
especially the volume server and the masters, all pods (master/volume/filer)
|
|
||||||
should have anti-affinity rules to disallow running multiple component pods on the same host.
|
|
||||||
|
|
||||||
If you still want to run multiple pods of the same component (master/volume/filer) on the same host please set/update the corresponding affinity rule in values.yaml to an empty one:
|
|
||||||
|
|
||||||
```affinity: ""```
|
|
||||||
|
|
||||||
## PVC - storage class ###
|
|
||||||
|
|
||||||
On the volume stateful set added support for k8s PVC, currently example
|
|
||||||
with the simple local-path-provisioner from Rancher (comes included with k3d / k3s)
|
|
||||||
https://github.com/rancher/local-path-provisioner
|
|
||||||
|
|
||||||
you can use ANY storage class you like, just update the correct storage-class
|
|
||||||
for your deployment.
|
|
||||||
|
|
||||||
## current instances config (AIO):
|
|
||||||
|
|
||||||
1 instance for each type (master/filer+s3/volume)
|
|
||||||
|
|
||||||
You can update the replicas count for each node type in values.yaml,
|
|
||||||
need to add more nodes with the corresponding labels if applicable.
|
|
||||||
|
|
||||||
Most of the configuration are available through values.yaml any pull requests to expand functionality or usability are greatly appreciated. Any pull request must pass [chart-testing](https://github.com/helm/chart-testing).
|
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -1,19 +0,0 @@
|
|||||||
{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}
|
|
||||||
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
|
||||||
kind: Certificate
|
|
||||||
metadata:
|
|
||||||
name: {{ template "seaweedfs.name" . }}-ca-cert
|
|
||||||
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 }}
|
|
||||||
spec:
|
|
||||||
secretName: {{ template "seaweedfs.name" . }}-ca-cert
|
|
||||||
commonName: "{{ template "seaweedfs.name" . }}-root-ca"
|
|
||||||
isCA: true
|
|
||||||
issuerRef:
|
|
||||||
name: {{ template "seaweedfs.name" . }}-clusterissuer
|
|
||||||
kind: ClusterIssuer
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}
|
|
||||||
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
|
||||||
kind: Issuer
|
|
||||||
metadata:
|
|
||||||
name: {{ template "seaweedfs.name" . }}-ca-issuer
|
|
||||||
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 }}
|
|
||||||
spec:
|
|
||||||
ca:
|
|
||||||
secretName: {{ template "seaweedfs.name" . }}-ca-cert
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}
|
|
||||||
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
|
||||||
kind: ClusterIssuer
|
|
||||||
metadata:
|
|
||||||
name: {{ template "seaweedfs.name" . }}-clusterissuer
|
|
||||||
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 }}
|
|
||||||
spec:
|
|
||||||
selfSigned: {}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
|
|
||||||
name: {{ template "seaweedfs.name" . }}-filer
|
|
||||||
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: filer
|
|
||||||
spec:
|
|
||||||
clusterIP: None
|
|
||||||
publishNotReadyAddresses: true
|
|
||||||
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
|
|
||||||
{{- if .Values.filer.s3.enabled }}
|
|
||||||
- name: "swfs-s3"
|
|
||||||
port: {{ .Values.filer.s3.port }}
|
|
||||||
targetPort: {{ .Values.filer.s3.port }}
|
|
||||||
protocol: TCP
|
|
||||||
{{- if .Values.filer.s3.httpsPort }}
|
|
||||||
- name: "swfs-s3-tls"
|
|
||||||
port: {{ .Values.filer.s3.httpsPort }}
|
|
||||||
targetPort: {{ .Values.filer.s3.httpsPort }}
|
|
||||||
protocol: TCP
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.filer.metricsPort }}
|
|
||||||
- name: "metrics"
|
|
||||||
port: {{ .Values.filer.metricsPort }}
|
|
||||||
targetPort: {{ .Values.filer.metricsPort }}
|
|
||||||
protocol: TCP
|
|
||||||
{{- end }}
|
|
||||||
selector:
|
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
|
||||||
app.kubernetes.io/component: filer
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
{{- if .Values.filer.metricsPort }}
|
|
||||||
{{- if .Values.global.monitoring.enabled }}
|
|
||||||
apiVersion: monitoring.coreos.com/v1
|
|
||||||
kind: ServiceMonitor
|
|
||||||
metadata:
|
|
||||||
name: {{ template "seaweedfs.name" . }}-filer
|
|
||||||
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: filer
|
|
||||||
spec:
|
|
||||||
endpoints:
|
|
||||||
- interval: 30s
|
|
||||||
port: metrics
|
|
||||||
scrapeTimeout: 5s
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
|
||||||
app.kubernetes.io/component: filer
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
{{- if .Values.filer.ingress.enabled }}
|
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion }}
|
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
|
||||||
{{- else }}
|
|
||||||
apiVersion: extensions/v1beta1
|
|
||||||
{{- end }}
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: ingress-{{ template "seaweedfs.name" . }}-filer
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
{{- if .Values.filer.ingress.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{ tpl .Values.filer.ingress.annotations . | nindent 4 | trim }}
|
|
||||||
{{- end }}
|
|
||||||
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: filer
|
|
||||||
spec:
|
|
||||||
ingressClassName: {{ .Values.filer.ingress.className | quote }}
|
|
||||||
tls:
|
|
||||||
{{ .Values.filer.ingress.tls | default list | toYaml | nindent 6}}
|
|
||||||
rules:
|
|
||||||
- http:
|
|
||||||
paths:
|
|
||||||
- path: /sw-filer/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
|
||||||
service:
|
|
||||||
name: {{ template "seaweedfs.name" . }}-filer
|
|
||||||
port:
|
|
||||||
number: {{ .Values.filer.port }}
|
|
||||||
#name:
|
|
||||||
{{- else }}
|
|
||||||
serviceName: {{ template "seaweedfs.name" . }}-filer
|
|
||||||
servicePort: {{ .Values.filer.port }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.filer.ingress.host }}
|
|
||||||
host: {{ .Values.filer.ingress.host }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{{- if .Values.master.enabled }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: {{ template "seaweedfs.name" . }}-master-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 }}
|
|
||||||
data:
|
|
||||||
master.toml: |-
|
|
||||||
{{ .Values.master.config | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
{{- if .Values.master.ingress.enabled }}
|
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion }}
|
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
|
||||||
{{- else }}
|
|
||||||
apiVersion: extensions/v1beta1
|
|
||||||
{{- end }}
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: ingress-{{ template "seaweedfs.name" . }}-master
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
{{- if .Values.master.ingress.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{ tpl .Values.master.ingress.annotations . | nindent 4 | trim }}
|
|
||||||
{{- end }}
|
|
||||||
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: master
|
|
||||||
spec:
|
|
||||||
ingressClassName: {{ .Values.master.ingress.className | quote }}
|
|
||||||
rules:
|
|
||||||
- http:
|
|
||||||
paths:
|
|
||||||
- path: /sw-master/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
|
||||||
service:
|
|
||||||
name: {{ template "seaweedfs.name" . }}-master
|
|
||||||
port:
|
|
||||||
number: {{ .Values.master.port }}
|
|
||||||
#name:
|
|
||||||
{{- else }}
|
|
||||||
serviceName: {{ template "seaweedfs.name" . }}-master
|
|
||||||
servicePort: {{ .Values.master.port }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.filer.ingress.host }}
|
|
||||||
host: {{ .Values.master.ingress.host }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
{{- if .Values.s3.ingress.enabled }}
|
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion }}
|
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
|
||||||
{{- else }}
|
|
||||||
apiVersion: extensions/v1beta1
|
|
||||||
{{- end }}
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: ingress-{{ template "seaweedfs.name" . }}-s3
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
{{- if .Values.s3.ingress.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{ tpl .Values.s3.ingress.annotations . | nindent 4 | trim }}
|
|
||||||
{{- end }}
|
|
||||||
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: s3
|
|
||||||
spec:
|
|
||||||
ingressClassName: {{ .Values.s3.ingress.className | quote }}
|
|
||||||
tls:
|
|
||||||
{{ .Values.s3.ingress.tls | default list | toYaml | nindent 6}}
|
|
||||||
rules:
|
|
||||||
- http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
|
||||||
service:
|
|
||||||
name: {{ template "seaweedfs.name" . }}-s3
|
|
||||||
port:
|
|
||||||
number: {{ .Values.s3.port }}
|
|
||||||
#name:
|
|
||||||
{{- else }}
|
|
||||||
serviceName: {{ template "seaweedfs.name" . }}-s3
|
|
||||||
servicePort: {{ .Values.s3.port }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.s3.ingress.host }}
|
|
||||||
host: {{ .Values.s3.ingress.host }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: {{ template "seaweedfs.name" . }}-s3
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
|
||||||
app.kubernetes.io/component: s3
|
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
||||||
spec:
|
|
||||||
internalTrafficPolicy: {{ .Values.s3.internalTrafficPolicy | default "Cluster" }}
|
|
||||||
ports:
|
|
||||||
- name: "swfs-s3"
|
|
||||||
port: {{ if .Values.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }}
|
|
||||||
targetPort: {{ if .Values.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }}
|
|
||||||
protocol: TCP
|
|
||||||
{{- if and .Values.s3.enabled .Values.s3.httpsPort }}
|
|
||||||
- name: "swfs-s3-tls"
|
|
||||||
port: {{ .Values.s3.httpsPort }}
|
|
||||||
targetPort: {{ .Values.s3.httpsPort }}
|
|
||||||
protocol: TCP
|
|
||||||
{{- end }}
|
|
||||||
{{- if and .Values.s3.enabled .Values.s3.metricsPort }}
|
|
||||||
- name: "metrics"
|
|
||||||
port: {{ .Values.s3.metricsPort }}
|
|
||||||
targetPort: {{ .Values.s3.metricsPort }}
|
|
||||||
protocol: TCP
|
|
||||||
{{- end }}
|
|
||||||
selector:
|
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
|
||||||
app.kubernetes.io/component: {{ if .Values.s3.enabled }}s3{{ else }}filer{{ end }}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
{{- if .Values.global.createClusterRole }}
|
|
||||||
#hack for delete pod master after migration
|
|
||||||
---
|
|
||||||
kind: ClusterRole
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
metadata:
|
|
||||||
name: seaweedfs-rw-cr
|
|
||||||
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 }}
|
|
||||||
rules:
|
|
||||||
- apiGroups: [""]
|
|
||||||
resources: ["pods"]
|
|
||||||
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: seaweedfs-rw-sa
|
|
||||||
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 }}
|
|
||||||
---
|
|
||||||
kind: ClusterRoleBinding
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
metadata:
|
|
||||||
name: system:serviceaccount:seaweedfs-rw-sa:default
|
|
||||||
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 }}
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: seaweedfs-rw-sa
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: ClusterRole
|
|
||||||
name: seaweedfs-rw-cr
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
{{- if .Values.volume.metricsPort }}
|
|
||||||
{{- if .Values.global.monitoring.enabled }}
|
|
||||||
apiVersion: monitoring.coreos.com/v1
|
|
||||||
kind: ServiceMonitor
|
|
||||||
metadata:
|
|
||||||
name: {{ template "seaweedfs.name" . }}-volume
|
|
||||||
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: volume
|
|
||||||
spec:
|
|
||||||
endpoints:
|
|
||||||
- interval: 30s
|
|
||||||
port: metrics
|
|
||||||
scrapeTimeout: 5s
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
|
||||||
app.kubernetes.io/component: volume
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
File renamed without changes.
@@ -1,5 +1,5 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
description: SeaweedFS
|
description: SeaweedFS
|
||||||
name: seaweedfs
|
name: seaweedfs
|
||||||
appVersion: "3.58"
|
appVersion: "3.42"
|
||||||
version: 3.58.0
|
version: "3.42"
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
# SEAWEEDFS - helm chart (2.x)
|
||||||
|
|
||||||
|
## Info:
|
||||||
|
* master/filer/volume are stateful sets with anti-affinity on the hostname,
|
||||||
|
so your deployment will be spread/HA.
|
||||||
|
* chart is using memsql(mysql) as the filer backend to enable HA (multiple filer instances)
|
||||||
|
and backup/HA memsql can provide.
|
||||||
|
* mysql user/password are created in a k8s secret (secret-seaweedfs-db.yaml) and injected to the filer
|
||||||
|
with ENV.
|
||||||
|
* cert config exists and can be enabled, but not been tested.
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
### Database
|
||||||
|
A running MySQL-compatible database is expected by default, as specified in the `values.yaml` at `filer.extraEnvironmentVars`.
|
||||||
|
This database should be pre-configured and initialized by running:
|
||||||
|
```sql
|
||||||
|
CREATE TABLE IF NOT EXISTS `filemeta` (
|
||||||
|
`dirhash` BIGINT NOT NULL COMMENT 'first 64 bits of MD5 hash value of directory field',
|
||||||
|
`name` VARCHAR(766) NOT NULL COMMENT 'directory or file name',
|
||||||
|
`directory` TEXT NOT NULL COMMENT 'full path to parent directory',
|
||||||
|
`meta` LONGBLOB,
|
||||||
|
PRIMARY KEY (`dirhash`, `name`)
|
||||||
|
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||||
|
```
|
||||||
|
|
||||||
|
Alternative database can also be configured (e.g. leveldb) following the instructions at `filer.extraEnvironmentVars`.
|
||||||
|
|
||||||
|
### Node Labels
|
||||||
|
Kubernetes node have labels which help to define which node(Host) will run which pod:
|
||||||
|
* s3/filer/master needs the label **sw-backend=true**
|
||||||
|
* volume need the label **sw-volume=true**
|
||||||
|
|
||||||
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
on production k8s deployment you will want each pod to have a different host,
|
||||||
|
especially the volume server & the masters, currently all pods (master/volume/filer)
|
||||||
|
have anti-affinity rule to disallow running multiple pod type on the same host.
|
||||||
|
if you still want to run multiple pods of the same type (master/volume/filer) on the same host
|
||||||
|
please set/update the corresponding affinity rule in values.yaml to an empty one:
|
||||||
|
|
||||||
|
```affinity: ""```
|
||||||
|
|
||||||
|
## PVC - storage class ###
|
||||||
|
|
||||||
|
on the volume stateful set added support for K8S PVC, currently example
|
||||||
|
with the simple local-path-provisioner from Rancher (comes included with k3d / k3s)
|
||||||
|
https://github.com/rancher/local-path-provisioner
|
||||||
|
|
||||||
|
you can use ANY storage class you like, just update the correct storage-class
|
||||||
|
for your deployment.
|
||||||
|
|
||||||
|
## current instances config (AIO):
|
||||||
|
1 instance for each type (master/filer+s3/volume)
|
||||||
|
|
||||||
|
you can update the replicas count for each node type in values.yaml,
|
||||||
|
need to add more nodes with the corresponding labels.
|
||||||
|
|
||||||
|
most of the configuration are available through values.yaml
|
||||||
|
|
||||||
File diff suppressed because it is too large.
Load diff
+1
-16
@@ -182,19 +182,4 @@ Inject extra environment vars in the format key:value, if populated
|
|||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "false" -}}
|
{{- printf "false" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/* Return the proper imagePullSecrets */}}
|
|
||||||
{{- define "seaweedfs.imagePullSecrets" -}}
|
|
||||||
{{- if .Values.global.imagePullSecrets }}
|
|
||||||
{{- if kindIs "string" .Values.global.imagePullSecrets }}
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: {{ .Values.global.imagePullSecrets }}
|
|
||||||
{{- else }}
|
|
||||||
imagePullSecrets:
|
|
||||||
{{- range .Values.global.imagePullSecrets }}
|
|
||||||
- name: {{ . }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{{- if .Values.global.enableSecurity }}
|
||||||
|
apiVersion: certmanager.k8s.io/v1alpha1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-ca-cert
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
spec:
|
||||||
|
secretName: {{ template "seaweedfs.name" . }}-ca-cert
|
||||||
|
commonName: "{{ template "seaweedfs.name" . }}-root-ca"
|
||||||
|
isCA: true
|
||||||
|
issuerRef:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-clusterissuer
|
||||||
|
kind: ClusterIssuer
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{{- if .Values.global.enableSecurity }}
|
||||||
|
apiVersion: certmanager.k8s.io/v1alpha1
|
||||||
|
kind: ClusterIssuer
|
||||||
|
metadata:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-clusterissuer
|
||||||
|
spec:
|
||||||
|
selfSigned: {}
|
||||||
|
{{- end }}
|
||||||
+7
-14
@@ -1,22 +1,16 @@
|
|||||||
{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}
|
{{- if .Values.global.enableSecurity }}
|
||||||
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
apiVersion: certmanager.k8s.io/v1alpha1
|
||||||
kind: Certificate
|
kind: Certificate
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "seaweedfs.name" . }}-client-cert
|
name: {{ template "seaweedfs.name" . }}-client-cert
|
||||||
namespace: {{ .Release.Namespace }}
|
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 }}
|
|
||||||
spec:
|
spec:
|
||||||
secretName: {{ template "seaweedfs.name" . }}-client-cert
|
secretName: {{ template "seaweedfs.name" . }}-client-cert
|
||||||
issuerRef:
|
issuerRef:
|
||||||
name: {{ template "seaweedfs.name" . }}-ca-issuer
|
name: {{ template "seaweedfs.name" . }}-clusterissuer
|
||||||
kind: Issuer
|
kind: ClusterIssuer
|
||||||
commonName: {{ .Values.certificates.commonName }}
|
commonName: {{ .Values.certificates.commonName }}
|
||||||
subject:
|
organization:
|
||||||
organizations:
|
|
||||||
- "SeaweedFS CA"
|
- "SeaweedFS CA"
|
||||||
dnsNames:
|
dnsNames:
|
||||||
- '*.{{ .Release.Namespace }}'
|
- '*.{{ .Release.Namespace }}'
|
||||||
@@ -32,9 +26,8 @@ spec:
|
|||||||
- {{ . }}
|
- {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
privateKey:
|
keyAlgorithm: {{ .Values.certificates.keyAlgorithm }}
|
||||||
algorithm: {{ .Values.certificates.keyAlgorithm }}
|
keySize: {{ .Values.certificates.keySize }}
|
||||||
size: {{ .Values.certificates.keySize }}
|
|
||||||
duration: {{ .Values.certificates.duration }}
|
duration: {{ .Values.certificates.duration }}
|
||||||
renewBefore: {{ .Values.certificates.renewBefore }}
|
renewBefore: {{ .Values.certificates.renewBefore }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
+7
-15
@@ -1,23 +1,16 @@
|
|||||||
{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}
|
{{- if .Values.global.enableSecurity }}
|
||||||
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
apiVersion: certmanager.k8s.io/v1alpha1
|
||||||
kind: Certificate
|
kind: Certificate
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "seaweedfs.name" . }}-filer-cert
|
name: {{ template "seaweedfs.name" . }}-filer-cert
|
||||||
namespace: {{ .Release.Namespace }}
|
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: filer
|
|
||||||
spec:
|
spec:
|
||||||
secretName: {{ template "seaweedfs.name" . }}-filer-cert
|
secretName: {{ template "seaweedfs.name" . }}-filer-cert
|
||||||
issuerRef:
|
issuerRef:
|
||||||
name: {{ template "seaweedfs.name" . }}-ca-issuer
|
name: {{ template "seaweedfs.name" . }}-clusterissuer
|
||||||
kind: Issuer
|
kind: ClusterIssuer
|
||||||
commonName: {{ .Values.certificates.commonName }}
|
commonName: {{ .Values.certificates.commonName }}
|
||||||
subject:
|
organization:
|
||||||
organizations:
|
|
||||||
- "SeaweedFS CA"
|
- "SeaweedFS CA"
|
||||||
dnsNames:
|
dnsNames:
|
||||||
- '*.{{ .Release.Namespace }}'
|
- '*.{{ .Release.Namespace }}'
|
||||||
@@ -33,9 +26,8 @@ spec:
|
|||||||
- {{ . }}
|
- {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
privateKey:
|
keyAlgorithm: {{ .Values.certificates.keyAlgorithm }}
|
||||||
algorithm: {{ .Values.certificates.keyAlgorithm }}
|
keySize: {{ .Values.certificates.keySize }}
|
||||||
size: {{ .Values.certificates.keySize }}
|
|
||||||
duration: {{ .Values.certificates.duration }}
|
duration: {{ .Values.certificates.duration }}
|
||||||
renewBefore: {{ .Values.certificates.renewBefore }}
|
renewBefore: {{ .Values.certificates.renewBefore }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
+4
-7
@@ -4,11 +4,8 @@ metadata:
|
|||||||
name: {{ template "seaweedfs.name" . }}-filer-client
|
name: {{ template "seaweedfs.name" . }}-filer-client
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
component: filer
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
||||||
app.kubernetes.io/component: filer
|
|
||||||
{{- if .Values.filer.metricsPort }}
|
{{- if .Values.filer.metricsPort }}
|
||||||
monitoring: "true"
|
monitoring: "true"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -30,5 +27,5 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- end }}
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
app.kubernetes.io/component: filer
|
component: filer
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
|
||||||
|
name: {{ template "seaweedfs.name" . }}-filer
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app: {{ template "seaweedfs.name" . }}
|
||||||
|
component: filer
|
||||||
|
spec:
|
||||||
|
clusterIP: None
|
||||||
|
publishNotReadyAddresses: true
|
||||||
|
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
|
||||||
|
{{- if .Values.filer.metricsPort }}
|
||||||
|
- name: "metrics"
|
||||||
|
port: {{ .Values.filer.metricsPort }}
|
||||||
|
targetPort: {{ .Values.filer.metricsPort }}
|
||||||
|
protocol: TCP
|
||||||
|
{{- end }}
|
||||||
|
selector:
|
||||||
|
app: {{ template "seaweedfs.name" . }}
|
||||||
|
component: filer
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{{- if .Values.filer.metricsPort }}
|
||||||
|
{{- if .Values.global.monitoring.enabled }}
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-filer
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app: {{ template "seaweedfs.name" . }}
|
||||||
|
component: filer
|
||||||
|
spec:
|
||||||
|
endpoints:
|
||||||
|
- interval: 30s
|
||||||
|
port: metrics
|
||||||
|
scrapeTimeout: 5s
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: {{ template "seaweedfs.name" . }}
|
||||||
|
component: filer
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
+33
-59
@@ -5,14 +5,13 @@ metadata:
|
|||||||
name: {{ template "seaweedfs.name" . }}-filer
|
name: {{ template "seaweedfs.name" . }}-filer
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ template "seaweedfs.chart" . }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: filer
|
|
||||||
spec:
|
spec:
|
||||||
serviceName: {{ template "seaweedfs.name" . }}-filer
|
serviceName: {{ template "seaweedfs.name" . }}-filer
|
||||||
podManagementPolicy: {{ .Values.filer.podManagementPolicy }}
|
podManagementPolicy: Parallel
|
||||||
replicas: {{ .Values.filer.replicas }}
|
replicas: {{ .Values.filer.replicas }}
|
||||||
{{- if (gt (int .Values.filer.updatePartition) 0) }}
|
{{- if (gt (int .Values.filer.updatePartition) 0) }}
|
||||||
updateStrategy:
|
updateStrategy:
|
||||||
@@ -22,17 +21,17 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ template "seaweedfs.chart" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: filer
|
component: filer
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ template "seaweedfs.chart" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: filer
|
component: filer
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: {{ default .Values.global.restartPolicy .Values.filer.restartPolicy }}
|
restartPolicy: {{ default .Values.global.restartPolicy .Values.filer.restartPolicy }}
|
||||||
{{- if .Values.filer.affinity }}
|
{{- if .Values.filer.affinity }}
|
||||||
@@ -43,18 +42,16 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
{{ tpl .Values.filer.tolerations . | nindent 8 | trim }}
|
{{ tpl .Values.filer.tolerations . | nindent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
|
{{- if .Values.global.imagePullSecrets }}
|
||||||
{{- if .Values.global.createClusterRole }}
|
imagePullSecrets:
|
||||||
serviceAccountName: seaweedfs-rw-sa #hack for delete pod master after migration
|
- name: {{ .Values.global.imagePullSecrets }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
serviceAccountName: seaweedfs-rw-sa #hack for delete pod master after migration
|
||||||
terminationGracePeriodSeconds: 60
|
terminationGracePeriodSeconds: 60
|
||||||
{{- if .Values.filer.priorityClassName }}
|
{{- if .Values.filer.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.filer.priorityClassName | quote }}
|
priorityClassName: {{ .Values.filer.priorityClassName | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
enableServiceLinks: false
|
enableServiceLinks: false
|
||||||
{{- if .Values.filer.serviceAccountName }}
|
|
||||||
serviceAccountName: {{ .Values.filer.serviceAccountName | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.filer.initContainers }}
|
{{- if .Values.filer.initContainers }}
|
||||||
initContainers:
|
initContainers:
|
||||||
{{ tpl .Values.filer.initContainers . | nindent 8 | trim }}
|
{{ tpl .Values.filer.initContainers . | nindent 8 | trim }}
|
||||||
@@ -91,12 +88,7 @@ spec:
|
|||||||
{{- if .Values.filer.extraEnvironmentVars }}
|
{{- if .Values.filer.extraEnvironmentVars }}
|
||||||
{{- range $key, $value := .Values.filer.extraEnvironmentVars }}
|
{{- range $key, $value := .Values.filer.extraEnvironmentVars }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
{{- if kindIs "string" $value }}
|
|
||||||
value: {{ $value | quote }}
|
value: {{ $value | quote }}
|
||||||
{{- else }}
|
|
||||||
valueFrom:
|
|
||||||
{{ toYaml $value | nindent 16 | trim }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.global.extraEnvironmentVars }}
|
{{- if .Values.global.extraEnvironmentVars }}
|
||||||
@@ -105,12 +97,6 @@ spec:
|
|||||||
value: {{ $value | quote }}
|
value: {{ $value | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.filer.secretExtraEnvironmentVars }}
|
|
||||||
{{- range $key, $value := .Values.filer.secretExtraEnvironmentVars }}
|
|
||||||
- name: {{ $key }}
|
|
||||||
valueFrom: {{ toYaml $value | nindent 16 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
command:
|
command:
|
||||||
- "/bin/sh"
|
- "/bin/sh"
|
||||||
- "-ec"
|
- "-ec"
|
||||||
@@ -156,9 +142,6 @@ spec:
|
|||||||
-encryptVolumeData \
|
-encryptVolumeData \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
-ip=${POD_IP} \
|
-ip=${POD_IP} \
|
||||||
{{- if .Values.filer.filerGroup}}
|
|
||||||
-filerGroup={{ .Values.filer.filerGroup}} \
|
|
||||||
{{- 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 }} \
|
||||||
@@ -166,9 +149,6 @@ spec:
|
|||||||
-s3.domainName={{ .Values.filer.s3.domainName }} \
|
-s3.domainName={{ .Values.filer.s3.domainName }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.global.enableSecurity }}
|
{{- if .Values.global.enableSecurity }}
|
||||||
{{- if .Values.filer.s3.httpsPort }}
|
|
||||||
-s3.port.https={{ .Values.filer.s3.httpsPort }} \
|
|
||||||
{{- end }}
|
|
||||||
-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 }}
|
||||||
@@ -182,16 +162,14 @@ spec:
|
|||||||
-s3.auditLogConfig=/etc/sw/filer_s3_auditLogConfig.json \
|
-s3.auditLogConfig=/etc/sw/filer_s3_auditLogConfig.json \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
-master={{ 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 }}
|
-master={{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- if eq .Values.filer.logs.type "hostPath" }}
|
|
||||||
- name: seaweedfs-filer-log-volume
|
- name: seaweedfs-filer-log-volume
|
||||||
mountPath: "/logs/"
|
mountPath: "/logs/"
|
||||||
{{- end }}
|
|
||||||
- mountPath: /etc/sw
|
- mountPath: /etc/sw
|
||||||
name: config-users
|
name: config-users
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- if (or .Values.filer.enablePVC (or (eq .Values.filer.data.type "hostPath") (eq .Values.filer.data.type "persistentVolumeClaim"))) }}
|
{{- if .Values.filer.enablePVC }}
|
||||||
- name: data-filer
|
- name: data-filer
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -224,30 +202,26 @@ spec:
|
|||||||
name: metrics
|
name: metrics
|
||||||
- containerPort: {{ .Values.filer.grpcPort }}
|
- containerPort: {{ .Values.filer.grpcPort }}
|
||||||
#name: swfs-filer-grpc
|
#name: swfs-filer-grpc
|
||||||
{{- if .Values.filer.readinessProbe.enabled }}
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: {{ .Values.filer.readinessProbe.httpGet.path }}
|
path: /
|
||||||
port: {{ .Values.filer.port }}
|
port: {{ .Values.filer.port }}
|
||||||
scheme: {{ .Values.filer.readinessProbe.scheme }}
|
scheme: HTTP
|
||||||
initialDelaySeconds: {{ .Values.filer.readinessProbe.initialDelaySeconds }}
|
initialDelaySeconds: 10
|
||||||
periodSeconds: {{ .Values.filer.readinessProbe.periodSeconds }}
|
periodSeconds: 15
|
||||||
successThreshold: {{ .Values.filer.readinessProbe.successThreshold }}
|
successThreshold: 1
|
||||||
failureThreshold: {{ .Values.filer.readinessProbe.failureThreshold }}
|
failureThreshold: 100
|
||||||
timeoutSeconds: {{ .Values.filer.readinessProbe.timeoutSeconds }}
|
timeoutSeconds: 10
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.filer.livenessProbe.enabled }}
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: {{ .Values.filer.livenessProbe.httpGet.path }}
|
path: /
|
||||||
port: {{ .Values.filer.port }}
|
port: {{ .Values.filer.port }}
|
||||||
scheme: {{ .Values.filer.livenessProbe.scheme }}
|
scheme: HTTP
|
||||||
initialDelaySeconds: {{ .Values.filer.livenessProbe.initialDelaySeconds }}
|
initialDelaySeconds: 20
|
||||||
periodSeconds: {{ .Values.filer.livenessProbe.periodSeconds }}
|
periodSeconds: 30
|
||||||
successThreshold: {{ .Values.filer.livenessProbe.successThreshold }}
|
successThreshold: 1
|
||||||
failureThreshold: {{ .Values.filer.livenessProbe.failureThreshold }}
|
failureThreshold: 5
|
||||||
timeoutSeconds: {{ .Values.filer.livenessProbe.timeoutSeconds }}
|
timeoutSeconds: 10
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.filer.resources }}
|
{{- if .Values.filer.resources }}
|
||||||
resources:
|
resources:
|
||||||
{{ tpl .Values.filer.resources . | nindent 12 | trim }}
|
{{ tpl .Values.filer.resources . | nindent 12 | trim }}
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
{{- if .Values.filer.ingress.enabled }}
|
||||||
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
{{- else }}
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
{{- end }}
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: ingress-{{ template "seaweedfs.name" . }}-filer
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
annotations:
|
||||||
|
{{ omit .Values.filer.ingress.annotations "kubernetes.io/ingress.class" | toYaml | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
ingressClassName: {{ .Values.filer.ingress.className | quote }}
|
||||||
|
rules:
|
||||||
|
- http:
|
||||||
|
paths:
|
||||||
|
- path: /sw-filer/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
|
service:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-filer
|
||||||
|
port:
|
||||||
|
number: {{ .Values.filer.port }}
|
||||||
|
#name:
|
||||||
|
{{- else }}
|
||||||
|
serviceName: {{ template "seaweedfs.name" . }}-filer
|
||||||
|
servicePort: {{ .Values.filer.port }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
---
|
||||||
|
{{- if .Values.master.ingress.enabled }}
|
||||||
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
{{- else }}
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
{{- end }}
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: ingress-{{ template "seaweedfs.name" . }}-master
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
annotations:
|
||||||
|
{{ omit .Values.master.ingress.annotations "kubernetes.io/ingress.class" | toYaml | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
ingressClassName: {{ .Values.master.ingress.className | quote }}
|
||||||
|
rules:
|
||||||
|
- http:
|
||||||
|
paths:
|
||||||
|
- path: /sw-master/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
|
service:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-master
|
||||||
|
port:
|
||||||
|
number: {{ .Values.master.port }}
|
||||||
|
#name:
|
||||||
|
{{- else }}
|
||||||
|
serviceName: {{ template "seaweedfs.name" . }}-master
|
||||||
|
servicePort: {{ .Values.master.port }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
+7
-15
@@ -1,23 +1,16 @@
|
|||||||
{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}
|
{{- if .Values.global.enableSecurity }}
|
||||||
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
apiVersion: certmanager.k8s.io/v1alpha1
|
||||||
kind: Certificate
|
kind: Certificate
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "seaweedfs.name" . }}-master-cert
|
name: {{ template "seaweedfs.name" . }}-master-cert
|
||||||
namespace: {{ .Release.Namespace }}
|
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: master
|
|
||||||
spec:
|
spec:
|
||||||
secretName: {{ template "seaweedfs.name" . }}-master-cert
|
secretName: {{ template "seaweedfs.name" . }}-master-cert
|
||||||
issuerRef:
|
issuerRef:
|
||||||
name: {{ template "seaweedfs.name" . }}-ca-issuer
|
name: {{ template "seaweedfs.name" . }}-clusterissuer
|
||||||
kind: Issuer
|
kind: ClusterIssuer
|
||||||
commonName: {{ .Values.certificates.commonName }}
|
commonName: {{ .Values.certificates.commonName }}
|
||||||
subject:
|
organization:
|
||||||
organizations:
|
|
||||||
- "SeaweedFS CA"
|
- "SeaweedFS CA"
|
||||||
dnsNames:
|
dnsNames:
|
||||||
- '*.{{ .Release.Namespace }}'
|
- '*.{{ .Release.Namespace }}'
|
||||||
@@ -33,9 +26,8 @@ spec:
|
|||||||
- {{ . }}
|
- {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
privateKey:
|
keyAlgorithm: {{ .Values.certificates.keyAlgorithm }}
|
||||||
algorithm: {{ .Values.certificates.keyAlgorithm }}
|
keySize: {{ .Values.certificates.keySize }}
|
||||||
size: {{ .Values.certificates.keySize }}
|
|
||||||
duration: {{ .Values.certificates.duration }}
|
duration: {{ .Values.certificates.duration }}
|
||||||
renewBefore: {{ .Values.certificates.renewBefore }}
|
renewBefore: {{ .Values.certificates.renewBefore }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
+4
-6
@@ -4,10 +4,8 @@ metadata:
|
|||||||
name: {{ template "seaweedfs.name" . }}-master
|
name: {{ template "seaweedfs.name" . }}-master
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
app.kubernetes.io/component: master
|
component: master
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
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"
|
||||||
spec:
|
spec:
|
||||||
@@ -29,5 +27,5 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- end }}
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
app.kubernetes.io/component: master
|
component: master
|
||||||
+2
-5
@@ -6,11 +6,8 @@ metadata:
|
|||||||
name: {{ template "seaweedfs.name" . }}-master
|
name: {{ template "seaweedfs.name" . }}-master
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
component: master
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
||||||
app.kubernetes.io/component: master
|
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- interval: 30s
|
- interval: 30s
|
||||||
+34
-47
@@ -5,13 +5,13 @@ metadata:
|
|||||||
name: {{ template "seaweedfs.name" . }}-master
|
name: {{ template "seaweedfs.name" . }}-master
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ template "seaweedfs.chart" . }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
serviceName: {{ template "seaweedfs.name" . }}-master
|
serviceName: {{ template "seaweedfs.name" . }}-master
|
||||||
podManagementPolicy: {{ .Values.master.podManagementPolicy }}
|
podManagementPolicy: Parallel
|
||||||
replicas: {{ .Values.master.replicas }}
|
replicas: {{ .Values.master.replicas }}
|
||||||
{{- if (gt (int .Values.master.updatePartition) 0) }}
|
{{- if (gt (int .Values.master.updatePartition) 0) }}
|
||||||
updateStrategy:
|
updateStrategy:
|
||||||
@@ -21,17 +21,17 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ template "seaweedfs.chart" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: master
|
component: master
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ template "seaweedfs.chart" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: master
|
component: master
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: {{ default .Values.global.restartPolicy .Values.master.restartPolicy }}
|
restartPolicy: {{ default .Values.global.restartPolicy .Values.master.restartPolicy }}
|
||||||
{{- if .Values.master.affinity }}
|
{{- if .Values.master.affinity }}
|
||||||
@@ -42,15 +42,15 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
{{ tpl .Values.master.tolerations . | nindent 8 | trim }}
|
{{ tpl .Values.master.tolerations . | nindent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
|
{{- if .Values.global.imagePullSecrets }}
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: {{ .Values.global.imagePullSecrets }}
|
||||||
|
{{- end }}
|
||||||
terminationGracePeriodSeconds: 60
|
terminationGracePeriodSeconds: 60
|
||||||
{{- if .Values.master.priorityClassName }}
|
{{- if .Values.master.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.master.priorityClassName | quote }}
|
priorityClassName: {{ .Values.master.priorityClassName | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
enableServiceLinks: false
|
enableServiceLinks: false
|
||||||
{{- if .Values.master.serviceAccountName }}
|
|
||||||
serviceAccountName: {{ .Values.master.serviceAccountName | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.master.initContainers }}
|
{{- if .Values.master.initContainers }}
|
||||||
initContainers:
|
initContainers:
|
||||||
{{ tpl .Values.master.initContainers . | nindent 8 | trim }}
|
{{ tpl .Values.master.initContainers . | nindent 8 | trim }}
|
||||||
@@ -133,19 +133,13 @@ spec:
|
|||||||
{{- 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 \
|
||||||
-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:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name : data-{{ .Release.Namespace }}
|
- name : data-{{ .Release.Namespace }}
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
{{- if eq .Values.master.logs.type "hostPath" }}
|
|
||||||
- name: seaweedfs-master-log-volume
|
- name: seaweedfs-master-log-volume
|
||||||
mountPath: "/logs/"
|
mountPath: "/logs/"
|
||||||
{{- end }}
|
|
||||||
- name: master-config
|
|
||||||
readOnly: true
|
|
||||||
mountPath: /etc/seaweedfs/master.toml
|
|
||||||
subPath: master.toml
|
|
||||||
{{- if .Values.global.enableSecurity }}
|
{{- if .Values.global.enableSecurity }}
|
||||||
- name: security-config
|
- name: security-config
|
||||||
readOnly: true
|
readOnly: true
|
||||||
@@ -177,30 +171,26 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
- containerPort: {{ .Values.master.grpcPort }}
|
- containerPort: {{ .Values.master.grpcPort }}
|
||||||
#name: swfs-master-grpc
|
#name: swfs-master-grpc
|
||||||
{{- if .Values.master.readinessProbe.enabled }}
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: {{ .Values.master.readinessProbe.httpGet.path }}
|
path: /cluster/status
|
||||||
port: {{ .Values.master.port }}
|
port: {{ .Values.master.port }}
|
||||||
scheme: {{ .Values.master.readinessProbe.scheme }}
|
scheme: HTTP
|
||||||
initialDelaySeconds: {{ .Values.master.readinessProbe.initialDelaySeconds }}
|
initialDelaySeconds: 10
|
||||||
periodSeconds: {{ .Values.master.readinessProbe.periodSeconds }}
|
periodSeconds: 45
|
||||||
successThreshold: {{ .Values.master.readinessProbe.successThreshold }}
|
successThreshold: 2
|
||||||
failureThreshold: {{ .Values.master.readinessProbe.failureThreshold }}
|
failureThreshold: 100
|
||||||
timeoutSeconds: {{ .Values.master.readinessProbe.timeoutSeconds }}
|
timeoutSeconds: 10
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.master.livenessProbe.enabled }}
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: {{ .Values.master.livenessProbe.httpGet.path }}
|
path: /cluster/status
|
||||||
port: {{ .Values.master.port }}
|
port: {{ .Values.master.port }}
|
||||||
scheme: {{ .Values.master.livenessProbe.scheme }}
|
scheme: HTTP
|
||||||
initialDelaySeconds: {{ .Values.master.livenessProbe.initialDelaySeconds }}
|
initialDelaySeconds: 20
|
||||||
periodSeconds: {{ .Values.master.livenessProbe.periodSeconds }}
|
periodSeconds: 30
|
||||||
successThreshold: {{ .Values.master.livenessProbe.successThreshold }}
|
successThreshold: 1
|
||||||
failureThreshold: {{ .Values.master.livenessProbe.failureThreshold }}
|
failureThreshold: 4
|
||||||
timeoutSeconds: {{ .Values.master.livenessProbe.timeoutSeconds }}
|
timeoutSeconds: 10
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.master.resources }}
|
{{- if .Values.master.resources }}
|
||||||
resources:
|
resources:
|
||||||
{{ tpl .Values.master.resources . | nindent 12 | trim }}
|
{{ tpl .Values.master.resources . | nindent 12 | trim }}
|
||||||
@@ -220,9 +210,6 @@ spec:
|
|||||||
path: {{ .Values.master.data.hostPathPrefix }}/seaweed-master/
|
path: {{ .Values.master.data.hostPathPrefix }}/seaweed-master/
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: master-config
|
|
||||||
configMap:
|
|
||||||
name: {{ template "seaweedfs.name" . }}-master-config
|
|
||||||
{{- if .Values.global.enableSecurity }}
|
{{- if .Values.global.enableSecurity }}
|
||||||
- name: security-config
|
- name: security-config
|
||||||
configMap:
|
configMap:
|
||||||
@@ -249,7 +236,7 @@ spec:
|
|||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ tpl .Values.master.nodeSelector . | indent 8 | trim }}
|
{{ tpl .Values.master.nodeSelector . | indent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $pvc_exists := include "master.pvc_exists" . -}}
|
{{- $pvc_exists := include "volume.pvc_exists" . -}}
|
||||||
{{- if $pvc_exists }}
|
{{- if $pvc_exists }}
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
{{- if eq .Values.master.data.type "persistentVolumeClaim"}}
|
{{- if eq .Values.master.data.type "persistentVolumeClaim"}}
|
||||||
+31
-40
@@ -5,40 +5,40 @@ metadata:
|
|||||||
name: {{ template "seaweedfs.name" . }}-s3
|
name: {{ template "seaweedfs.name" . }}-s3
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ template "seaweedfs.chart" . }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.s3.replicas }}
|
replicas: {{ .Values.s3.replicas }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ template "seaweedfs.chart" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: s3
|
component: s3
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ template "seaweedfs.chart" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: s3
|
component: s3
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: {{ default .Values.global.restartPolicy .Values.s3.restartPolicy }}
|
restartPolicy: {{ default .Values.global.restartPolicy .Values.s3.restartPolicy }}
|
||||||
{{- if .Values.s3.tolerations }}
|
{{- if .Values.s3.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{ tpl .Values.s3.tolerations . | nindent 8 | trim }}
|
{{ tpl .Values.s3.tolerations . | nindent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
|
{{- if .Values.global.imagePullSecrets }}
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: {{ .Values.global.imagePullSecrets }}
|
||||||
|
{{- end }}
|
||||||
terminationGracePeriodSeconds: 10
|
terminationGracePeriodSeconds: 10
|
||||||
{{- if .Values.s3.priorityClassName }}
|
{{- if .Values.s3.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.s3.priorityClassName | quote }}
|
priorityClassName: {{ .Values.s3.priorityClassName | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
enableServiceLinks: false
|
enableServiceLinks: false
|
||||||
{{- if .Values.s3.serviceAccountName }}
|
|
||||||
serviceAccountName: {{ .Values.s3.serviceAccountName | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.s3.initContainers }}
|
{{- if .Values.s3.initContainers }}
|
||||||
initContainers:
|
initContainers:
|
||||||
{{ tpl .Values.s3.initContainers . | nindent 8 | trim }}
|
{{ tpl .Values.s3.initContainers . | nindent 8 | trim }}
|
||||||
@@ -90,9 +90,6 @@ spec:
|
|||||||
-metricsPort {{ .Values.s3.metricsPort }} \
|
-metricsPort {{ .Values.s3.metricsPort }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.global.enableSecurity }}
|
{{- if .Values.global.enableSecurity }}
|
||||||
{{- if .Values.s3.httpsPort }}
|
|
||||||
-port.https={{ .Values.s3.httpsPort }} \
|
|
||||||
{{- end }}
|
|
||||||
-cert.file=/usr/local/share/ca-certificates/client/tls.crt \
|
-cert.file=/usr/local/share/ca-certificates/client/tls.crt \
|
||||||
-key.file=/usr/local/share/ca-certificates/client/tls.key \
|
-key.file=/usr/local/share/ca-certificates/client/tls.key \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -108,12 +105,10 @@ spec:
|
|||||||
{{- if .Values.s3.auditLogConfig }}
|
{{- if .Values.s3.auditLogConfig }}
|
||||||
-auditLogConfig=/etc/sw/s3_auditLogConfig.json \
|
-auditLogConfig=/etc/sw/s3_auditLogConfig.json \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
-filer={{ template "seaweedfs.name" . }}-filer-client.{{ .Release.Namespace }}:{{ .Values.filer.port }}
|
-filer={{ template "seaweedfs.name" . }}-filer-client:{{ .Values.filer.port }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- if eq .Values.s3.logs.type "hostPath" }}
|
|
||||||
- name: logs
|
- name: logs
|
||||||
mountPath: "/logs/"
|
mountPath: "/logs/"
|
||||||
{{- end }}
|
|
||||||
- mountPath: /etc/sw
|
- mountPath: /etc/sw
|
||||||
name: config-users
|
name: config-users
|
||||||
readOnly: true
|
readOnly: true
|
||||||
@@ -146,30 +141,26 @@ spec:
|
|||||||
- containerPort: {{ .Values.s3.metricsPort }}
|
- containerPort: {{ .Values.s3.metricsPort }}
|
||||||
name: "metrics"
|
name: "metrics"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.s3.readinessProbe.enabled }}
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: {{ .Values.s3.readinessProbe.httpGet.path }}
|
path: /status
|
||||||
port: {{ .Values.s3.port }}
|
port: {{ .Values.s3.port }}
|
||||||
scheme: {{ .Values.s3.readinessProbe.scheme }}
|
scheme: HTTP
|
||||||
initialDelaySeconds: {{ .Values.s3.readinessProbe.initialDelaySeconds }}
|
initialDelaySeconds: 15
|
||||||
periodSeconds: {{ .Values.s3.readinessProbe.periodSeconds }}
|
periodSeconds: 15
|
||||||
successThreshold: {{ .Values.s3.readinessProbe.successThreshold }}
|
successThreshold: 1
|
||||||
failureThreshold: {{ .Values.s3.readinessProbe.failureThreshold }}
|
failureThreshold: 100
|
||||||
timeoutSeconds: {{ .Values.s3.readinessProbe.timeoutSeconds }}
|
timeoutSeconds: 10
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.s3.livenessProbe.enabled }}
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: {{ .Values.s3.livenessProbe.httpGet.path }}
|
path: /status
|
||||||
port: {{ .Values.s3.port }}
|
port: {{ .Values.s3.port }}
|
||||||
scheme: {{ .Values.s3.livenessProbe.scheme }}
|
scheme: HTTP
|
||||||
initialDelaySeconds: {{ .Values.s3.livenessProbe.initialDelaySeconds }}
|
initialDelaySeconds: 20
|
||||||
periodSeconds: {{ .Values.s3.livenessProbe.periodSeconds }}
|
periodSeconds: 60
|
||||||
successThreshold: {{ .Values.s3.livenessProbe.successThreshold }}
|
successThreshold: 1
|
||||||
failureThreshold: {{ .Values.s3.livenessProbe.failureThreshold }}
|
failureThreshold: 20
|
||||||
timeoutSeconds: {{ .Values.s3.livenessProbe.timeoutSeconds }}
|
timeoutSeconds: 10
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.s3.resources }}
|
{{- if .Values.s3.resources }}
|
||||||
resources:
|
resources:
|
||||||
{{ tpl .Values.s3.resources . | nindent 12 | trim }}
|
{{ tpl .Values.s3.resources . | nindent 12 | trim }}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-s3
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app: {{ template "seaweedfs.name" . }}
|
||||||
|
component: s3
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "swfs-s3"
|
||||||
|
port: {{ if .Values.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }}
|
||||||
|
targetPort: {{ if .Values.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }}
|
||||||
|
protocol: TCP
|
||||||
|
{{- if and .Values.s3.enabled .Values.s3.metricsPort }}
|
||||||
|
- name: "metrics"
|
||||||
|
port: {{ .Values.s3.metricsPort }}
|
||||||
|
targetPort: {{ .Values.s3.metricsPort }}
|
||||||
|
protocol: TCP
|
||||||
|
{{- end }}
|
||||||
|
selector:
|
||||||
|
app: {{ template "seaweedfs.name" . }}
|
||||||
|
component: {{ if .Values.s3.enabled }}s3{{ else }}filer{{ end }}
|
||||||
+2
-5
@@ -6,11 +6,8 @@ metadata:
|
|||||||
name: {{ template "seaweedfs.name" . }}-s3
|
name: {{ template "seaweedfs.name" . }}-s3
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
component: s3
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
||||||
app.kubernetes.io/component: s3
|
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- interval: 30s
|
- interval: 30s
|
||||||
File renamed without changes.
-6
@@ -12,12 +12,6 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
"helm.sh/resource-policy": keep
|
"helm.sh/resource-policy": keep
|
||||||
"helm.sh/hook": "pre-install"
|
"helm.sh/hook": "pre-install"
|
||||||
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: s3
|
|
||||||
stringData:
|
stringData:
|
||||||
admin_access_key_id: {{ $access_key_admin }}
|
admin_access_key_id: {{ $access_key_admin }}
|
||||||
admin_secret_access_key: {{ $secret_key_admin }}
|
admin_secret_access_key: {{ $secret_key_admin }}
|
||||||
-5
@@ -7,11 +7,6 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
"helm.sh/resource-policy": keep
|
"helm.sh/resource-policy": keep
|
||||||
"helm.sh/hook": "pre-install"
|
"helm.sh/hook": "pre-install"
|
||||||
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 }}
|
|
||||||
stringData:
|
stringData:
|
||||||
user: "YourSWUser"
|
user: "YourSWUser"
|
||||||
password: "HardCodedPassword"
|
password: "HardCodedPassword"
|
||||||
+4
-32
@@ -5,46 +5,18 @@ metadata:
|
|||||||
name: {{ template "seaweedfs.name" . }}-security-config
|
name: {{ template "seaweedfs.name" . }}-security-config
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ template "seaweedfs.chart" . }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
data:
|
data:
|
||||||
security.toml: |-
|
security.toml: |-
|
||||||
# this file is read by master, volume server, and filer
|
# this file is read by master, volume server, and filer
|
||||||
|
|
||||||
{{- if .Values.global.securityConfig.jwtSigning.volumeWrite }}
|
|
||||||
# the jwt signing key is read by master and volume server
|
# the jwt signing key is read by master and volume server
|
||||||
# a jwt expires in 10 seconds
|
# a jwt expires in 10 seconds
|
||||||
[jwt.signing]
|
[jwt.signing]
|
||||||
key = "{{ randAlphaNum 10 | b64enc }}"
|
key = "{{ randAlphaNum 10 | b64enc }}"
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{- if .Values.global.securityConfig.jwtSigning.volumeRead }}
|
|
||||||
# this jwt signing key is read by master and volume server, and it is used for read operations:
|
|
||||||
# - the Master server generates the JWT, which can be used to read a certain file on a volume server
|
|
||||||
# - the Volume server validates the JWT on reading
|
|
||||||
[jwt.signing.read]
|
|
||||||
key = "{{ randAlphaNum 10 | b64enc }}"
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{- if .Values.global.securityConfig.jwtSigning.filerWrite }}
|
|
||||||
# If this JWT key is configured, Filer only accepts writes over HTTP if they are signed with this JWT:
|
|
||||||
# - f.e. the S3 API Shim generates the JWT
|
|
||||||
# - the Filer server validates the JWT on writing
|
|
||||||
# the jwt defaults to expire after 10 seconds.
|
|
||||||
[jwt.filer_signing]
|
|
||||||
key = "{{ randAlphaNum 10 | b64enc }}"
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{- if .Values.global.securityConfig.jwtSigning.filerRead }}
|
|
||||||
# If this JWT key is configured, Filer only accepts reads over HTTP if they are signed with this JWT:
|
|
||||||
# - f.e. the S3 API Shim generates the JWT
|
|
||||||
# - the Filer server validates the JWT on writing
|
|
||||||
# the jwt defaults to expire after 10 seconds.
|
|
||||||
[jwt.filer_signing.read]
|
|
||||||
key = "{{ randAlphaNum 10 | b64enc }}"
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
# all grpc tls authentications are mutual
|
# all grpc tls authentications are mutual
|
||||||
# the values for the following ca, cert, and key are paths to the PERM files.
|
# the values for the following ca, cert, and key are paths to the PERM files.
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
#hack for delete pod master after migration
|
||||||
|
---
|
||||||
|
kind: ClusterRole
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: seaweedfs-rw-cr
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["pods"]
|
||||||
|
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: seaweedfs-rw-sa
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
---
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: system:serviceaccount:seaweedfs-rw-sa:default
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: seaweedfs-rw-sa
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: seaweedfs-rw-cr
|
||||||
+7
-15
@@ -1,23 +1,16 @@
|
|||||||
{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}
|
{{- if .Values.global.enableSecurity }}
|
||||||
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
apiVersion: certmanager.k8s.io/v1alpha1
|
||||||
kind: Certificate
|
kind: Certificate
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "seaweedfs.name" . }}-volume-cert
|
name: {{ template "seaweedfs.name" . }}-volume-cert
|
||||||
namespace: {{ .Release.Namespace }}
|
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: volume
|
|
||||||
spec:
|
spec:
|
||||||
secretName: {{ template "seaweedfs.name" . }}-volume-cert
|
secretName: {{ template "seaweedfs.name" . }}-volume-cert
|
||||||
issuerRef:
|
issuerRef:
|
||||||
name: {{ template "seaweedfs.name" . }}-ca-issuer
|
name: {{ template "seaweedfs.name" . }}-clusterissuer
|
||||||
kind: Issuer
|
kind: ClusterIssuer
|
||||||
commonName: {{ .Values.certificates.commonName }}
|
commonName: {{ .Values.certificates.commonName }}
|
||||||
subject:
|
organization:
|
||||||
organizations:
|
|
||||||
- "SeaweedFS CA"
|
- "SeaweedFS CA"
|
||||||
dnsNames:
|
dnsNames:
|
||||||
- '*.{{ .Release.Namespace }}'
|
- '*.{{ .Release.Namespace }}'
|
||||||
@@ -33,9 +26,8 @@ spec:
|
|||||||
- {{ . }}
|
- {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
privateKey:
|
keyAlgorithm: {{ .Values.certificates.keyAlgorithm }}
|
||||||
algorithm: {{ .Values.certificates.keyAlgorithm }}
|
keySize: {{ .Values.certificates.keySize }}
|
||||||
size: {{ .Values.certificates.keySize }}
|
|
||||||
duration: {{ .Values.certificates.duration }}
|
duration: {{ .Values.certificates.duration }}
|
||||||
renewBefore: {{ .Values.certificates.renewBefore }}
|
renewBefore: {{ .Values.certificates.renewBefore }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
+4
-7
@@ -4,13 +4,10 @@ metadata:
|
|||||||
name: {{ template "seaweedfs.name" . }}-volume
|
name: {{ template "seaweedfs.name" . }}-volume
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
app.kubernetes.io/component: volume
|
component: volume
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
||||||
spec:
|
spec:
|
||||||
clusterIP: None
|
clusterIP: None
|
||||||
internalTrafficPolicy: {{ .Values.volume.internalTrafficPolicy | default "Cluster" }}
|
|
||||||
ports:
|
ports:
|
||||||
- name: "swfs-volume"
|
- name: "swfs-volume"
|
||||||
port: {{ .Values.volume.port }}
|
port: {{ .Values.volume.port }}
|
||||||
@@ -27,5 +24,5 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- end }}
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
app.kubernetes.io/component: volume
|
component: volume
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{{- if .Values.volume.metricsPort }}
|
||||||
|
{{- if .Values.global.monitoring.enabled }}
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-volume
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app: {{ template "seaweedfs.name" . }}
|
||||||
|
component: volume
|
||||||
|
spec:
|
||||||
|
endpoints:
|
||||||
|
- interval: 30s
|
||||||
|
port: metrics
|
||||||
|
scrapeTimeout: 5s
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: {{ template "seaweedfs.name" . }}
|
||||||
|
component: volume
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
+33
-39
@@ -5,27 +5,27 @@ metadata:
|
|||||||
name: {{ template "seaweedfs.name" . }}-volume
|
name: {{ template "seaweedfs.name" . }}-volume
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ template "seaweedfs.chart" . }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
heritage: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
serviceName: {{ template "seaweedfs.name" . }}-volume
|
serviceName: {{ template "seaweedfs.name" . }}-volume
|
||||||
replicas: {{ .Values.volume.replicas }}
|
replicas: {{ .Values.volume.replicas }}
|
||||||
podManagementPolicy: {{ .Values.volume.podManagementPolicy }}
|
podManagementPolicy: Parallel
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ template "seaweedfs.chart" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: volume
|
component: volume
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
chart: {{ template "seaweedfs.chart" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: volume
|
component: volume
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.volume.affinity }}
|
{{- if .Values.volume.affinity }}
|
||||||
affinity:
|
affinity:
|
||||||
@@ -36,15 +36,15 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
{{ tpl .Values.volume.tolerations . | nindent 8 | trim }}
|
{{ tpl .Values.volume.tolerations . | nindent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
|
{{- if .Values.global.imagePullSecrets }}
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: {{ .Values.global.imagePullSecrets }}
|
||||||
|
{{- end }}
|
||||||
terminationGracePeriodSeconds: 150
|
terminationGracePeriodSeconds: 150
|
||||||
{{- if .Values.volume.priorityClassName }}
|
{{- if .Values.volume.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.volume.priorityClassName | quote }}
|
priorityClassName: {{ .Values.volume.priorityClassName | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
enableServiceLinks: false
|
enableServiceLinks: false
|
||||||
{{- if .Values.volume.serviceAccountName }}
|
|
||||||
serviceAccountName: {{ .Values.volume.serviceAccountName | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- $initContainers_exists := include "volume.initContainers_exists" . -}}
|
{{- $initContainers_exists := include "volume.initContainers_exists" . -}}
|
||||||
{{- if $initContainers_exists }}
|
{{- if $initContainers_exists }}
|
||||||
initContainers:
|
initContainers:
|
||||||
@@ -138,9 +138,9 @@ spec:
|
|||||||
-fileSizeLimitMB={{ .Values.volume.fileSizeLimitMB }} \
|
-fileSizeLimitMB={{ .Values.volume.fileSizeLimitMB }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
-minFreeSpacePercent={{ .Values.volume.minFreeSpacePercent }} \
|
-minFreeSpacePercent={{ .Values.volume.minFreeSpacePercent }} \
|
||||||
-ip=${POD_NAME}.${SEAWEEDFS_FULLNAME}-volume.{{ .Release.Namespace }} \
|
-ip=${POD_NAME}.${SEAWEEDFS_FULLNAME}-volume \
|
||||||
-compactionMBps={{ .Values.volume.compactionMBps }} \
|
-compactionMBps={{ .Values.volume.compactionMBps }} \
|
||||||
-mserver={{ 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 }}
|
-mserver={{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: "{{ .Values.volume.dir }}/"
|
mountPath: "{{ .Values.volume.dir }}/"
|
||||||
@@ -148,10 +148,8 @@ spec:
|
|||||||
- name: idx
|
- name: idx
|
||||||
mountPath: "{{ .Values.volume.dir_idx }}/"
|
mountPath: "{{ .Values.volume.dir_idx }}/"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if eq .Values.volume.logs.type "hostPath" }}
|
|
||||||
- name: logs
|
- name: logs
|
||||||
mountPath: "/logs/"
|
mountPath: "/logs/"
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.global.enableSecurity }}
|
{{- if .Values.global.enableSecurity }}
|
||||||
- name: security-config
|
- name: security-config
|
||||||
readOnly: true
|
readOnly: true
|
||||||
@@ -183,30 +181,26 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
- containerPort: {{ .Values.volume.grpcPort }}
|
- containerPort: {{ .Values.volume.grpcPort }}
|
||||||
name: swfs-vol-grpc
|
name: swfs-vol-grpc
|
||||||
{{- if .Values.volume.readinessProbe.enabled }}
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: {{ .Values.volume.readinessProbe.httpGet.path }}
|
path: /status
|
||||||
port: {{ .Values.volume.port }}
|
port: {{ .Values.volume.port }}
|
||||||
scheme: {{ .Values.volume.readinessProbe.scheme }}
|
scheme: HTTP
|
||||||
initialDelaySeconds: {{ .Values.volume.readinessProbe.initialDelaySeconds }}
|
initialDelaySeconds: 15
|
||||||
periodSeconds: {{ .Values.volume.readinessProbe.periodSeconds }}
|
periodSeconds: 90
|
||||||
successThreshold: {{ .Values.volume.readinessProbe.successThreshold }}
|
successThreshold: 1
|
||||||
failureThreshold: {{ .Values.volume.readinessProbe.failureThreshold }}
|
failureThreshold: 100
|
||||||
timeoutSeconds: {{ .Values.volume.readinessProbe.timeoutSeconds }}
|
timeoutSeconds: 30
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.volume.livenessProbe.enabled }}
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: {{ .Values.volume.livenessProbe.httpGet.path }}
|
path: /status
|
||||||
port: {{ .Values.volume.port }}
|
port: {{ .Values.volume.port }}
|
||||||
scheme: {{ .Values.volume.livenessProbe.scheme }}
|
scheme: HTTP
|
||||||
initialDelaySeconds: {{ .Values.volume.livenessProbe.initialDelaySeconds }}
|
initialDelaySeconds: 20
|
||||||
periodSeconds: {{ .Values.volume.livenessProbe.periodSeconds }}
|
periodSeconds: 90
|
||||||
successThreshold: {{ .Values.volume.livenessProbe.successThreshold }}
|
successThreshold: 1
|
||||||
failureThreshold: {{ .Values.volume.livenessProbe.failureThreshold }}
|
failureThreshold: 4
|
||||||
timeoutSeconds: {{ .Values.volume.livenessProbe.timeoutSeconds }}
|
timeoutSeconds: 30
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.volume.resources }}
|
{{- if .Values.volume.resources }}
|
||||||
resources:
|
resources:
|
||||||
{{ tpl .Values.volume.resources . | nindent 12 | trim }}
|
{{ tpl .Values.volume.resources . | nindent 12 | trim }}
|
||||||
@@ -1,23 +1,14 @@
|
|||||||
# Available parameters and their default values for the SeaweedFS chart.
|
# Available parameters and their default values for the SeaweedFS chart.
|
||||||
|
|
||||||
global:
|
global:
|
||||||
createClusterRole: true
|
|
||||||
registry: ""
|
registry: ""
|
||||||
repository: ""
|
repository: ""
|
||||||
imageName: chrislusf/seaweedfs
|
imageName: chrislusf/seaweedfs
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
imagePullSecrets: ""
|
imagePullSecrets: imagepullsecret
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
loggingLevel: 1
|
loggingLevel: 1
|
||||||
enableSecurity: false
|
enableSecurity: false
|
||||||
securityConfig:
|
|
||||||
jwtSigning:
|
|
||||||
volumeWrite: true
|
|
||||||
volumeRead: false
|
|
||||||
filerWrite: false
|
|
||||||
filerRead: false
|
|
||||||
certificates:
|
|
||||||
alphacrds: false
|
|
||||||
monitoring:
|
monitoring:
|
||||||
enabled: false
|
enabled: false
|
||||||
gatewayHost: null
|
gatewayHost: null
|
||||||
@@ -31,8 +22,8 @@ global:
|
|||||||
replicationPlacment: "001"
|
replicationPlacment: "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:9333"
|
||||||
WEED_CLUSTER_SW_FILER: "seaweedfs-filer-client.seaweedfs:8888"
|
WEED_CLUSTER_SW_FILER: "seaweedfs-filer-client:8888"
|
||||||
|
|
||||||
image:
|
image:
|
||||||
registry: ""
|
registry: ""
|
||||||
@@ -53,11 +44,11 @@ master:
|
|||||||
volumePreallocate: false
|
volumePreallocate: false
|
||||||
volumeSizeLimitMB: 1000
|
volumeSizeLimitMB: 1000
|
||||||
loggingOverrideLevel: null
|
loggingOverrideLevel: null
|
||||||
# number of seconds between heartbeats, default 5
|
#number of seconds between heartbeats, default 5
|
||||||
pulseSeconds: null
|
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
|
||||||
metricsIntervalSec: 15
|
metricsIntervalSec: 15
|
||||||
# replication type is XYZ:
|
# replication type is XYZ:
|
||||||
# X number of replica in other data centers
|
# X number of replica in other data centers
|
||||||
@@ -68,10 +59,6 @@ master:
|
|||||||
# Disable http request, only gRpc operations are allowed
|
# Disable http request, only gRpc operations are allowed
|
||||||
disableHttp: false
|
disableHttp: false
|
||||||
|
|
||||||
config: |-
|
|
||||||
# Enter any extra configuration for master.toml here.
|
|
||||||
# It may be be a multi-line string.
|
|
||||||
|
|
||||||
# can use ANY storage-class , example with local-path-provisioner
|
# can use ANY storage-class , example with local-path-provisioner
|
||||||
# data:
|
# data:
|
||||||
# type: "persistentVolumeClaim"
|
# type: "persistentVolumeClaim"
|
||||||
@@ -94,9 +81,6 @@ master:
|
|||||||
extraVolumes: ""
|
extraVolumes: ""
|
||||||
extraVolumeMounts: ""
|
extraVolumeMounts: ""
|
||||||
|
|
||||||
## Set podManagementPolicy
|
|
||||||
podManagementPolicy: Parallel
|
|
||||||
|
|
||||||
# Resource requests, limits, etc. for the master cluster placement. This
|
# Resource requests, limits, etc. for the master 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
|
||||||
@@ -115,9 +99,9 @@ master:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
- labelSelector:
|
- labelSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
release: "{{ .Release.Name }}"
|
||||||
app.kubernetes.io/component: master
|
component: master
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|
||||||
# Toleration Settings for master pods
|
# Toleration Settings for master pods
|
||||||
@@ -128,25 +112,19 @@ master:
|
|||||||
# nodeSelector labels for master pod assignment, formatted as a muli-line string.
|
# nodeSelector labels for master pod assignment, formatted as a muli-line string.
|
||||||
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
||||||
# Example:
|
# Example:
|
||||||
nodeSelector: |
|
|
||||||
beta.kubernetes.io/arch: amd64
|
|
||||||
# nodeSelector: |
|
# nodeSelector: |
|
||||||
# sw-backend: "true"
|
# beta.kubernetes.io/arch: amd64
|
||||||
|
nodeSelector: |
|
||||||
|
sw-backend: "true"
|
||||||
|
|
||||||
# used to assign priority to master pods
|
# used to assign priority to master pods
|
||||||
# ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
|
# ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
|
||||||
priorityClassName: ""
|
priorityClassName: ""
|
||||||
|
|
||||||
# used to assign a service account.
|
|
||||||
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
|
||||||
serviceAccountName: ""
|
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
className: "nginx"
|
className: "nginx"
|
||||||
# host: false for "*" hostname
|
annotations:
|
||||||
host: "master.seaweedfs.local"
|
|
||||||
annotations: |
|
|
||||||
nginx.ingress.kubernetes.io/auth-type: "basic"
|
nginx.ingress.kubernetes.io/auth-type: "basic"
|
||||||
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret"
|
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret"
|
||||||
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - SW-Master'
|
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - SW-Master'
|
||||||
@@ -169,32 +147,6 @@ master:
|
|||||||
WEED_MASTER_VOLUME_GROWTH_COPY_3: 3
|
WEED_MASTER_VOLUME_GROWTH_COPY_3: 3
|
||||||
WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1
|
WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1
|
||||||
|
|
||||||
# used to configure livenessProbe on master-server containers
|
|
||||||
#
|
|
||||||
livenessProbe:
|
|
||||||
enabled: true
|
|
||||||
httpGet:
|
|
||||||
path: /cluster/status
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 20
|
|
||||||
periodSeconds: 30
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: 4
|
|
||||||
timeoutSeconds: 10
|
|
||||||
|
|
||||||
# used to configure readinessProbe on master-server containers
|
|
||||||
#
|
|
||||||
readinessProbe:
|
|
||||||
enabled: true
|
|
||||||
httpGet:
|
|
||||||
path: /cluster/status
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 45
|
|
||||||
successThreshold: 2
|
|
||||||
failureThreshold: 100
|
|
||||||
timeoutSeconds: 10
|
|
||||||
|
|
||||||
volume:
|
volume:
|
||||||
enabled: true
|
enabled: true
|
||||||
repository: null
|
repository: null
|
||||||
@@ -272,9 +224,6 @@ volume:
|
|||||||
extraVolumes: ""
|
extraVolumes: ""
|
||||||
extraVolumeMounts: ""
|
extraVolumeMounts: ""
|
||||||
|
|
||||||
## Set podManagementPolicy
|
|
||||||
podManagementPolicy: Parallel
|
|
||||||
|
|
||||||
# Affinity Settings
|
# Affinity Settings
|
||||||
# Commenting out or setting as empty the affinity variable, will allow
|
# Commenting out or setting as empty the affinity variable, will allow
|
||||||
# deployment to single node services such as Minikube
|
# deployment to single node services such as Minikube
|
||||||
@@ -283,9 +232,9 @@ volume:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
- labelSelector:
|
- labelSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
release: "{{ .Release.Name }}"
|
||||||
app.kubernetes.io/component: volume
|
component: volume
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|
||||||
# Resource requests, limits, etc. for the server cluster placement. This
|
# Resource requests, limits, etc. for the server cluster placement. This
|
||||||
@@ -302,44 +251,15 @@ volume:
|
|||||||
# nodeSelector labels for server pod assignment, formatted as a muli-line string.
|
# nodeSelector labels for server pod assignment, formatted as a muli-line string.
|
||||||
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
||||||
# Example:
|
# Example:
|
||||||
nodeSelector: |
|
|
||||||
beta.kubernetes.io/arch: amd64
|
|
||||||
# nodeSelector: |
|
# nodeSelector: |
|
||||||
# sw-volume: "true"
|
# beta.kubernetes.io/arch: amd64
|
||||||
|
nodeSelector: |
|
||||||
|
sw-volume: "true"
|
||||||
|
|
||||||
# used to assign priority to server pods
|
# used to assign priority to server pods
|
||||||
# ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
|
# ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
|
||||||
priorityClassName: ""
|
priorityClassName: ""
|
||||||
|
|
||||||
# used to assign a service account.
|
|
||||||
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
|
||||||
serviceAccountName: ""
|
|
||||||
|
|
||||||
# used to configure livenessProbe on volume-server containers
|
|
||||||
#
|
|
||||||
livenessProbe:
|
|
||||||
enabled: true
|
|
||||||
httpGet:
|
|
||||||
path: /status
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 20
|
|
||||||
periodSeconds: 90
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: 4
|
|
||||||
timeoutSeconds: 30
|
|
||||||
|
|
||||||
# used to configure readinessProbe on volume-server containers
|
|
||||||
#
|
|
||||||
readinessProbe:
|
|
||||||
enabled: true
|
|
||||||
httpGet:
|
|
||||||
path: /status
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 15
|
|
||||||
periodSeconds: 15
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: 100
|
|
||||||
timeoutSeconds: 30
|
|
||||||
|
|
||||||
filer:
|
filer:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -353,7 +273,6 @@ filer:
|
|||||||
grpcPort: 18888
|
grpcPort: 18888
|
||||||
metricsPort: 9327
|
metricsPort: 9327
|
||||||
loggingOverrideLevel: null
|
loggingOverrideLevel: null
|
||||||
filerGroup: ""
|
|
||||||
# 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
|
||||||
@@ -408,9 +327,6 @@ filer:
|
|||||||
extraVolumes: ""
|
extraVolumes: ""
|
||||||
extraVolumeMounts: ""
|
extraVolumeMounts: ""
|
||||||
|
|
||||||
## Set podManagementPolicy
|
|
||||||
podManagementPolicy: Parallel
|
|
||||||
|
|
||||||
# Affinity Settings
|
# Affinity Settings
|
||||||
# Commenting out or setting as empty the affinity variable, will allow
|
# Commenting out or setting as empty the affinity variable, will allow
|
||||||
# deployment to single node services such as Minikube
|
# deployment to single node services such as Minikube
|
||||||
@@ -419,9 +335,9 @@ filer:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
- labelSelector:
|
- labelSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
release: "{{ .Release.Name }}"
|
||||||
app.kubernetes.io/component: filer
|
component: filer
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|
||||||
# updatePartition is used to control a careful rolling update of SeaweedFS
|
# updatePartition is used to control a careful rolling update of SeaweedFS
|
||||||
@@ -442,26 +358,19 @@ filer:
|
|||||||
# nodeSelector labels for server pod assignment, formatted as a muli-line string.
|
# nodeSelector labels for server pod assignment, formatted as a muli-line string.
|
||||||
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
||||||
# Example:
|
# Example:
|
||||||
nodeSelector: |
|
|
||||||
beta.kubernetes.io/arch: amd64
|
|
||||||
# nodeSelector: |
|
# nodeSelector: |
|
||||||
# sw-backend: "true"
|
# beta.kubernetes.io/arch: amd64
|
||||||
|
nodeSelector: |
|
||||||
|
sw-backend: "true"
|
||||||
|
|
||||||
# used to assign priority to server pods
|
# used to assign priority to server pods
|
||||||
# ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
|
# ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
|
||||||
priorityClassName: ""
|
priorityClassName: ""
|
||||||
|
|
||||||
# used to assign a service account.
|
|
||||||
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
|
||||||
serviceAccountName: ""
|
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
className: "nginx"
|
className: "nginx"
|
||||||
# host: false for "*" hostname
|
annotations:
|
||||||
host: "seaweedfs.cluster.local"
|
|
||||||
annotations: |
|
|
||||||
nginx.ingress.kubernetes.io/backend-protocol: GRPC
|
|
||||||
nginx.ingress.kubernetes.io/auth-type: "basic"
|
nginx.ingress.kubernetes.io/auth-type: "basic"
|
||||||
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret"
|
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret"
|
||||||
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - SW-Filer'
|
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - SW-Filer'
|
||||||
@@ -480,7 +389,7 @@ filer:
|
|||||||
|
|
||||||
# extraEnvVars is a list of extra enviroment variables to set with the stateful set.
|
# extraEnvVars is a list of extra enviroment variables to set with the stateful set.
|
||||||
extraEnvironmentVars:
|
extraEnvironmentVars:
|
||||||
WEED_MYSQL_ENABLED: "false"
|
WEED_MYSQL_ENABLED: "true"
|
||||||
WEED_MYSQL_HOSTNAME: "mysql-db-host"
|
WEED_MYSQL_HOSTNAME: "mysql-db-host"
|
||||||
WEED_MYSQL_PORT: "3306"
|
WEED_MYSQL_PORT: "3306"
|
||||||
WEED_MYSQL_DATABASE: "sw_database"
|
WEED_MYSQL_DATABASE: "sw_database"
|
||||||
@@ -491,56 +400,17 @@ filer:
|
|||||||
# enable usage of memsql as filer backend
|
# enable usage of memsql as filer backend
|
||||||
WEED_MYSQL_INTERPOLATEPARAMS: "true"
|
WEED_MYSQL_INTERPOLATEPARAMS: "true"
|
||||||
# if you want to use leveldb2, then should enable "enablePVC". or you may lose your data.
|
# if you want to use leveldb2, then should enable "enablePVC". or you may lose your data.
|
||||||
WEED_LEVELDB2_ENABLED: "true"
|
WEED_LEVELDB2_ENABLED: "false"
|
||||||
# with http DELETE, by default the filer would check whether a folder is empty.
|
# with http DELETE, by default the filer would check whether a folder is empty.
|
||||||
# recursive_delete will delete all sub folders and files, similar to "rm -Rf"
|
# recursive_delete will delete all sub folders and files, similar to "rm -Rf"
|
||||||
WEED_FILER_OPTIONS_RECURSIVE_DELETE: "false"
|
WEED_FILER_OPTIONS_RECURSIVE_DELETE: "false"
|
||||||
# directories under this folder will be automatically creating a separate bucket
|
# directories under this folder will be automatically creating a separate bucket
|
||||||
WEED_FILER_BUCKETS_FOLDER: "/buckets"
|
WEED_FILER_BUCKETS_FOLDER: "/buckets"
|
||||||
|
|
||||||
# used to configure livenessProbe on filer containers
|
|
||||||
#
|
|
||||||
livenessProbe:
|
|
||||||
enabled: true
|
|
||||||
httpGet:
|
|
||||||
path: /
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 20
|
|
||||||
periodSeconds: 30
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: 5
|
|
||||||
timeoutSeconds: 10
|
|
||||||
|
|
||||||
# used to configure readinessProbe on filer containers
|
|
||||||
#
|
|
||||||
readinessProbe:
|
|
||||||
enabled: true
|
|
||||||
httpGet:
|
|
||||||
path: /
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 15
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: 100
|
|
||||||
timeoutSeconds: 10
|
|
||||||
|
|
||||||
# secret env variables
|
|
||||||
secretExtraEnvironmentVars: []
|
|
||||||
# WEED_POSTGRES_USERNAME:
|
|
||||||
# secretKeyRef:
|
|
||||||
# name: postgres-credentials
|
|
||||||
# key: username
|
|
||||||
# WEED_POSTGRES_PASSWORD:
|
|
||||||
# secretKeyRef:
|
|
||||||
# name: postgres-credentials
|
|
||||||
# key: password
|
|
||||||
|
|
||||||
s3:
|
s3:
|
||||||
enabled: true
|
enabled: true
|
||||||
port: 8333
|
port: 8333
|
||||||
# add additional https port
|
#allow empty folders
|
||||||
httpsPort: 0
|
|
||||||
# allow empty folders
|
|
||||||
allowEmptyFolder: false
|
allowEmptyFolder: false
|
||||||
# Suffix of the host name, {bucket}.{domainName}
|
# Suffix of the host name, {bucket}.{domainName}
|
||||||
domainName: ""
|
domainName: ""
|
||||||
@@ -558,11 +428,9 @@ s3:
|
|||||||
replicas: 1
|
replicas: 1
|
||||||
bindAddress: 0.0.0.0
|
bindAddress: 0.0.0.0
|
||||||
port: 8333
|
port: 8333
|
||||||
# add additional https port
|
|
||||||
httpsPort: 0
|
|
||||||
metricsPort: 9327
|
metricsPort: 9327
|
||||||
loggingOverrideLevel: null
|
loggingOverrideLevel: null
|
||||||
# allow empty folders
|
#allow empty folders
|
||||||
allowEmptyFolder: true
|
allowEmptyFolder: true
|
||||||
# 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
|
||||||
@@ -581,7 +449,7 @@ s3:
|
|||||||
# 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
|
||||||
# is made.
|
# is made.
|
||||||
resources: {}
|
resources: null
|
||||||
|
|
||||||
# Toleration Settings for server pods
|
# Toleration Settings for server pods
|
||||||
# This should be a multi-line string matching the Toleration array
|
# This should be a multi-line string matching the Toleration array
|
||||||
@@ -591,66 +459,25 @@ s3:
|
|||||||
# nodeSelector labels for server pod assignment, formatted as a muli-line string.
|
# nodeSelector labels for server pod assignment, formatted as a muli-line string.
|
||||||
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
||||||
# Example:
|
# Example:
|
||||||
nodeSelector: |
|
|
||||||
beta.kubernetes.io/arch: amd64
|
|
||||||
# nodeSelector: |
|
# nodeSelector: |
|
||||||
# sw-backend: "true"
|
# beta.kubernetes.io/arch: amd64
|
||||||
|
nodeSelector: |
|
||||||
|
sw-backend: "true"
|
||||||
|
|
||||||
# used to assign priority to server pods
|
# used to assign priority to server pods
|
||||||
# ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
|
# ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
|
||||||
priorityClassName: ""
|
priorityClassName: ""
|
||||||
|
|
||||||
# used to assign a service account.
|
|
||||||
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
|
||||||
serviceAccountName: ""
|
|
||||||
|
|
||||||
logs:
|
logs:
|
||||||
type: "hostPath"
|
type: "hostPath"
|
||||||
size: ""
|
size: ""
|
||||||
storageClass: ""
|
storageClass: ""
|
||||||
hostPathPrefix: /storage
|
hostPathPrefix: /storage
|
||||||
|
|
||||||
# used to configure livenessProbe on s3 containers
|
|
||||||
#
|
|
||||||
livenessProbe:
|
|
||||||
enabled: true
|
|
||||||
httpGet:
|
|
||||||
path: /status
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 20
|
|
||||||
periodSeconds: 60
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: 20
|
|
||||||
timeoutSeconds: 10
|
|
||||||
|
|
||||||
# used to configure readinessProbe on s3 containers
|
|
||||||
#
|
|
||||||
readinessProbe:
|
|
||||||
enabled: true
|
|
||||||
httpGet:
|
|
||||||
path: /status
|
|
||||||
scheme: HTTP
|
|
||||||
initialDelaySeconds: 15
|
|
||||||
periodSeconds: 15
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: 100
|
|
||||||
timeoutSeconds: 10
|
|
||||||
|
|
||||||
ingress:
|
|
||||||
enabled: false
|
|
||||||
className: "nginx"
|
|
||||||
# host: false for "*" hostname
|
|
||||||
host: "seaweedfs.cluster.local"
|
|
||||||
|
|
||||||
certificates:
|
certificates:
|
||||||
commonName: "SeaweedFS CA"
|
commonName: "SeaweedFS CA"
|
||||||
ipAddresses: []
|
ipAddresses: []
|
||||||
keyAlgorithm: rsa
|
keyAlgorithm: rsa
|
||||||
keySize: 2048
|
keySize: 2048
|
||||||
duration: 2160h # 90d
|
duration: 2160h # 90d
|
||||||
renewBefore: 360h # 15d
|
renewBefore: 360h # 15d
|
||||||
externalCertificates:
|
|
||||||
# This will avoid the need to use cert-manager and will rely on providing your own external certificates and CA
|
|
||||||
# you will need to store your provided certificates in the secret read by the different services:
|
|
||||||
# seaweedfs-master-cert, seaweedfs-filer-cert, etc. Can see any statefulset definition to see secret names
|
|
||||||
enabled: false
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB |
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>com.github.chrislusf</groupId>
|
<groupId>com.github.chrislusf</groupId>
|
||||||
<artifactId>seaweedfs-client</artifactId>
|
<artifactId>seaweedfs-client</artifactId>
|
||||||
<version>3.55</version>
|
<version>3.33</version>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.sonatype.oss</groupId>
|
<groupId>org.sonatype.oss</groupId>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>com.github.chrislusf</groupId>
|
<groupId>com.github.chrislusf</groupId>
|
||||||
<artifactId>seaweedfs-client</artifactId>
|
<artifactId>seaweedfs-client</artifactId>
|
||||||
<version>3.55</version>
|
<version>3.33</version>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.sonatype.oss</groupId>
|
<groupId>org.sonatype.oss</groupId>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>com.github.chrislusf</groupId>
|
<groupId>com.github.chrislusf</groupId>
|
||||||
<artifactId>seaweedfs-client</artifactId>
|
<artifactId>seaweedfs-client</artifactId>
|
||||||
<version>3.55</version>
|
<version>3.33</version>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.sonatype.oss</groupId>
|
<groupId>org.sonatype.oss</groupId>
|
||||||
|
|||||||
@@ -128,7 +128,6 @@ public class FileChunkManifest {
|
|||||||
|
|
||||||
FilerProto.FileChunk.Builder manifestChunk = SeaweedWrite.writeChunk(
|
FilerProto.FileChunk.Builder manifestChunk = SeaweedWrite.writeChunk(
|
||||||
filerClient.getReplication(),
|
filerClient.getReplication(),
|
||||||
filerClient.getCollection(),
|
|
||||||
filerClient,
|
filerClient,
|
||||||
minOffset,
|
minOffset,
|
||||||
data, 0, data.length, parentDirectory);
|
data, 0, data.length, parentDirectory);
|
||||||
|
|||||||
@@ -13,12 +13,12 @@ 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 host, int grpcPort) {
|
||||||
super(filerHost, filerGrpcPort-10000, filerGrpcPort);
|
super(host, grpcPort-10000, grpcPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
public FilerClient(String filerHost, int filerPort, int filerGrpcPort) {
|
public FilerClient(String host, int port, int grpcPort) {
|
||||||
super(filerHost, filerPort, filerGrpcPort);
|
super(host, port, grpcPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String toFileId(FilerProto.FileId fid) {
|
public static String toFileId(FilerProto.FileId fid) {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ public class FilerSslContext {
|
|||||||
String home = System.getProperty("user.home");
|
String home = System.getProperty("user.home");
|
||||||
File f1 = new File("./"+securityFileName);
|
File f1 = new File("./"+securityFileName);
|
||||||
File f2 = new File(home + "/.seaweedfs/"+securityFileName);
|
File f2 = new File(home + "/.seaweedfs/"+securityFileName);
|
||||||
File f3 = new File("/etc/seaweedfs/"+securityFileName);
|
File f3 = new File(home + "/etc/seaweedfs/"+securityFileName);
|
||||||
|
|
||||||
File securityFile = f1.exists()? f1 : f2.exists() ? f2 : f3.exists()? f3 : null;
|
File securityFile = f1.exists()? f1 : f2.exists() ? f2 : f3.exists()? f3 : null;
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ public class SeaweedOutputStream extends OutputStream {
|
|||||||
private ByteBuffer buffer;
|
private ByteBuffer buffer;
|
||||||
private long outputIndex;
|
private long outputIndex;
|
||||||
private String replication = "";
|
private String replication = "";
|
||||||
private String collection = "";
|
|
||||||
|
|
||||||
public SeaweedOutputStream(FilerClient filerClient, final String fullpath) {
|
public SeaweedOutputStream(FilerClient filerClient, final String fullpath) {
|
||||||
this(filerClient, fullpath, "");
|
this(filerClient, fullpath, "");
|
||||||
@@ -54,6 +53,7 @@ public class SeaweedOutputStream extends OutputStream {
|
|||||||
this.lastFlushOffset = 0;
|
this.lastFlushOffset = 0;
|
||||||
this.bufferSize = bufferSize;
|
this.bufferSize = bufferSize;
|
||||||
this.buffer = ByteBufferPool.request(bufferSize);
|
this.buffer = ByteBufferPool.request(bufferSize);
|
||||||
|
this.outputIndex = 0;
|
||||||
this.writeOperations = new ConcurrentLinkedDeque<>();
|
this.writeOperations = new ConcurrentLinkedDeque<>();
|
||||||
|
|
||||||
this.maxConcurrentRequestCount = Runtime.getRuntime().availableProcessors();
|
this.maxConcurrentRequestCount = Runtime.getRuntime().availableProcessors();
|
||||||
@@ -83,13 +83,6 @@ public class SeaweedOutputStream extends OutputStream {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReplication(String replication) {
|
|
||||||
this.replication = replication;
|
|
||||||
}
|
|
||||||
public void setCollection(String collection) {
|
|
||||||
this.collection = collection;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String getParentDirectory(String path) {
|
public static String getParentDirectory(String path) {
|
||||||
int protoIndex = path.indexOf("://");
|
int protoIndex = path.indexOf("://");
|
||||||
if (protoIndex >= 0) {
|
if (protoIndex >= 0) {
|
||||||
@@ -151,11 +144,13 @@ public class SeaweedOutputStream extends OutputStream {
|
|||||||
|
|
||||||
if (numberOfBytesToWrite < writableBytes) {
|
if (numberOfBytesToWrite < writableBytes) {
|
||||||
buffer.put(data, currentOffset, numberOfBytesToWrite);
|
buffer.put(data, currentOffset, numberOfBytesToWrite);
|
||||||
|
outputIndex += numberOfBytesToWrite;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// System.out.println(path + " [" + (outputIndex + currentOffset) + "," + ((outputIndex + currentOffset) + writableBytes) + ") " + buffer.capacity());
|
// System.out.println(path + " [" + (outputIndex + currentOffset) + "," + ((outputIndex + currentOffset) + writableBytes) + ") " + buffer.capacity());
|
||||||
buffer.put(data, currentOffset, writableBytes);
|
buffer.put(data, currentOffset, writableBytes);
|
||||||
|
outputIndex += writableBytes;
|
||||||
currentOffset += writableBytes;
|
currentOffset += writableBytes;
|
||||||
writeCurrentBufferToService();
|
writeCurrentBufferToService();
|
||||||
numberOfBytesToWrite = numberOfBytesToWrite - writableBytes;
|
numberOfBytesToWrite = numberOfBytesToWrite - writableBytes;
|
||||||
@@ -199,6 +194,7 @@ public class SeaweedOutputStream extends OutputStream {
|
|||||||
lastError = new IOException("Stream is closed!");
|
lastError = new IOException("Stream is closed!");
|
||||||
ByteBufferPool.release(buffer);
|
ByteBufferPool.release(buffer);
|
||||||
buffer = null;
|
buffer = null;
|
||||||
|
outputIndex = 0;
|
||||||
closed = true;
|
closed = true;
|
||||||
writeOperations.clear();
|
writeOperations.clear();
|
||||||
if (!threadExecutor.isShutdown()) {
|
if (!threadExecutor.isShutdown()) {
|
||||||
@@ -229,7 +225,7 @@ public class SeaweedOutputStream extends OutputStream {
|
|||||||
}
|
}
|
||||||
final Future<Void> job = completionService.submit(() -> {
|
final Future<Void> job = completionService.submit(() -> {
|
||||||
// System.out.println(path + " is going to save [" + (writePosition) + "," + ((writePosition) + bytesLength) + ")");
|
// System.out.println(path + " is going to save [" + (writePosition) + "," + ((writePosition) + bytesLength) + ")");
|
||||||
SeaweedWrite.writeData(entry, replication, collection, filerClient, writePosition, bufferToWrite.array(), bufferToWrite.position(), bufferToWrite.limit(), path);
|
SeaweedWrite.writeData(entry, replication, filerClient, writePosition, bufferToWrite.array(), bufferToWrite.position(), bufferToWrite.limit(), path);
|
||||||
// System.out.println(path + " saved [" + (writePosition) + "," + ((writePosition) + bytesLength) + ")");
|
// System.out.println(path + " saved [" + (writePosition) + "," + ((writePosition) + bytesLength) + ")");
|
||||||
ByteBufferPool.release(bufferToWrite);
|
ByteBufferPool.release(bufferToWrite);
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ public class SeaweedWrite {
|
|||||||
|
|
||||||
public static void writeData(FilerProto.Entry.Builder entry,
|
public static void writeData(FilerProto.Entry.Builder entry,
|
||||||
final String replication,
|
final String replication,
|
||||||
String collection,
|
|
||||||
final FilerClient filerClient,
|
final FilerClient filerClient,
|
||||||
final long offset,
|
final long offset,
|
||||||
final byte[] bytes,
|
final byte[] bytes,
|
||||||
@@ -37,7 +36,7 @@ public class SeaweedWrite {
|
|||||||
for (long waitTime = 1000L; waitTime < 10 * 1000; waitTime += waitTime / 2) {
|
for (long waitTime = 1000L; waitTime < 10 * 1000; waitTime += waitTime / 2) {
|
||||||
try {
|
try {
|
||||||
FilerProto.FileChunk.Builder chunkBuilder = writeChunk(
|
FilerProto.FileChunk.Builder chunkBuilder = writeChunk(
|
||||||
replication, collection, filerClient, offset, bytes, bytesOffset, bytesLength, path);
|
replication, filerClient, offset, bytes, bytesOffset, bytesLength, path);
|
||||||
lastException = null;
|
lastException = null;
|
||||||
synchronized (entry) {
|
synchronized (entry) {
|
||||||
entry.addChunks(chunkBuilder);
|
entry.addChunks(chunkBuilder);
|
||||||
@@ -60,7 +59,6 @@ public class SeaweedWrite {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static FilerProto.FileChunk.Builder writeChunk(final String replication,
|
public static FilerProto.FileChunk.Builder writeChunk(final String replication,
|
||||||
final String collection,
|
|
||||||
final FilerClient filerClient,
|
final FilerClient filerClient,
|
||||||
final long offset,
|
final long offset,
|
||||||
final byte[] bytes,
|
final byte[] bytes,
|
||||||
@@ -69,7 +67,7 @@ public class SeaweedWrite {
|
|||||||
final String path) throws IOException {
|
final String path) throws IOException {
|
||||||
FilerProto.AssignVolumeResponse response = filerClient.getBlockingStub().assignVolume(
|
FilerProto.AssignVolumeResponse response = filerClient.getBlockingStub().assignVolume(
|
||||||
FilerProto.AssignVolumeRequest.newBuilder()
|
FilerProto.AssignVolumeRequest.newBuilder()
|
||||||
.setCollection(Strings.isNullOrEmpty(collection) ? filerClient.getCollection() : collection)
|
.setCollection(filerClient.getCollection())
|
||||||
.setReplication(Strings.isNullOrEmpty(replication) ? filerClient.getReplication() : replication)
|
.setReplication(Strings.isNullOrEmpty(replication) ? filerClient.getReplication() : replication)
|
||||||
.setDataCenter("")
|
.setDataCenter("")
|
||||||
.setTtlSec(0)
|
.setTtlSec(0)
|
||||||
|
|||||||
@@ -68,16 +68,6 @@ service SeaweedFiler {
|
|||||||
|
|
||||||
rpc CacheRemoteObjectToLocalCluster (CacheRemoteObjectToLocalClusterRequest) returns (CacheRemoteObjectToLocalClusterResponse) {
|
rpc CacheRemoteObjectToLocalCluster (CacheRemoteObjectToLocalClusterRequest) returns (CacheRemoteObjectToLocalClusterResponse) {
|
||||||
}
|
}
|
||||||
|
|
||||||
rpc DistributedLock(LockRequest) returns (LockResponse) {
|
|
||||||
}
|
|
||||||
rpc DistributedUnlock(UnlockRequest) returns (UnlockResponse) {
|
|
||||||
}
|
|
||||||
rpc FindLockOwner(FindLockOwnerRequest) returns (FindLockOwnerResponse) {
|
|
||||||
}
|
|
||||||
// distributed lock management internal use only
|
|
||||||
rpc TransferLocks(TransferLocksRequest) returns (TransferLocksResponse) {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////
|
//////////////////////////////////////////////////
|
||||||
@@ -424,7 +414,6 @@ message FilerConf {
|
|||||||
string data_center = 9;
|
string data_center = 9;
|
||||||
string rack = 10;
|
string rack = 10;
|
||||||
string data_node = 11;
|
string data_node = 11;
|
||||||
uint32 max_file_name_length = 12;
|
|
||||||
}
|
}
|
||||||
repeated PathConf locations = 2;
|
repeated PathConf locations = 2;
|
||||||
}
|
}
|
||||||
@@ -439,46 +428,3 @@ message CacheRemoteObjectToLocalClusterRequest {
|
|||||||
message CacheRemoteObjectToLocalClusterResponse {
|
message CacheRemoteObjectToLocalClusterResponse {
|
||||||
Entry entry = 1;
|
Entry entry = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////
|
|
||||||
// distributed lock management
|
|
||||||
/////////////////////////
|
|
||||||
message LockRequest {
|
|
||||||
string name = 1;
|
|
||||||
int64 seconds_to_lock = 2;
|
|
||||||
string renew_token = 3;
|
|
||||||
bool is_moved = 4;
|
|
||||||
string owner = 5;
|
|
||||||
}
|
|
||||||
message LockResponse {
|
|
||||||
string renew_token = 1;
|
|
||||||
string moved_to = 2;
|
|
||||||
string error = 3;
|
|
||||||
}
|
|
||||||
message UnlockRequest {
|
|
||||||
string name = 1;
|
|
||||||
string renew_token = 2;
|
|
||||||
bool is_moved = 3;
|
|
||||||
}
|
|
||||||
message UnlockResponse {
|
|
||||||
string error = 1;
|
|
||||||
string moved_to = 2;
|
|
||||||
}
|
|
||||||
message FindLockOwnerRequest {
|
|
||||||
string name = 1;
|
|
||||||
bool is_moved = 2;
|
|
||||||
}
|
|
||||||
message FindLockOwnerResponse {
|
|
||||||
string owner = 1;
|
|
||||||
}
|
|
||||||
message Lock {
|
|
||||||
string name = 1;
|
|
||||||
string renew_token = 2;
|
|
||||||
int64 expired_at_ns = 3;
|
|
||||||
string owner = 4;
|
|
||||||
}
|
|
||||||
message TransferLocksRequest {
|
|
||||||
repeated Lock locks = 1;
|
|
||||||
}
|
|
||||||
message TransferLocksResponse {
|
|
||||||
}
|
|
||||||
@@ -11,19 +11,19 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.chrislusf</groupId>
|
<groupId>com.github.chrislusf</groupId>
|
||||||
<artifactId>seaweedfs-client</artifactId>
|
<artifactId>seaweedfs-client</artifactId>
|
||||||
<version>3.55</version>
|
<version>3.33</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.chrislusf</groupId>
|
<groupId>com.github.chrislusf</groupId>
|
||||||
<artifactId>seaweedfs-hadoop2-client</artifactId>
|
<artifactId>seaweedfs-hadoop2-client</artifactId>
|
||||||
<version>3.55</version>
|
<version>3.33</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.hadoop</groupId>
|
<groupId>org.apache.hadoop</groupId>
|
||||||
<artifactId>hadoop-common</artifactId>
|
<artifactId>hadoop-common</artifactId>
|
||||||
<version>2.10.2</version>
|
<version>2.10.1</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -317,7 +317,7 @@
|
|||||||
</snapshotRepository>
|
</snapshotRepository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
<properties>
|
<properties>
|
||||||
<seaweedfs.client.version>3.55</seaweedfs.client.version>
|
<seaweedfs.client.version>3.33</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.55</seaweedfs.client.version>
|
<seaweedfs.client.version>3.33</seaweedfs.client.version>
|
||||||
<hadoop.version>3.2.4</hadoop.version>
|
<hadoop.version>3.2.4</hadoop.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -317,7 +317,7 @@
|
|||||||
</snapshotRepository>
|
</snapshotRepository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
<properties>
|
<properties>
|
||||||
<seaweedfs.client.version>3.55</seaweedfs.client.version>
|
<seaweedfs.client.version>3.33</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.55</seaweedfs.client.version>
|
<seaweedfs.client.version>3.33</seaweedfs.client.version>
|
||||||
<hadoop.version>3.2.4</hadoop.version>
|
<hadoop.version>3.2.4</hadoop.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|||||||
@@ -5,10 +5,6 @@
|
|||||||
<artifactId>copier</artifactId>
|
<artifactId>copier</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<properties>
|
|
||||||
<maven.compiler.source>18</maven.compiler.source>
|
|
||||||
<maven.compiler.target>18</maven.compiler.target>
|
|
||||||
</properties>
|
|
||||||
<name>copier</name>
|
<name>copier</name>
|
||||||
<url>http://maven.apache.org</url>
|
<url>http://maven.apache.org</url>
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ import com.amazonaws.client.builder.AwsClientBuilder;
|
|||||||
import com.amazonaws.regions.Regions;
|
import com.amazonaws.regions.Regions;
|
||||||
import com.amazonaws.services.s3.AmazonS3;
|
import com.amazonaws.services.s3.AmazonS3;
|
||||||
import com.amazonaws.services.s3.AmazonS3ClientBuilder;
|
import com.amazonaws.services.s3.AmazonS3ClientBuilder;
|
||||||
import com.amazonaws.services.s3.model.CreateBucketRequest;
|
|
||||||
import com.amazonaws.services.s3.model.GetBucketLocationRequest;
|
|
||||||
import com.amazonaws.services.s3.transfer.TransferManager;
|
import com.amazonaws.services.s3.transfer.TransferManager;
|
||||||
import com.amazonaws.services.s3.transfer.TransferManagerBuilder;
|
import com.amazonaws.services.s3.transfer.TransferManagerBuilder;
|
||||||
import com.amazonaws.services.s3.transfer.Upload;
|
import com.amazonaws.services.s3.transfer.Upload;
|
||||||
@@ -44,19 +42,6 @@ public class HighLevelMultipartUpload {
|
|||||||
.withS3Client(s3Client)
|
.withS3Client(s3Client)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
|
||||||
if (!s3Client.doesBucketExistV2(bucketName)) {
|
|
||||||
// Because the CreateBucketRequest object doesn't specify a region, the
|
|
||||||
// bucket is created in the region specified in the client.
|
|
||||||
s3Client.createBucket(new CreateBucketRequest(bucketName));
|
|
||||||
|
|
||||||
// Verify that the bucket was created by retrieving it and checking its location.
|
|
||||||
String bucketLocation = s3Client.getBucketLocation(new GetBucketLocationRequest(bucketName));
|
|
||||||
System.out.println("Bucket location: " + bucketLocation);
|
|
||||||
} else {
|
|
||||||
System.out.println("Bucket already exists");
|
|
||||||
}
|
|
||||||
|
|
||||||
// TransferManager processes all transfers asynchronously,
|
// TransferManager processes all transfers asynchronously,
|
||||||
// so this call returns immediately.
|
// so this call returns immediately.
|
||||||
Upload upload = tm.upload(bucketName, keyName, file);
|
Upload upload = tm.upload(bucketName, keyName, file);
|
||||||
|
|||||||
@@ -2452,27 +2452,7 @@
|
|||||||
"style": "dark",
|
"style": "dark",
|
||||||
"tags": [],
|
"tags": [],
|
||||||
"templating": {
|
"templating": {
|
||||||
"list": [
|
"list": []
|
||||||
{
|
|
||||||
"current": {
|
|
||||||
"selected": true,
|
|
||||||
"text": "default",
|
|
||||||
"value": "default"
|
|
||||||
},
|
|
||||||
"hide": 0,
|
|
||||||
"includeAll": false,
|
|
||||||
"label": "Datasource",
|
|
||||||
"multi": false,
|
|
||||||
"name": "DS_PROMETHEUS",
|
|
||||||
"options": [],
|
|
||||||
"query": "prometheus",
|
|
||||||
"queryValue": "",
|
|
||||||
"refresh": 1,
|
|
||||||
"regex": "",
|
|
||||||
"skipUrlSync": false,
|
|
||||||
"type": "datasource"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"time": {
|
"time": {
|
||||||
"from": "now-3h",
|
"from": "now-3h",
|
||||||
|
|||||||
@@ -1895,27 +1895,7 @@
|
|||||||
"style": "dark",
|
"style": "dark",
|
||||||
"tags": [],
|
"tags": [],
|
||||||
"templating": {
|
"templating": {
|
||||||
"list": [
|
"list": []
|
||||||
{
|
|
||||||
"current": {
|
|
||||||
"selected": true,
|
|
||||||
"text": "default",
|
|
||||||
"value": "default"
|
|
||||||
},
|
|
||||||
"hide": 0,
|
|
||||||
"includeAll": false,
|
|
||||||
"label": "Datasource",
|
|
||||||
"multi": false,
|
|
||||||
"name": "DS_PROMETHEUS",
|
|
||||||
"options": [],
|
|
||||||
"query": "prometheus",
|
|
||||||
"queryValue": "",
|
|
||||||
"refresh": 1,
|
|
||||||
"regex": "",
|
|
||||||
"skipUrlSync": false,
|
|
||||||
"type": "datasource"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"time": {
|
"time": {
|
||||||
"from": "now-5m",
|
"from": "now-5m",
|
||||||
|
|||||||
@@ -2179,8 +2179,8 @@
|
|||||||
{
|
{
|
||||||
"current": {
|
"current": {
|
||||||
"selected": true,
|
"selected": true,
|
||||||
"text": "default",
|
"text": "clickhouse-prom",
|
||||||
"value": "default"
|
"value": "clickhouse-prom"
|
||||||
},
|
},
|
||||||
"hide": 0,
|
"hide": 0,
|
||||||
"includeAll": false,
|
"includeAll": false,
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<guava.version>32.0.0-jre</guava.version>
|
<guava.version>30.0-jre</guava.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@@ -1,114 +0,0 @@
|
|||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
"github.com/aws/aws-sdk-go-v2/aws"
|
|
||||||
"github.com/aws/aws-sdk-go-v2/aws/retry"
|
|
||||||
"github.com/aws/aws-sdk-go-v2/config"
|
|
||||||
"github.com/aws/aws-sdk-go-v2/credentials"
|
|
||||||
"github.com/aws/aws-sdk-go-v2/service/s3"
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
cfg := MyConfig{
|
|
||||||
Key: "any",
|
|
||||||
Secret: "any",
|
|
||||||
Region: "US",
|
|
||||||
Endpoint: MyEndpoint{
|
|
||||||
URL: "http://localhost:8333",
|
|
||||||
},
|
|
||||||
Bucket: MyBucketConfig{
|
|
||||||
Name: "newbucket",
|
|
||||||
Versioning: false,
|
|
||||||
},
|
|
||||||
MaxBackoffDelay: aws.Int(int(time.Second * 5)),
|
|
||||||
MaxRetryAttempts: aws.Int(1),
|
|
||||||
}
|
|
||||||
|
|
||||||
awsCfg, err := MyAwsConfig(cfg)
|
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
svc := s3.NewFromConfig(*awsCfg, func(o *s3.Options) {
|
|
||||||
o.UsePathStyle = true
|
|
||||||
})
|
|
||||||
|
|
||||||
// Use the S3 client to interact with SeaweedFS
|
|
||||||
// ...
|
|
||||||
// Example: List all buckets
|
|
||||||
result, err := svc.ListBuckets(context.Background(), &s3.ListBucketsInput{})
|
|
||||||
// no errors - got list of buckets
|
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Print the list of buckets
|
|
||||||
for _, bucket := range result.Buckets {
|
|
||||||
println(*bucket.Name)
|
|
||||||
}
|
|
||||||
|
|
||||||
bucket := "bucket1"
|
|
||||||
_, err = svc.HeadBucket(context.Background(), &s3.HeadBucketInput{Bucket: &bucket})
|
|
||||||
// ERROR HERE
|
|
||||||
if err != nil {
|
|
||||||
println(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// === helpers
|
|
||||||
|
|
||||||
func MyAwsConfig(cfg MyConfig) (*aws.Config, error) {
|
|
||||||
|
|
||||||
cred := aws.NewCredentialsCache(credentials.NewStaticCredentialsProvider(cfg.Key, cfg.Secret, ""))
|
|
||||||
customResolver := aws.EndpointResolverWithOptionsFunc(
|
|
||||||
func(service, region string, options ...interface{}) (aws.Endpoint, error) {
|
|
||||||
return aws.Endpoint{
|
|
||||||
URL: cfg.Endpoint.URL,
|
|
||||||
SigningRegion: cfg.Region,
|
|
||||||
}, nil
|
|
||||||
})
|
|
||||||
|
|
||||||
awsCfg, err := config.LoadDefaultConfig(context.TODO(),
|
|
||||||
config.WithRegion(cfg.Region),
|
|
||||||
config.WithCredentialsProvider(cred),
|
|
||||||
config.WithEndpointResolverWithOptions(customResolver),
|
|
||||||
config.WithRetryer(func() aws.Retryer {
|
|
||||||
r := retry.AddWithMaxAttempts(retry.NewStandard(), *cfg.MaxRetryAttempts)
|
|
||||||
return retry.AddWithMaxBackoffDelay(r, time.Duration(*cfg.MaxBackoffDelay*1000*1000))
|
|
||||||
}))
|
|
||||||
return &awsCfg, err
|
|
||||||
}
|
|
||||||
|
|
||||||
type MyConfig struct {
|
|
||||||
// Access key of S3 AWS.
|
|
||||||
Key string
|
|
||||||
// Access secret of S3 AWS.
|
|
||||||
Secret string
|
|
||||||
// Region.
|
|
||||||
Region string
|
|
||||||
// AWS endpoint.
|
|
||||||
Endpoint MyEndpoint
|
|
||||||
// Bucket configuration.
|
|
||||||
Bucket MyBucketConfig
|
|
||||||
// File access.
|
|
||||||
FileAccess MyFileAccessType
|
|
||||||
// Maximum backoff delay (ms, default: 20 sec).
|
|
||||||
MaxBackoffDelay *int
|
|
||||||
// Maximum attempts to retry operation on error (default: 5).
|
|
||||||
MaxRetryAttempts *int
|
|
||||||
}
|
|
||||||
|
|
||||||
type MyBucketConfig struct {
|
|
||||||
// Name of bucket
|
|
||||||
Name string
|
|
||||||
// Enable or not versioning
|
|
||||||
Versioning bool
|
|
||||||
}
|
|
||||||
|
|
||||||
type MyEndpoint struct {
|
|
||||||
URL string
|
|
||||||
}
|
|
||||||
|
|
||||||
type MyFileAccessType byte
|
|
||||||
@@ -79,19 +79,7 @@ func startGenerateMetadata() {
|
|||||||
|
|
||||||
func startSubscribeMetadata(eachEntryFunc func(event *filer_pb.SubscribeMetadataResponse) error) {
|
func startSubscribeMetadata(eachEntryFunc func(event *filer_pb.SubscribeMetadataResponse) error) {
|
||||||
|
|
||||||
metadataFollowOption := &pb.MetadataFollowOption{
|
tailErr := pb.FollowMetadata(pb.ServerAddress(*tailFiler), grpc.WithTransportCredentials(insecure.NewCredentials()), "tail", 0, 0, *dir, nil, 0, 0, 0, eachEntryFunc, pb.TrivialOnError)
|
||||||
ClientName: "tail",
|
|
||||||
ClientId: 0,
|
|
||||||
ClientEpoch: 0,
|
|
||||||
SelfSignature: 0,
|
|
||||||
PathPrefix: *dir,
|
|
||||||
AdditionalPathPrefixes: nil,
|
|
||||||
DirectoriesToWatch: nil,
|
|
||||||
StartTsNs: 0,
|
|
||||||
StopTsNs: 0,
|
|
||||||
EventErrorType: pb.TrivialOnError,
|
|
||||||
}
|
|
||||||
tailErr := pb.FollowMetadata(pb.ServerAddress(*tailFiler), grpc.WithTransportCredentials(insecure.NewCredentials()), metadataFollowOption, eachEntryFunc)
|
|
||||||
|
|
||||||
if tailErr != nil {
|
if tailErr != nil {
|
||||||
fmt.Printf("tail %s: %v\n", *tailFiler, tailErr)
|
fmt.Printf("tail %s: %v\n", *tailFiler, tailErr)
|
||||||
|
|||||||
Loaded 100 of 396 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user