Skip to content

Commit 7b425be

Browse files
authored
✨ Add: k8s S3 CSI to be used with portainer (#854)
* wip * Add csi-s3 and have portainer use it * Change request @Hrytsuk 1GB max portainer volume size --------- Co-authored-by: Dustin Kaiser <[email protected]>
1 parent 2d690e0 commit 7b425be

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,6 @@ docker-compose.simcore.yml
149149
repo.config
150150
.temp
151151
.temp/**
152+
153+
# By convention: `.secret` files are gitignored
154+
**/*.secret

charts/csi-s3/values.yaml.gotmpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
secret:
2+
accessKey: {{ requiredEnv "S3_ACCESS_KEY" }}
3+
secretKey: {{ requiredEnv "S3_SECRET_KEY" }}
4+
region: {{ requiredEnv "S3_REGION" }}
5+
endpoint: {{ requiredEnv "S3_ENDPOINT" }}
6+
storageClass:
7+
singleBucket: {{ requiredEnv "S3_K8S_CSI_BUCKET_NAME" }}

charts/portainer/values.yaml.gotmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ serviceAccount:
1818
# The name of the service account to use.
1919
# If not set and create is true, a name is generated using the fullname template
2020
name: portainer-sa-clusteradmin
21+
persistence:
22+
enabled: true
23+
size: "1Gi"
24+
annotations: {}
25+
storageClass: "csi-s3"
26+
existingClaim:
2127

2228
podAnnotations: {}
2329
podLabels: {}

0 commit comments

Comments
 (0)