Skip to content

Commit

Permalink
feat(local): configure local env to store api assets in minio
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 committed Jan 10, 2024
1 parent 194119e commit 2a25bf5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
9 changes: 9 additions & 0 deletions k8s/helmfile/env/local/api.values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,14 @@ replicaCount:
scheduler: 1
queue: 1

storage:
bucketName: api-assets
accessKeySecretName: minio-credentials
accessKeySecretKey: rootUser
secretKeySecretName: minio-credentials
secretKeySecretKey: rootPassword
endpoint: http://minio.default.svc.cluster.local:9000
url: http://minio.wbaas.localhost/api-assets

trustedProxy:
proxies: ['*']
22 changes: 22 additions & 0 deletions k8s/helmfile/env/local/minio.values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,29 @@ persistence:
buckets:
- name: backups
policy: public
- name: api-assets
policy: public

resources:
requests:
memory: 0.5Gi

consoleService:
port: "80"

consoleIngress:
enabled: true
path: /
hosts:
- minio-console.wbaas.localhost
annotations:
kubernetes.io/ingress.class: nginx

ingress:
enabled: true
path: /
hosts:
- minio.wbaas.localhost
annotations:
kubernetes.io/ingress.class: nginx

2 changes: 1 addition & 1 deletion k8s/helmfile/helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ releases:
- tls: {{ .Values.tls | toYaml }}

- name: api
chart: wbstack/api
chart: ./../../../charts/charts/api
version: 0.29.1
namespace: default
<<: *default_release
Expand Down

0 comments on commit 2a25bf5

Please sign in to comment.