-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #616 from dheerajodha/add-minio-to-obs
feat: Adding minio with dex auth to nerc-ocp-obs cluster
- Loading branch information
Showing
9 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
12 changes: 12 additions & 0 deletions
12
minio/overlays/nerc-ocp-obs/externalsecrets/patch-minio-admin-credentials.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: minio-admin-credentials | ||
namespace: minio | ||
spec: | ||
secretStoreRef: | ||
name: nerc-cluster-secrets | ||
kind: ClusterSecretStore | ||
dataFrom: | ||
- extract: | ||
key: nerc/nerc-ocp-obs/minio/minio-admin-credentials |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Documentation: https://min.io/docs/minio/linux/reference/minio-server/settings/iam/openid.html | ||
|
||
MINIO_IDENTITY_OPENID_CONFIG_URL=https://dex-dex.apps.obs.nerc.mghpcc.org/.well-known/openid-configuration | ||
MINIO_IDENTITY_OPENID_CLIENT_ID=minio | ||
MINIO_IDENTITY_OPENID_REDIRECT_URI_DYNAMIC=on | ||
|
||
# This tells minio to look up policy names in the "groups" claim (so e.g. if | ||
# someone in the "nerc-ops" group logs in, minio will look for a "nerc-ops" | ||
# policy to apply). A person cannot log in if there is no policy matches any of | ||
# the claim values. | ||
MINIO_IDENTITY_OPENID_CLAIM_NAME=groups |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../base | ||
|
||
configMapGenerator: | ||
- name: minio-config | ||
namespace: minio | ||
envs: | ||
- files/minio-config.env | ||
|
||
patches: | ||
- path: externalsecrets/patch-minio-admin-credentials.yaml | ||
- path: persistentvolumeclaims/patch-pvc.yaml |
8 changes: 8 additions & 0 deletions
8
minio/overlays/nerc-ocp-obs/persistentvolumeclaims/patch-pvc.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: minio-data | ||
spec: | ||
resources: | ||
requests: | ||
storage: 20Ti |