Skip to content

Commit

Permalink
AWS Kubernetes: prod volume management (#916)
Browse files Browse the repository at this point in the history
* add aws ebs csi driver

* portainer: add multiple k8s storage class support
  • Loading branch information
YuryHrytsuk authored Dec 31, 2024
1 parent 06ad639 commit 0075122
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 7 deletions.
21 changes: 21 additions & 0 deletions charts/aws-ebs-csi-driver/values.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Relies on ec2 instance profile attached to K8s EC2.
# It lets ebs csi driver to manage EBS volumes

image:
tag: "v1.38.1"

storageClasses:
- name: "ebs-sc"
parameters:
type: "gp3"
allowVolumeExpansion: true
reclaimPolicy: Retain # EBS Volume will not be deleted when PV is deleted

controller:
extraVolumeTags:
Deployment: {{ requiredEnv "MACHINE_FQDN" }}
volumeModificationFeature:
enabled: true
resources:
limits:
cpu: 1 # no cpu limits by default
4 changes: 4 additions & 0 deletions charts/portainer/values.ebs-pv.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
persistence:
enabled: true
size: "1Gi" # minimal size for gp3 is 1Gi
storageClass: "ebs-sc"
4 changes: 4 additions & 0 deletions charts/portainer/values.s3-pv.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
persistence:
enabled: true
size: "1Gi"
storageClass: "csi-s3"
9 changes: 2 additions & 7 deletions charts/portainer/values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ 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:

persistence: {}

podAnnotations: {}
podLabels: {}
Expand Down Expand Up @@ -61,7 +57,6 @@ ingress:
port:
number: 9000


resources:
limits:
cpu: 2
Expand Down

0 comments on commit 0075122

Please sign in to comment.