Skip to content

Commit 1256d14

Browse files
committed
docs: Helm: Don't show defaults for loki section (#12747)
(cherry picked from commit 1933f0e)
1 parent 0f536ce commit 1256d14

File tree

2 files changed

+9
-203
lines changed

2 files changed

+9
-203
lines changed

docs/sources/setup/install/helm/reference.md

+5-201
Original file line numberDiff line numberDiff line change
@@ -3455,9 +3455,9 @@ null
34553455
<tr>
34563456
<td>gateway.basicAuth.htpasswd</td>
34573457
<td>string</td>
3458-
<td>Uses the specified users from the `loki.tenants` list to create the htpasswd file if `loki.tenants` is not set, the `gateway.basicAuth.username` and `gateway.basicAuth.password` are used The value is templated using `tpl`. Override this to use a custom htpasswd, e.g. in case the default causes high CPU load.</td>
3459-
<td><pre lang="json">
3460-
"{{ if .Values.loki.tenants }}\n\n {{- range $t := .Values.loki.tenants }}\n{{ htpasswd (required \"All tenants must have a 'name' set\" $t.name) (required \"All tenants must have a 'password' set\" $t.password) }}\n\n {{- end }}\n{{ else }} {{ htpasswd (required \"'gateway.basicAuth.username' is required\" .Values.gateway.basicAuth.username) (required \"'gateway.basicAuth.password' is required\" .Values.gateway.basicAuth.password) }} {{ end }}"
3458+
<td>Uses the specified users from the `loki.tenants` list to create the htpasswd file. if `loki.tenants` is not set, the `gateway.basicAuth.username` and `gateway.basicAuth.password` are used. The value is templated using `tpl`. Override this to use a custom htpasswd, e.g. in case the default causes high CPU load.</td>
3459+
<td><pre lang="">
3460+
Either `loki.tenants` or `gateway.basicAuth.username` and `gateway.basicAuth.password`.
34613461
</pre>
34623462
</td>
34633463
</tr>
@@ -5200,204 +5200,8 @@ null
52005200
<td>loki</td>
52015201
<td>object</td>
52025202
<td>Configuration for running Loki</td>
5203-
<td><pre lang="json">
5204-
{
5205-
"analytics": {},
5206-
"annotations": {},
5207-
"auth_enabled": true,
5208-
"commonConfig": {
5209-
"compactor_address": "{{ include \"loki.compactorAddress\" . }}",
5210-
"path_prefix": "/var/loki",
5211-
"replication_factor": 3
5212-
},
5213-
"compactor": {},
5214-
"config": "{{- if .Values.enterprise.enabled}}\n{{- tpl .Values.enterprise.config . }}\n{{- else }}\nauth_enabled: {{ .Values.loki.auth_enabled }}\n{{- end }}\n\n{{- with .Values.loki.server }}\nserver:\n {{- toYaml . | nindent 2}}\n{{- end}}\n\nmemberlist:\n{{- if .Values.loki.memberlistConfig }}\n {{- toYaml .Values.loki.memberlistConfig | nindent 2 }}\n{{- else }}\n{{- if .Values.loki.extraMemberlistConfig}}\n{{- toYaml .Values.loki.extraMemberlistConfig | nindent 2}}\n{{- end }}\n join_members:\n - {{ include \"loki.memberlist\" . }}\n {{- with .Values.migrate.fromDistributed }}\n {{- if .enabled }}\n - {{ .memberlistService }}\n {{- end }}\n {{- end }}\n{{- end }}\n\n{{- with .Values.loki.ingester }}\ningester:\n {{- tpl (. | toYaml) $ | nindent 4 }}\n{{- end }}\n\n{{- if .Values.loki.commonConfig}}\ncommon:\n{{- toYaml .Values.loki.commonConfig | nindent 2}}\n storage:\n {{- include \"loki.commonStorageConfig\" . | nindent 4}}\n{{- end}}\n\n{{- with .Values.loki.limits_config }}\nlimits_config:\n {{- tpl (. | toYaml) $ | nindent 4 }}\n{{- end }}\n\nruntime_config:\n file: /etc/loki/runtime-config/runtime-config.yaml\n\n{{- with .Values.chunksCache }}\n{{- if .enabled }}\nchunk_store_config:\n chunk_cache_config:\n default_validity: {{ .defaultValidity }}\n background:\n writeback_goroutines: {{ .writebackParallelism }}\n writeback_buffer: {{ .writebackBuffer }}\n writeback_size_limit: {{ .writebackSizeLimit }}\n memcached:\n batch_size: {{ .batchSize }}\n parallelism: {{ .parallelism }}\n memcached_client:\n addresses: dnssrvnoa+_memcached-client._tcp.{{ template \"loki.fullname\" $ }}-chunks-cache.{{ $.Release.Namespace }}.svc\n consistent_hash: true\n timeout: {{ .timeout }}\n max_idle_conns: 72\n{{- end }}\n{{- end }}\n\n{{- if .Values.loki.schemaConfig }}\nschema_config:\n{{- toYaml .Values.loki.schemaConfig | nindent 2}}\n{{- end }}\n\n{{- if .Values.loki.useTestSchema }}\nschema_config:\n{{- toYaml .Values.loki.testSchemaConfig | nindent 2}}\n{{- end }}\n\n{{ include \"loki.rulerConfig\" . }}\n\n{{- if or .Values.tableManager.retention_deletes_enabled .Values.tableManager.retention_period }}\ntable_manager:\n retention_deletes_enabled: {{ .Values.tableManager.retention_deletes_enabled }}\n retention_period: {{ .Values.tableManager.retention_period }}\n{{- end }}\n\nquery_range:\n align_queries_with_step: true\n {{- with .Values.loki.query_range }}\n {{- tpl (. | toYaml) $ | nindent 4 }}\n {{- end }}\n {{- if .Values.resultsCache.enabled }}\n {{- with .Values.resultsCache }}\n cache_results: true\n results_cache:\n cache:\n default_validity: {{ .defaultValidity }}\n background:\n writeback_goroutines: {{ .writebackParallelism }}\n writeback_buffer: {{ .writebackBuffer }}\n writeback_size_limit: {{ .writebackSizeLimit }}\n memcached_client:\n consistent_hash: true\n addresses: dnssrvnoa+_memcached-client._tcp.{{ template \"loki.fullname\" $ }}-results-cache.{{ $.Release.Namespace }}.svc\n timeout: {{ .timeout }}\n update_interval: 1m\n {{- end }}\n {{- end }}\n\n{{- with .Values.loki.storage_config }}\nstorage_config:\n {{- tpl (. | toYaml) $ | nindent 4 }}\n{{- end }}\n\n{{- with .Values.loki.query_scheduler }}\nquery_scheduler:\n {{- tpl (. | toYaml) $ | nindent 4 }}\n{{- end }}\n\n{{- with .Values.loki.compactor }}\ncompactor:\n {{- tpl (. | toYaml) $ | nindent 4 }}\n{{- end }}\n\n{{- with .Values.loki.analytics }}\nanalytics:\n {{- tpl (. | toYaml) $ | nindent 4 }}\n{{- end }}\n\n{{- with .Values.loki.querier }}\nquerier:\n {{- tpl (. | toYaml) $ | nindent 4 }}\n{{- end }}\n\n{{- with .Values.loki.index_gateway }}\nindex_gateway:\n {{- tpl (. | toYaml) $ | nindent 4 }}\n{{- end }}\n\n{{- with .Values.loki.frontend }}\nfrontend:\n {{- tpl (. | toYaml) $ | nindent 4 }}\n{{- end }}\n\n{{- with .Values.loki.frontend_worker }}\nfrontend_worker:\n {{- tpl (. | toYaml) $ | nindent 4 }}\n{{- end }}\n\n{{- with .Values.loki.distributor }}\ndistributor:\n {{- tpl (. | toYaml) $ | nindent 4 }}\n{{- end }}\n\ntracing:\n enabled: {{ .Values.loki.tracing.enabled }}\n",
5215-
"configObjectName": "{{ include \"loki.name\" . }}",
5216-
"configStorageType": "ConfigMap",
5217-
"containerSecurityContext": {
5218-
"allowPrivilegeEscalation": false,
5219-
"capabilities": {
5220-
"drop": [
5221-
"ALL"
5222-
]
5223-
},
5224-
"readOnlyRootFilesystem": true
5225-
},
5226-
"distributor": {},
5227-
"enableServiceLinks": true,
5228-
"extraMemberlistConfig": {},
5229-
"frontend": {
5230-
"scheduler_address": "{{ include \"loki.querySchedulerAddress\" . }}",
5231-
"tail_proxy_url": "{{ include \"loki.querierAddress\" . }}"
5232-
},
5233-
"frontend_worker": {
5234-
"scheduler_address": "{{ include \"loki.querySchedulerAddress\" . }}"
5235-
},
5236-
"generatedConfigObjectName": "{{ include \"loki.name\" . }}",
5237-
"image": {
5238-
"digest": null,
5239-
"pullPolicy": "IfNotPresent",
5240-
"registry": "docker.io",
5241-
"repository": "grafana/loki",
5242-
"tag": null
5243-
},
5244-
"index_gateway": {
5245-
"mode": "simple"
5246-
},
5247-
"ingester": {},
5248-
"limits_config": {
5249-
"max_cache_freshness_per_query": "10m",
5250-
"query_timeout": "300s",
5251-
"reject_old_samples": true,
5252-
"reject_old_samples_max_age": "168h",
5253-
"split_queries_by_interval": "15m"
5254-
},
5255-
"memberlistConfig": {},
5256-
"memcached": {
5257-
"chunk_cache": {
5258-
"batch_size": 256,
5259-
"enabled": false,
5260-
"host": "",
5261-
"parallelism": 10,
5262-
"service": "memcached-client"
5263-
},
5264-
"results_cache": {
5265-
"default_validity": "12h",
5266-
"enabled": false,
5267-
"host": "",
5268-
"service": "memcached-client",
5269-
"timeout": "500ms"
5270-
}
5271-
},
5272-
"podAnnotations": {},
5273-
"podLabels": {},
5274-
"podSecurityContext": {
5275-
"fsGroup": 10001,
5276-
"runAsGroup": 10001,
5277-
"runAsNonRoot": true,
5278-
"runAsUser": 10001
5279-
},
5280-
"querier": {},
5281-
"query_range": {},
5282-
"query_scheduler": {},
5283-
"readinessProbe": {
5284-
"httpGet": {
5285-
"path": "/ready",
5286-
"port": "http-metrics"
5287-
},
5288-
"initialDelaySeconds": 30,
5289-
"timeoutSeconds": 1
5290-
},
5291-
"revisionHistoryLimit": 10,
5292-
"rulerConfig": {},
5293-
"runtimeConfig": {},
5294-
"schemaConfig": {},
5295-
"server": {
5296-
"grpc_listen_port": 9095,
5297-
"http_listen_port": 3100,
5298-
"http_server_read_timeout": "600s",
5299-
"http_server_write_timeout": "600s"
5300-
},
5301-
"serviceAnnotations": {},
5302-
"serviceLabels": {},
5303-
"storage": {
5304-
"azure": {
5305-
"accountKey": null,
5306-
"accountName": null,
5307-
"connectionString": null,
5308-
"endpointSuffix": null,
5309-
"requestTimeout": null,
5310-
"useFederatedToken": false,
5311-
"useManagedIdentity": false,
5312-
"userAssignedId": null
5313-
},
5314-
"bucketNames": {
5315-
"admin": "admin",
5316-
"chunks": "chunks",
5317-
"ruler": "ruler"
5318-
},
5319-
"filesystem": {
5320-
"chunks_directory": "/var/loki/chunks",
5321-
"rules_directory": "/var/loki/rules"
5322-
},
5323-
"gcs": {
5324-
"chunkBufferSize": 0,
5325-
"enableHttp2": true,
5326-
"requestTimeout": "0s"
5327-
},
5328-
"s3": {
5329-
"accessKeyId": null,
5330-
"backoff_config": {},
5331-
"endpoint": null,
5332-
"http_config": {},
5333-
"insecure": false,
5334-
"region": null,
5335-
"s3": null,
5336-
"s3ForcePathStyle": false,
5337-
"secretAccessKey": null,
5338-
"signatureVersion": null
5339-
},
5340-
"swift": {
5341-
"auth_url": null,
5342-
"auth_version": null,
5343-
"connect_timeout": null,
5344-
"container_name": null,
5345-
"domain_id": null,
5346-
"domain_name": null,
5347-
"internal": null,
5348-
"max_retries": null,
5349-
"password": null,
5350-
"project_domain_id": null,
5351-
"project_domain_name": null,
5352-
"project_id": null,
5353-
"project_name": null,
5354-
"region_name": null,
5355-
"request_timeout": null,
5356-
"user_domain_id": null,
5357-
"user_domain_name": null,
5358-
"user_id": null,
5359-
"username": null
5360-
},
5361-
"type": "s3"
5362-
},
5363-
"storage_config": {
5364-
"boltdb_shipper": {
5365-
"index_gateway_client": {
5366-
"server_address": "{{ include \"loki.indexGatewayAddress\" . }}"
5367-
}
5368-
},
5369-
"hedging": {
5370-
"at": "250ms",
5371-
"max_per_second": 20,
5372-
"up_to": 3
5373-
},
5374-
"tsdb_shipper": {
5375-
"index_gateway_client": {
5376-
"server_address": "{{ include \"loki.indexGatewayAddress\" . }}"
5377-
}
5378-
}
5379-
},
5380-
"structuredConfig": {},
5381-
"tenants": [],
5382-
"testSchemaConfig": {
5383-
"configs": [
5384-
{
5385-
"from": "2024-04-01",
5386-
"index": {
5387-
"period": "24h",
5388-
"prefix": "index_"
5389-
},
5390-
"object_store": "filesystem",
5391-
"schema": "v13",
5392-
"store": "tsdb"
5393-
}
5394-
]
5395-
},
5396-
"tracing": {
5397-
"enabled": false
5398-
},
5399-
"useTestSchema": false
5400-
}
5203+
<td><pre lang="">
5204+
See values.yaml
54015205
</pre>
54025206
</td>
54035207
</tr>

production/helm/loki/values.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ deploymentMode: SimpleScalable
3737
#
3838
######################################################################################################################
3939
# -- Configuration for running Loki
40+
# @default -- See values.yaml
4041
loki:
4142
# Configures the readiness probe for all of the Loki pods
4243
readinessProbe:
@@ -1011,10 +1012,11 @@ gateway:
10111012
username: null
10121013
# -- The basic auth password for the gateway
10131014
password: null
1014-
# -- Uses the specified users from the `loki.tenants` list to create the htpasswd file
1015-
# if `loki.tenants` is not set, the `gateway.basicAuth.username` and `gateway.basicAuth.password` are used
1015+
# -- Uses the specified users from the `loki.tenants` list to create the htpasswd file.
1016+
# if `loki.tenants` is not set, the `gateway.basicAuth.username` and `gateway.basicAuth.password` are used.
10161017
# The value is templated using `tpl`. Override this to use a custom htpasswd, e.g. in case the default causes
10171018
# high CPU load.
1019+
# @default -- Either `loki.tenants` or `gateway.basicAuth.username` and `gateway.basicAuth.password`.
10181020
htpasswd: >-
10191021
{{ if .Values.loki.tenants }}
10201022

0 commit comments

Comments
 (0)