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

KeyTypeDefaultDescription
affinityobject{}
image.pullPolicystring"IfNotPresent"Operator image pull policy
image.registrystring"ghcr.io"Operator image registry
image.repositorystring"k8up-io/k8up"Operator image repository
image.tagstring"v2.3.2"Operator image tag (version)
imagePullSecretslist[]
k8up.backupImage.repositorystring"ghcr.io/k8up-io/k8up"The backup runner image repository
k8up.backupImage.tagstring"v2.3.2"The backup runner image tag
k8up.enableLeaderElectionbooltrueSpecifies whether leader election should be enabled.
k8up.envVarslist[]envVars allows the specification of additional environment variables. See values.yaml how to specify See documentation which variables are supported.
k8up.globalResourcesobjectempty valuesSpecify 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.cpustring""Global CPU resource limit applied to jobs. See supported units.
k8up.globalResources.limits.memorystring""Global Memory resource limit applied to jobs. See supported units.
k8up.globalResources.requests.cpustring""Global CPU resource requests applied to jobs. See supported units.
k8up.globalResources.requests.memorystring""Global Memory resource requests applied to jobs. See supported units.
k8up.operatorNamespacestring""Specifies the namespace in which K8up's EffectiveSchedules are stored. Defaults to release namespace if left empty.
k8up.timezonestring""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.additionalLabelsobject{}Add labels to the PrometheusRule object
metrics.prometheusRule.additionalRuleslist[]Provide additional alert rules in addition to the defaults
metrics.prometheusRule.createDefaultRulesbooltrueWhether the default rules should be installed
metrics.prometheusRule.enabledboolfalseWhether to enable PrometheusRule manifest for Prometheus Operator
metrics.prometheusRule.jobFailedRulesForlist["archive","backup","check","prune","restore"]Create default rules for the given job types. Valid values are "archive", "backup", "check", "prune", and "restore".
metrics.prometheusRule.namespacestring""If the object should be installed in a different namespace than operator
metrics.service.nodePortint0Service node port of the metrics endpoint, requires metrics.service.type=NodePort
metrics.service.portint8080
metrics.service.typestring"ClusterIP"
metrics.serviceMonitor.additionalLabelsobject{}Add labels to the ServiceMonitor object
metrics.serviceMonitor.enabledboolfalseWhether to enable ServiceMonitor manifests for Prometheus Operator
metrics.serviceMonitor.namespacestring""If the object should be installed in a different namespace than operator
metrics.serviceMonitor.scrapeIntervalstring"60s"Scrape interval to collect metrics
nodeSelectorobject{}
podSecurityContextobject{}
rbac.createbooltrueCreate cluster roles and rolebinding. May need elevated permissions to create cluster roles and -bindings.
replicaCountint1How 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.memorystring"256Mi"Memory limit of K8up operator. See supported units.
resources.requests.cpustring"20m"CPU request of K8up operator. See supported units.
resources.requests.memorystring"128Mi"Memory request of K8up operator. See supported units.
securityContextobject{}
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
tolerationslist[]

Upgrading from Charts 0.x to 1.x

  • In image.repository the registry domain was moved into its own parameter image.registry.
  • K8up 1.x features leader election, this enables rolling updates and multiple replicas. k8up.enableLeaderElection defaults to true. Disable this for older Kubernetes versions (<= 1.15)
  • replicaCount is now configurable, defaults to 1.
  • Note: Deployment strategy type has changed from Recreate to RollingUpdate.
  • CRDs need to be installed separately, they are no longer included in this chart.

Upgrading from Charts 1.x to 2.x

  • Note: image.repository changed from vshn/k8up to k8up-io/k8up.
  • Note: image.registry changed from quay.io to ghcr.io.
  • Note: image.tag changed from v1.x to v2.x. Please see the full changelog.
  • metrics.prometheusRule.legacyRules has been removed (no support for OpenShift 3.11 anymore).
  • Note: k8up.backupImage.repository changed from quay.io/vshn/wrestic to ghcr.io/k8up-io/k8up (wrestic is 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartk8up is pinned at v2.0.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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