Skip to content

Commit

Permalink
Assign appropriate pvc size and class to compactor and ingester
Browse files Browse the repository at this point in the history
  • Loading branch information
c0ffeec0der committed Dec 14, 2020
1 parent 6c8ad52 commit fa41875
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion production/ksonnet/loki/boltdb_shipper.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion production/ksonnet/loki/ingester.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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 {},
Expand Down

0 comments on commit fa41875

Please sign in to comment.