Skip to content

Commit

Permalink
feat: add minio
Browse files Browse the repository at this point in the history
  • Loading branch information
locmai committed Jul 27, 2022
1 parent 6d6694d commit d4394cc
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 13 deletions.
13 changes: 0 additions & 13 deletions bootstrap/argocd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,6 @@ argo-cd:
else
argocd-vault-plugin generate ./
fi
oidc.config: |
name: Vault
issuer: https://login.microsoftonline.com/TENANT_ID/v2.0
clientID: CLIENT_ID
clientSecret: $oidc.azuread.clientSecret
requestedIDTokenClaims:
groups:
essential: true
requestedScopes:
- openid
- profile
- email
ingress:
enabled: true
Expand Down
40 changes: 40 additions & 0 deletions platform/templates/minio-tenant.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
apiVersion: minio.min.io/v2
kind: Tenant
metadata:
name: minio-tenant
spec:
pools:
- servers: 1
name: pool-0
volumesPerServer: 2
volumeClaimTemplate:
metadata:
name: data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
env:
- name: MINIO_IDENTITY_OPENID_CONFIG_URL
value: "https://auth.{{ .Values.global.domain }}/v1/identity/oidc/provider/vault-provider/.well-known/openid-configuration"
- name: MINIO_IDENTITY_OPENID_CLIENT_ID
value: "OPENID CLIENT ID"
- name: MINIO_IDENTITY_OPENID_CLIENT_ID
valueFrom:
secretKeyRef:
name: humble-oidc-secrets
value: OIDC_CLIENT_ID
- name: MINIO_IDENTITY_OPENID_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: humble-oidc-secrets
value: OIDC_CLIENT_SECRET
- name: MINIO_IDENTITY_OPENID_SCOPES
value: "openid,groups,user,email"
- name: MINIO_IDENTITY_OPENID_CLAIM_NAME
value: "https://auth.{{ .Values.global.domain }}/v1/identity/oidc/provider/vault-provider/userinfo"
- name: MINIO_IDENTITY_OPENID_REDIRECT_URI
value: "https://storage.{{ .Values.global.domain }}/oauth_callback"

0 comments on commit d4394cc

Please sign in to comment.