Skip to content

Commit

Permalink
✨ Add: k8s S3 CSI to be used with portainer (#854)
Browse files Browse the repository at this point in the history
* wip

* Add csi-s3 and have portainer use it

* Change request @Hrytsuk 1GB max portainer volume size

---------

Co-authored-by: Dustin Kaiser <[email protected]>
  • Loading branch information
mrnicegyu11 and mrnicegyu11 authored Oct 25, 2024
1 parent 2d690e0 commit 7b425be
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,6 @@ docker-compose.simcore.yml
repo.config
.temp
.temp/**

# By convention: `.secret` files are gitignored
**/*.secret
7 changes: 7 additions & 0 deletions charts/csi-s3/values.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
secret:
accessKey: {{ requiredEnv "S3_ACCESS_KEY" }}
secretKey: {{ requiredEnv "S3_SECRET_KEY" }}
region: {{ requiredEnv "S3_REGION" }}
endpoint: {{ requiredEnv "S3_ENDPOINT" }}
storageClass:
singleBucket: {{ requiredEnv "S3_K8S_CSI_BUCKET_NAME" }}
6 changes: 6 additions & 0 deletions charts/portainer/values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ serviceAccount:
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: portainer-sa-clusteradmin
persistence:
enabled: true
size: "1Gi"
annotations: {}
storageClass: "csi-s3"
existingClaim:

podAnnotations: {}
podLabels: {}
Expand Down

0 comments on commit 7b425be

Please sign in to comment.