Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ resources:
- seaweedfs-deployment.yaml
- seaweedfs-pvc.yaml
- seaweedfs-networkpolicy.yaml
- seaweedfs-create-admin-user-job.yaml
- seaweedfs-service.yaml
- seaweedfs-service-account.yaml
- minio-service.yaml
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,35 @@ spec:
type: RuntimeDefault
containers:
- name: seaweedfs
image: 'chrislusf/seaweedfs:3.92'
envFrom:
- secretRef:
name: mlpipeline-minio-artifact
image: "chrislusf/seaweedfs:3.92"
args:
- 'server'
- '-dir=/data'
- '-s3'
- '-iam'
- '-filer'
- '-master.volumePreallocate=false'
- "server"
- "-dir=/data"
- "-s3"
- "-iam"
- "-filer"
- "-master.volumePreallocate=false"
lifecycle:
postStart:
exec:
command:
- /bin/sh
- -ec
- |
# wait until seaweedfs master is ready
for i in $(seq 1 120); do
if wget -q --spider http://127.0.0.1:8333/status; then
break
fi
sleep 2
done
# create bucket if not exists (ignore error if exists)
echo "s3.bucket.create --name mlpipeline" | /usr/bin/weed shell || true
# configure admin user using keys from secret
echo "s3.configure -user kubeflow-admin -access_key $accesskey -secret_key $secretkey -actions Admin -apply" | /usr/bin/weed shell
ports:
- containerPort: 8333
- containerPort: 8111
Expand All @@ -48,7 +69,7 @@ spec:
successThreshold: 1
failureThreshold: 100
timeoutSeconds: 10
securityContext: # Using restricted profile
securityContext: # Using restricted profile
allowPrivilegeEscalation: false
privileged: false
runAsNonRoot: true
Expand Down
Loading