-
Notifications
You must be signed in to change notification settings - Fork 73
[Documentation] Add ArangoPlatformStorage Docs & Examples #1951
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
layout: page | ||
title: Helm | ||
parent: ArangoDBPlatform | ||
nav_order: 3 | ||
nav_order: 4 | ||
--- | ||
|
||
# Helm Details | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ layout: page | |
has_children: true | ||
title: SSO | ||
parent: ArangoDBPlatform | ||
nav_order: 4 | ||
nav_order: 5 | ||
--- | ||
|
||
# Platform SSO |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
layout: page | ||
has_children: true | ||
title: Storage | ||
parent: ArangoDBPlatform | ||
nav_order: 3 | ||
--- | ||
|
||
# Platform Storage | ||
|
||
Enables Storage Integration within the Arango Platform. | ||
|
||
Used for Object Storage, like Models. | ||
|
||
Storage Object needs to have same name as ArangoDeployment. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
layout: page | ||
title: Google Cloud Storage | ||
parent: Storage | ||
nav_order: 2 | ||
--- | ||
|
||
# Integration | ||
|
||
In order to connect to the GCS (Google Cloud Storage): | ||
|
||
## GCP ServiceAccount | ||
|
||
ServiceAccount with access to the storage needs to be saved in the secret. | ||
|
||
```shell | ||
kubectl create secret generic ca --from-file 'serviceAccount=<ServiceAccount JSON File>' | ||
``` | ||
|
||
## Object | ||
|
||
Once the Secret is created, we are able to create ArangoPlatformStorage. | ||
|
||
``` | ||
echo "--- | ||
apiVersion: platform.arangodb.com/v1beta1 | ||
kind: ArangoPlatformStorage | ||
metadata: | ||
name: deployment | ||
namespace: namespace | ||
spec: | ||
backend: | ||
gcs: | ||
bucketName: <Bucket Name> | ||
bucketPath: <Bucket Path> | ||
credentialsSecret: | ||
name: credentials | ||
projectID: gcr-for-testing | ||
" | kubectl apply -f - | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
layout: page | ||
title: MinIO | ||
parent: Storage | ||
nav_order: 3 | ||
--- | ||
|
||
# Integration | ||
|
||
In order to connect to the MinIO, or any other S3 Compatible storage in the ArangoPlatform: | ||
|
||
## MinIO Access Keys | ||
|
||
Storage Integration requires static credentials in order to access MinIO API. Credentials can be provided via the Kubernetes Secret. | ||
|
||
```shell | ||
kubectl create secret generic credentials --from-literal 'accessKey=<MinIO Access Key ID>' --from-literal 'secretKey=<MinIO Secret Access Key>' | ||
``` | ||
|
||
## MinIO TLS Certificate | ||
|
||
```shell | ||
kubectl create secret generic ca --from-file 'ca.crt=<Certificate Path>' | ||
``` | ||
|
||
## Object | ||
|
||
Once the Secret is created, we are able to create ArangoPlatformStorage. | ||
|
||
``` | ||
echo "--- | ||
apiVersion: platform.arangodb.com/v1beta1 | ||
kind: ArangoPlatformStorage | ||
metadata: | ||
name: deployment | ||
namespace: namespace | ||
spec: | ||
backend: | ||
s3: | ||
bucketName: <Bucket Name> | ||
bucketPath: <Bucket Path> | ||
credentialsSecret: | ||
name: credentials | ||
caSecret: | ||
name: ca | ||
endpoint: https://minio.namespace.svc # Minio Endpoint | ||
" | kubectl apply -f - | ||
``` |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,42 @@ | ||||||
--- | ||||||
layout: page | ||||||
title: AWS S3 | ||||||
parent: Storage | ||||||
nav_order: 1 | ||||||
--- | ||||||
|
||||||
# Integration | ||||||
|
||||||
In order to connect to the AWS S3 storage in the ArangoPlatform: | ||||||
|
||||||
## AWS S3 Access Keys | ||||||
|
||||||
Storage Integration requires static credentials in order to access AWS S3 API. Credentials can be provided via the Kubernetes Secret. | ||||||
|
||||||
```shell | ||||||
kubectl create secret generic credentials --from-literal 'accessKey=<AWS Access Key ID>' --from-literal 'secretKey=<AWS Secret Access Key>' | ||||||
``` | ||||||
|
||||||
## Object | ||||||
|
||||||
Once the Secret is created, we are able to create ArangoPlatformStorage. | ||||||
|
||||||
``` | ||||||
echo "--- | ||||||
apiVersion: platform.arangodb.com/v1beta1 | ||||||
kind: ArangoPlatformStorage | ||||||
metadata: | ||||||
name: deployment | ||||||
namespace: namespace | ||||||
spec: | ||||||
backend: | ||||||
s3: | ||||||
allowInsecure: true # If public certs are not installed, this needs to be set to false | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment is confusing - it states to set
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||
bucketName: <Bucket Name> | ||||||
bucketPath: <Bucket Path> | ||||||
credentialsSecret: | ||||||
name: credentials | ||||||
endpoint: https://s3.eu-central-1.amazonaws.com # AWS S3 Region Endpoint | ||||||
region: eu-central-1 # AWS Region | ||||||
" | kubectl apply -f - | ||||||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The secret reference name 'credentials' doesn't match the secret created in line 17, which is named 'ca'. This will cause the configuration to fail. The secret name should be 'ca' to match the kubectl command.
Copilot uses AI. Check for mistakes.