kubestash-presets
KubeStash Presets
About this chart
KubeStash Presets
KubeStash Presets by AppsCode - KubeStash Presets
TL;DR;
$ helm repo add appscode https://charts.appscode.com/stable
$ helm repo update
$ helm search repo appscode/kubestash-presets --version=v2023.11.14
$ helm upgrade -i kubestash-presets appscode/kubestash-presets -n kubeops --create-namespace --version=v2023.11.14
Introduction
This chart deploys KubeStash Presets on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.21+
Installing the Chart
To install/upgrade the chart with the release name kubestash-presets:
$ helm upgrade -i kubestash-presets appscode/kubestash-presets -n kubeops --create-namespace --version=v2023.11.14
The command deploys KubeStash Presets on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall the kubestash-presets:
$ helm uninstall kubestash-presets -n kubeops
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the kubestash-presets chart and their default values.
| Parameter | Description | Default |
|---|---|---|
| kubestash.schedule | "0 */2 * * *" | |
| kubestash.retentionPolicy.name | keep-last-30d | |
| kubestash.retentionPolicy.keepHourly | 24 | |
| kubestash.retentionPolicy.keepDaily | 30 | |
| kubestash.retentionPolicy.prune | true | |
| kubestash.authSecret.name | "" | |
| kubestash.authSecret.password | "" | |
| kubestash.backend.provider | "" # s3,gcs,azure,swift,b2 | |
| kubestash.backend.s3.spec.endpoint | "" | |
| kubestash.backend.s3.spec.bucket | "" | |
| kubestash.backend.s3.auth.AWS_ACCESS_KEY_ID | "" | |
| kubestash.backend.s3.auth.AWS_SECRET_ACCESS_KEY | "" | |
| kubestash.backend.azure.spec.container | "" | |
| kubestash.backend.azure.auth.AZURE_ACCOUNT_NAME | "" | |
| kubestash.backend.azure.auth.AZURE_ACCOUNT_KEY | "" | |
| kubestash.backend.gcs.spec.bucket | "" | |
| kubestash.backend.gcs.auth.GOOGLE_PROJECT_ID | "" | |
| kubestash.backend.gcs.auth.GOOGLE_SERVICE_ACCOUNT_JSON_KEY | "" | |
| kubestash.backend.swift.spec.container | "" | |
| kubestash.backend.swift.auth.OS_USERNAME | "" | |
| kubestash.backend.swift.auth.OS_PASSWORD | "" | |
| kubestash.backend.swift.auth.OS_REGION_NAME | "" | |
| kubestash.backend.swift.auth.OS_AUTH_URL | "" | |
| kubestash.backend.swift.auth.OS_USER_DOMAIN_NAME | "" | |
| kubestash.backend.swift.auth.OS_PROJECT_NAME | "" | |
| kubestash.backend.swift.auth.OS_PROJECT_DOMAIN_NAME | "" | |
| kubestash.backend.swift.auth.OS_TENANT_ID | "" | |
| kubestash.backend.swift.auth.OS_TENANT_NAME | "" | |
| kubestash.backend.swift.auth.ST_AUTH | "" | |
| kubestash.backend.swift.auth.ST_USER | "" | |
| kubestash.backend.swift.auth.ST_KEY | "" | |
| kubestash.backend.swift.auth.OS_STORAGE_URL | "" | |
| kubestash.backend.swift.auth.OS_AUTH_TOKEN | "" | |
| kubestash.backend.b2.spec.bucket | "" | |
| kubestash.backend.b2.auth.B2_ACCOUNT_ID | "" | |
| kubestash.backend.b2.auth.B2_ACCOUNT_KEY | "" |
Specify each parameter using the --set key=value[,key=value] argument to helm upgrade -i. For example:
$ helm upgrade -i kubestash-presets appscode/kubestash-presets -n kubeops --create-namespace --version=v2023.11.14 --set kubestash.schedule="0 */2 * * *"
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example:
$ helm upgrade -i kubestash-presets appscode/kubestash-presets -n kubeops --create-namespace --version=v2023.11.14 --values values.yaml
Deploy kubestash-presets with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubestash-presets on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkubestash-presets is pinned at v2023.11.14 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply