UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

Add doc objectstorage

Merged Kavitha Thulasiraman requested to merge add-doc-objectstorage into master
All threads resolved!
Compare and Show latest version
1 file
+ 29
17
Compare changes
  • Side-by-side
  • Inline
@@ -8,7+8,7 @@
Blob storage bucket available with correct permissions, or Minio Addon is enabled at the BigBang level. Alternatively, you have (1) an existing Minio Instance, or (2) AWS S3 AccessKey and SecretKey.
## Integration
There are currently 2 typical ways in bigbang that packages connect to object storage.
@@ -68,7+68,7 @@
{{- with .Values.addons.<package>.objectStorage }}
{{- if and .endpoint .accessKey .accessSecret .bucket }}
fileStore:
accessKey: "AHDKEJ3BYNC8B2BFJ38NRB"
accessSecret: "LKSJF2343KS9LS21J3KK20"
endpoint: "https://s3.amazonaws.com"
bucketPrefix: "prod"
accessKey: "{{ .accessKey }}"
accessSecret: "{{ .accessSecret }}"
endpoint: "{{ .endpoint }}"
bucket: "{{ .bucket }}"
{{- end }}
{{- end }}
```
@@ -92,9 +92,9 @@ Example: [GitLab](https://repo1.dso.mil/platform-one/big-bang/bigbang/-/blob/mas
- Create the secret in the Big Bang chart. (NOTE: Replace <package> with your package name in the example below)
```yml
{{- if or .Values.addons.<package>.enabled }}
{{- if .Values.addons.<package>.objectStorage.endpoint }}
{{- if and (ne .Values.addons.<package>.objectStorage.iamProfile "") (ne .Values.addons.<package>.objectStorage.accessKey "") }}{{- fail "Must choose to use an IAM profile OR an AWS accessKey/accessSecret at .Values.addons.<package>.objectStorage" }}{{- end }}
{{- if .Values.addons.<package>.enabled }}
{{- with .Values.addons.<package>.objectStorage }}
{{- if and .endpoint .accessKey .accessSecret }}
apiVersion: v1
kind: Secret
metadata:
@@ -102,16 +102,11 @@ metadata:
namespace: <package>
type: kubernetes.io/opaque
stringData:
registry: |-
s3:
{{- $global := .Values.addons.<package>.values.global | default dict }}
{{- $registryConfig := $global.registry | default dict }}
bucket: <package>-registry
{{- if eq .Values.addons.<package>.objectStorage.iamProfile "" }}
accesskey: {{ .Values.addons.<package>.objectStorage.accessKey }}
secretkey: {{ .Values.addons.<package>.objectStorage.accessSecret }}
{{- end }}
endpoint: {{ .Values.addons.<package>.objectStorage.endpoint }}
bucket: {{ .bucket | default "<package>-bucket" }}
accesskey: {{ .accessKey }}
secretkey: {{ .accessSecret }}
endpoint: {{ .endpoint }}
{{- end }}
{{- end }}
{{- end }}
```
@@ -132,4 +127,21 @@ addons:
accessSecret: "LKSJF2343KS9LS21J3KK20"
bucket: "myMMBucket"
```
For testing with the CI pipeline, create a `tests/dependencies.yaml` and include Minio.
```yml
miniooperator:
git:
repo: "https://repo1.dso.mil/platform-one/big-bang/apps/application-utilities/minio-operator.git"
tag: "4.2.3-bb.2"
namespace: "minio-operator"
minio:
git:
repo: "https://repo1.dso.mil/platform-one/big-bang/apps/application-utilities/minio.git"
tag: "4.2.3-bb.6"
namespace: minio
```
Example: [Velero dependencies.yaml](https://repo1.dso.mil/platform-one/big-bang/apps/cluster-utilities/velero/-/blob/main/tests/dependencies.yaml)
In order to test that the object storage is working, perform an action that stores a file. For example, if using Mattermost, upload an image for a user avatar.
\ No newline at end of file
Loading