Previously s3.json was embedded in the seaweedfs-filer-config ConfigMap with hardcoded minioadmin credentials, and the config volume was mounted at /etc/seaweedfs/ (overwriting filer.toml with its own directory mount). - Remove s3.json from ConfigMap; fix the config volume to mount only filer.toml via subPath so both files coexist under /etc/seaweedfs/. - Add vault-secrets.yaml with VaultStaticSecrets that VSO syncs from OpenBao secret/seaweedfs: seaweedfs-s3-credentials (S3_ACCESS_KEY / S3_SECRET_KEY) and seaweedfs-s3-json (s3.json as a JSON template). - Mount seaweedfs-s3-json Secret at /etc/seaweedfs/s3.json via subPath.
23 lines
414 B
YAML
23 lines
414 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: seaweedfs-filer-config
|
|
namespace: storage
|
|
data:
|
|
filer.toml: |
|
|
# SeaweedFS filer configuration
|
|
# S3 API enabled on port 8333
|
|
|
|
[leveldb2]
|
|
enabled = true
|
|
dir = "/data/filer"
|
|
|
|
[s3]
|
|
enabled = true
|
|
port = 8333
|
|
|
|
master.toml: |
|
|
[master.maintenance]
|
|
sleep_minutes = 17
|
|
garbage_threshold = 0.3
|