k8up
by Helm
Helm chartv2.0.5App v2.3.2
Kubernetes and OpenShift Backup Operator based on restic
About this chart
k8up
Kubernetes and OpenShift Backup Operator based on restic
Homepage: https://k8up.io/
Installation
helm repo add appuio https://charts.appuio.ch
helm install k8up appuio/k8up
kubectl apply -f https://github.com/k8up-io/k8up/releases/download/v2.3.2/k8up-crd.yaml
Handling CRDs
- Always upgrade the CRDs before upgrading the Helm release.
- Watch out for breaking changes in the K8up release notes.
Source Code
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| image.pullPolicy | string | "IfNotPresent" | Operator image pull policy |
| image.registry | string | "ghcr.io" | Operator image registry |
| image.repository | string | "k8up-io/k8up" | Operator image repository |
| image.tag | string | "v2.3.2" | Operator image tag (version) |
| imagePullSecrets | list | [] | |
| k8up.backupImage.repository | string | "ghcr.io/k8up-io/k8up" | The backup runner image repository |
| k8up.backupImage.tag | string | "v2.3.2" | The backup runner image tag |
| k8up.enableLeaderElection | bool | true | Specifies whether leader election should be enabled. |
| k8up.envVars | list | [] | envVars allows the specification of additional environment variables. See values.yaml how to specify See documentation which variables are supported. |
| k8up.globalResources | object | empty values | Specify the resource requests and limits that the Pods should have when they are scheduled by K8up. You are still able to override those via K8up resources, but this gives cluster administrators custom defaults. |
| k8up.globalResources.limits.cpu | string | "" | Global CPU resource limit applied to jobs. See supported units. |
| k8up.globalResources.limits.memory | string | "" | Global Memory resource limit applied to jobs. See supported units. |
| k8up.globalResources.requests.cpu | string | "" | Global CPU resource requests applied to jobs. See supported units. |
| k8up.globalResources.requests.memory | string | "" | Global Memory resource requests applied to jobs. See supported units. |
| k8up.operatorNamespace | string | "" | Specifies the namespace in which K8up's EffectiveSchedules are stored. Defaults to release namespace if left empty. |
| k8up.timezone | string | "" | Specifies the timezone K8up is using for scheduling. Empty value defaults to the timezone in which Kubernetes is deployed. Accepts tz database compatible entries, e.g. Europe/Zurich |
| metrics.prometheusRule.additionalLabels | object | {} | Add labels to the PrometheusRule object |
| metrics.prometheusRule.additionalRules | list | [] | Provide additional alert rules in addition to the defaults |
| metrics.prometheusRule.createDefaultRules | bool | true | Whether the default rules should be installed |
| metrics.prometheusRule.enabled | bool | false | Whether to enable PrometheusRule manifest for Prometheus Operator |
| metrics.prometheusRule.jobFailedRulesFor | list | ["archive","backup","check","prune","restore"] | Create default rules for the given job types. Valid values are "archive", "backup", "check", "prune", and "restore". |
| metrics.prometheusRule.namespace | string | "" | If the object should be installed in a different namespace than operator |
| metrics.service.nodePort | int | 0 | Service node port of the metrics endpoint, requires metrics.service.type=NodePort |
| metrics.service.port | int | 8080 | |
| metrics.service.type | string | "ClusterIP" | |
| metrics.serviceMonitor.additionalLabels | object | {} | Add labels to the ServiceMonitor object |
| metrics.serviceMonitor.enabled | bool | false | Whether to enable ServiceMonitor manifests for Prometheus Operator |
| metrics.serviceMonitor.namespace | string | "" | If the object should be installed in a different namespace than operator |
| metrics.serviceMonitor.scrapeInterval | string | "60s" | Scrape interval to collect metrics |
| nodeSelector | object | {} | |
| podSecurityContext | object | {} | |
| rbac.create | bool | true | Create cluster roles and rolebinding. May need elevated permissions to create cluster roles and -bindings. |
| replicaCount | int | 1 | How many operator pods should run. Note: Operator features leader election for K8s 1.16 and later, so that only 1 pod is reconciling/scheduling jobs. Follower pods reduce interruption time as they're on hot standby when leader is unresponsive. |
| resources.limits.memory | string | "256Mi" | Memory limit of K8up operator. See supported units. |
| resources.requests.cpu | string | "20m" | CPU request of K8up operator. See supported units. |
| resources.requests.memory | string | "128Mi" | Memory request of K8up operator. See supported units. |
| securityContext | object | {} | |
| serviceAccount.create | bool | true | Specifies whether a service account should be created |
| serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| tolerations | list | [] |
Upgrading from Charts 0.x to 1.x
- In
image.repositorythe registry domain was moved into its own parameterimage.registry. - K8up 1.x features leader election, this enables rolling updates and multiple replicas.
k8up.enableLeaderElectiondefaults totrue. Disable this for older Kubernetes versions (<= 1.15) replicaCountis now configurable, defaults to1.- Note: Deployment strategy type has changed from
RecreatetoRollingUpdate. - CRDs need to be installed separately, they are no longer included in this chart.
Upgrading from Charts 1.x to 2.x
- Note:
image.repositorychanged fromvshn/k8uptok8up-io/k8up. - Note:
image.registrychanged fromquay.iotoghcr.io. - Note:
image.tagchanged fromv1.xtov2.x. Please see the full changelog. metrics.prometheusRule.legacyRuleshas been removed (no support for OpenShift 3.11 anymore).- Note:
k8up.backupImage.repositorychanged fromquay.io/vshn/wrestictoghcr.io/k8up-io/k8up(wresticis not needed anymore in K8up v2).
Source Code
Deploy k8up with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has k8up 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 chartk8up is pinned at v2.0.5 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