Skip to content

Commit

Permalink
Tablemanager, typos, more values
Browse files Browse the repository at this point in the history
Enabled tablemanager deployment again for all storage backends.
Typos in deployments regarding loki config.
Added retention period to be configured for indexes.
  • Loading branch information
Whyeasy committed Apr 6, 2020
1 parent bec5660 commit 76e18fb
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion charts/distributed-loki/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ name: loki-distributed
description: A Helm chart for Kubernetes
type: application

version: 0.0.4
version: 0.0.5
appVersion: 1.4.0
10 changes: 4 additions & 6 deletions charts/distributed-loki/templates/config/loki-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data:
consistent_hash: true
host: {{ include "loki-helm.memcached" . }}.{{ .Release.Namespace }}.svc.cluster.local
service: memcached-client
max_look_back_period: 0
max_look_back_period: {{ .Values.storage.config.retentionPeriod }}
write_dedupe_cache_config:
memcached:
batch_size: 100
Expand Down Expand Up @@ -118,8 +118,7 @@ data:
memcached_client:
consistent_hash: true
host: {{ include "loki-helm.memcached-index-queries" . }}.{{ .Release.Namespace }}.svc.cluster.local
service: memcached-client
{{ if eq .Values.storage.store "aws-dynamo" }}
service: memcached-client
table_manager:
chunk_tables_provisioning:
inactive_read_throughput: 0
Expand All @@ -131,9 +130,8 @@ data:
inactive_write_throughput: 0
provisioned_read_throughput: 0
provisioned_write_throughput: 0
retention_deletes_enabled: false
retention_period: 0
{{ end }}
retention_deletes_enabled: {{ .Values.storage.config.retentionDelete }}
retention_period: {{ .Values.storage.config.retentionPeriod }}
kind: ConfigMap
metadata:
name: {{ include "loki-helm.fullname" . }}-config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
name: overrides
volumes:
- configMap:
name: {{ include "loki-helm.fullname" . }}-loki
name: {{ include "loki-helm.fullname" . }}-config
name: loki
- configMap:
name: {{ include "loki-helm.fullname" . }}-overrides
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
terminationGracePeriodSeconds: 4800
volumes:
- configMap:
name: {{ include "loki-helm.fullname" . }}-loki
name: {{ include "loki-helm.fullname" . }}-config
name: loki
- configMap:
name: {{ include "loki-helm.fullname" . }}-overrides
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
name: overrides
volumes:
- configMap:
name: {{ include "loki-helm.fullname" . }}-loki
name: {{ include "loki-helm.fullname" . }}-config
name: loki
- configMap:
name: {{ include "loki-helm.fullname" . }}-overrides
Expand Down
2 changes: 1 addition & 1 deletion charts/distributed-loki/templates/querier/querier-dpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
name: overrides
volumes:
- configMap:
name: {{ include "loki-helm.fullname" . }}-loki
name: {{ include "loki-helm.fullname" . }}-config
name: loki
- configMap:
name: {{ include "loki-helm.fullname" . }}-overrides
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{ if eq .Values.storage.store "aws-dynamo" }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -47,6 +46,5 @@ spec:
name: loki
volumes:
- configMap:
name: {{ include "loki-helm.fullname" . }}-loki
name: loki
{{ end }}
name: {{ include "loki-helm.fullname" . }}-config
name: loki
4 changes: 4 additions & 0 deletions charts/distributed-loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ storage:
# storage.objectstore -- Type of store to use for your chunks. Currently only gcs is supported.
objectStore: gcs
config:
# storage.config.retentionPeriod -- Retention period of storing logs.
retentionPeriod: 0
# storage.config.retentionDelete -- Enable the deletion of indexes.
retentionDelete: false
# storage.config.storeUrl -- Url of your cassandra instance.
storeUrl: loki-cassandra.monitoring.svc
# storage.config.bucketName -- Name of your gcs bucket.
Expand Down

0 comments on commit 76e18fb

Please sign in to comment.