Skip to content

Commit

Permalink
feat: add optional velero chart
Browse files Browse the repository at this point in the history
Signed-off-by: Gabor Boros <[email protected]>
  • Loading branch information
gabor-boros committed Jan 4, 2024
1 parent 87229e5 commit b6d24bf
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 2 deletions.
7 changes: 5 additions & 2 deletions charts/harmony-chart/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ dependencies:
- name: karpenter
repository: oci://public.ecr.aws/karpenter
version: v0.29.2
digest: sha256:453b9f734e2d770948d3cbd36529d98da284b96de051581ea8d11a3c05e7a78e
generated: "2023-10-03T10:52:43.453442762-05:00"
- name: velero
repository: https://vmware-tanzu.github.io/helm-charts
version: 5.2.0
digest: sha256:1a00f3157c0896b14507c4b2ab0245645b51930873c26e7d01496c25c22f4230
generated: "2024-01-04T10:47:48.229505+04:00"
5 changes: 5 additions & 0 deletions charts/harmony-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,8 @@ dependencies:
version: "v0.29.2"
repository: oci://public.ecr.aws/karpenter
condition: karpenter.enabled

- name: velero
version: "5.2.0"
repository: https://vmware-tanzu.github.io/helm-charts
condition: velero.enabled
54 changes: 54 additions & 0 deletions charts/harmony-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,57 @@ karpenter:
# Node template reference. More details in https://karpenter.sh/docs/concepts/node-templates/
nodeTemplate:
name: "default"

# Before enablin Velero, make sure to execute "velero install --crds-only" to install
# the CRDs in the cluster.
velero:
enabled: false

# For the list of supported providers, and their configuration,
# please visit https://velero.io/docs/main/supported-providers/
configuration:
backupStorageLocation:
- name: "velero-backup-harmony"
provider: aws
bucket: "" # unique name of the bucket
default: true
config:
s3Url: "" # the endpoint can be any S3 compatible storage
region: "" # the region of the bucket

volumeSnapshotLocation:
- name: "velero-volume-snapshot-harmony"
provider: "" # provider configuration
config:
region: "" # the region of the bucket

credentials:
secretContents:
cloud: |
[default]
aws_access_key_id="" # AWS access key ID
aws_secret_access_key="" # AWS secret access key
initContainers:
- name: velero-plugin-for-aws
image: velero/velero-plugin-for-aws:1.8.4
volumeMounts:
- mountPath: /target
name: plugins

schedules:
hourly-backup:
disabled: false
schedule: "30 */1 * * *"
template:
ttl: "24h"
daily-backup:
disabled: false
schedule: "0 6 * * *"
template:
ttl: "168h"
weekly-backup:
disabled: false
schedule: "59 23 * * 0"
template:
ttl: "720h"
41 changes: 41 additions & 0 deletions values-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,44 @@ vpa:

opensearch:
enabled: false

velero:
enabled: false

configuration:
backupStorageLocation:
- name: velero-backup-harmony
provider: aws
bucket: se6099-e665a5
default: true
config:
s3Url: https://nyc3.digitaloceanspaces.com
region: nyc3

volumeSnapshotLocation:
- name: velero-volume-snapshot-harmony
provider: digitalocean.com/velero"
config:
region: nyc3

credentials:
extraEnvVars:
DIGITALOCEAN_TOKEN: "" # DigitalOcean API token
secretContents:
cloud: |
[default]
aws_access_key_id="" # AWS access key ID
aws_secret_access_key="" # AWS secret access key
initContainers:
- name: velero-plugin-for-aws
image: velero/velero-plugin-for-aws:1.8.4
volumeMounts:
- mountPath: /target
name: plugins

- name: velero-plugin-for-digitalocean
image: digitalocean/velero-plugin:1.1.0
volumeMounts:
- mountPath: /target
name: plugins

0 comments on commit b6d24bf

Please sign in to comment.