Search…
Configuring Resource Limits
This page describes how to configure resource limits for various components of the TrilioVault for Kubernetes application.

Variables

Variables have been created to be able to configure resource limits for Trilio pods.
  • metadataJobLimits - Specifies limits for all meta-data related and target mounting jobs like target-validator, meta-snapshot, pre-restore-validation, meta-restore etc
  • dataJobLimits : Specifies limits for Datamover jobs
  • deploymentLimits : Specifies limits for helm chart deployments. Not applicable for OCP

Configuring limits in Upstream Kubernetes

Directly specify the resource limits in the TVM CR spec:
1
apiVersion: triliovault.trilio.io/v1
2
kind: TrilioVaultManager
3
metadata:
4
labels:
5
triliovault: k8s
6
spec:
7
trilioVaultAppVersion: latest
8
helmVersion:
9
version: v3
10
applicationScope: Namespaced
11
restoreNamespaces: ["kube-system", "default"]
12
metadataJobLimits:
13
cpu: 500m
14
memory: 512Mi
15
dataJobLimits:
16
cpu: 1200m
17
memory: 1536Mi
18
deploymentLimits:
19
cpu: 250m
20
memory: 512Mi
Copied!

Configuring limits in OCP

During installation on OCP, a confimap k8s-triliovault-configcontaining the default limits is created. Edit the configMap to change default limits as per requirement.
Kubectl edit configmap k8s-triliovault-config -n <NAMESPACE>
ConfigMap example:
1
apiVersion: v1
2
kind: ConfigMap
3
metadata:
4
labels:
5
app.kubernetes.io/instance: k8s-triliovault-config
6
app.kubernetes.io/managed-by: k8s-triliovault
7
app.kubernetes.io/name: k8s-triliovault
8
app.kubernetes.io/part-of: k8s-triliovault
9
name: k8s-triliovault-config
10
data:
11
dataJobLimits: '{"cpu":"1","memory":"1536Mi"}'
12
metadataJobLimits: '{"cpu":"500m","memory":"512Mi"}
Copied!
Last modified 3d ago