use Helm to init rustfs in sandbox#7233
Open
BarryWu0812 wants to merge 9 commits intoflyteorg:v2from
Open
Conversation
popojk
reviewed
Apr 20, 2026
Contributor
popojk
left a comment
There was a problem hiding this comment.
Overall looks good, thanks! Left a few comments, PTAL
Contributor
|
Hey @BarryWu0812 .
|
pingsutw
reviewed
Apr 28, 2026
Member
There was a problem hiding this comment.
Could we add new path (/rustfs) to the ingress rules for the rustfs console and make sure it’s accessible from the browser?
flyte/charts/flyte-devbox/templates/proxy/ingress.yaml
Lines 38 to 55 in 61a555c
pingsutw
reviewed
Apr 28, 2026
| containers: | ||
| - name: bucket-init | ||
| image: "{{ .Values.rustfs.bucketInit.image.repository }}:{{ .Values.rustfs.bucketInit.image.tag }}" | ||
| imagePullPolicy: {{ .Values.rustfs.bucketInit.image.pullPolicy }} |
Member
There was a problem hiding this comment.
Could we add a patch to complete/dev kustomization.yaml to add an init container to the rustfs deployment, so that we don't need to add docker.io/minio/mc:latest and another k8s job into the devbox
- patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: rustfs
namespace: flyte
spec:
template:
spec:
initContainers:
- name: create-default-buckets
image: busybox:stable
imagePullPolicy: IfNotPresent
command:
- sh
- -c
- mkdir -p /data/flyte-data
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
volumeMounts:
- mountPath: /data
name: dataSigned-off-by: Barry Wu <[email protected]>
Signed-off-by: Barry Wu <[email protected]>
Signed-off-by: Barry Wu <[email protected]>
Signed-off-by: Barry Wu <[email protected]>
Signed-off-by: Barry Wu <[email protected]>
Signed-off-by: Barry Wu <[email protected]>
Signed-off-by: Barry Wu <[email protected]>
Signed-off-by: Barry Wu <[email protected]>
…ent in kustomization yaml Signed-off-by: Barry Wu <[email protected]>
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tracking issue
Closes #7209
Why are the changes needed?
According to rustfs doc, we can run it with helm chart instead of scripting the yaml on our own.
We run an init container to create default bucket now because rustfs do not support default bucket config now. After migrating to helmchart, we can run a k8s post-install Job to create default bucket.
What changes were proposed in this pull request?
Use Helm to init rustfs in sandbox and run k8s post-install Job to create default bucket.
How was this patch tested?
Run make sandbox-build.
Run an example workflow and make sure the result is success.
Labels
Please add one or more of the following labels to categorize your PR:
This is important to improve the readability of release notes.
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link
main