From fa4187574fd9b39578afe11ba2c78393a08468b8 Mon Sep 17 00:00:00 2001 From: c0ffeec0der <64681762+c0ffeec0der@users.noreply.github.com> Date: Mon, 14 Dec 2020 14:53:18 +0700 Subject: [PATCH] Assign appropriate pvc size and class to compactor and ingester --- production/ksonnet/loki/boltdb_shipper.libsonnet | 2 +- production/ksonnet/loki/ingester.libsonnet | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/production/ksonnet/loki/boltdb_shipper.libsonnet b/production/ksonnet/loki/boltdb_shipper.libsonnet index 929bf67031eee..bfa3e496eee35 100644 --- a/production/ksonnet/loki/boltdb_shipper.libsonnet +++ b/production/ksonnet/loki/boltdb_shipper.libsonnet @@ -48,7 +48,7 @@ pvc.new('compactor-data') + pvc.mixin.spec.resources.withRequests({ storage: $._config.compactor_pvc_size }) + pvc.mixin.spec.withAccessModes(['ReadWriteOnce']) + - pvc.mixin.spec.withStorageClassName($._config.ingester_pvc_class) + pvc.mixin.spec.withStorageClassName($._config.compactor_pvc_class) else {}, compactor_args:: if $._config.using_boltdb_shipper then { diff --git a/production/ksonnet/loki/ingester.libsonnet b/production/ksonnet/loki/ingester.libsonnet index 02861a3856c80..1802e8a14d2f0 100644 --- a/production/ksonnet/loki/ingester.libsonnet +++ b/production/ksonnet/loki/ingester.libsonnet @@ -47,7 +47,7 @@ ingester_data_pvc:: if $._config.stateful_ingesters then pvc.new('ingester-data') + - pvc.mixin.spec.resources.withRequests({ storage: '10Gi' }) + + pvc.mixin.spec.resources.withRequests({ storage: $._config.ingester_pvc_size }) + pvc.mixin.spec.withAccessModes(['ReadWriteOnce']) + pvc.mixin.spec.withStorageClassName($._config.ingester_pvc_class) else {},