Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(local): install minio object storage via helm chart #1080

Merged
merged 1 commit into from
Aug 14, 2023
Merged
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
19 changes: 19 additions & 0 deletions k8s/helmfile/env/local/minio.values.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
existingSecret: minio-credentials
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly twisted: this create a root user off the k8s secret of the given name.


image:
tag: RELEASE.2023-07-07T07-13-57Z

mode: standalone

replicas: 1

persistence:
size: 4Gi
m90 marked this conversation as resolved.
Show resolved Hide resolved

buckets:
- name: backups
policy: public

resources:
requests:
memory: 0.5Gi
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here: does this create problems for others?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works well for me

10 changes: 10 additions & 0 deletions k8s/helmfile/helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ repositories:
url: https://prometheus-community.github.io/helm-charts
- name: istio
url: https://istio-release.storage.googleapis.com/charts
- name: minio
url: https://charts.min.io

environments:
default:
Expand Down Expand Up @@ -257,3 +259,11 @@ releases:
version: 5.0.1
values:
- env/local/mailhog.values.yaml.gotmpl

- name: minio
installed: {{ eq .Environment.Name "local" | toYaml }}
namespace: default
chart: minio/minio
version: 5.0.13
values:
- env/local/minio.values.yaml.gotmpl
17 changes: 17 additions & 0 deletions tf/env/local/secrets-minio.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
resource "random_password" "minio-password" {
length = 32
}

resource "kubernetes_secret" "minio-credentials" {
metadata {
name = "minio-credentials"
}

binary_data = {
"rootPassword" = base64encode(random_password.minio-password.result)
m90 marked this conversation as resolved.
Show resolved Hide resolved
}

data = {
"rootUser" = "minio"
}
}