Skip to content

Commit

Permalink
docs: update README format
Browse files Browse the repository at this point in the history
Signed-off-by: Loc Mai <[email protected]>
  • Loading branch information
locmai committed Jun 26, 2023
1 parent 01f39f1 commit ee41634
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 90 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ Kubernetes: `^1.19.0-0`
| distributor.&ZeroWidthSpace;affinity.&ZeroWidthSpace;podAntiAffinity.&ZeroWidthSpace;preferredDuringSchedulingIgnoredDuringExecution[0].&ZeroWidthSpace;weight | int | `100` | |
| distributor.&ZeroWidthSpace;annotations | object | `{}` | |
| distributor.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;behavior | object | `{}` | Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-configurable-scaling-behavior |
| distributor.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;customMetrics | list | `[]` | Optional custom and external metrics for the distributor pods to scale on In order to use this option , define a list of of specific following either: - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects For example: - type: External external: metric: name: queue_messages_ready selector: matchLabels: queue: "worker_tasks" target: type: AverageValue averageValue: 30 |
| distributor.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;enabled | bool | `false` | Creates a HorizontalPodAutoscaler for the distributor pods. |
| distributor.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;extraMetrics | list | `[]` | Optional custom and external metrics for the distributor pods to scale on In order to use this option , define a list of of specific following either: - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects For example: <br> <code> - type: External <br> &nbsp; external: <br> &nbsp; &nbsp; metric:<br/> &nbsp; &nbsp; &nbsp; name: queue_messages_ready <br> &nbsp; &nbsp; &nbsp; selector:<br/> &nbsp; &nbsp; &nbsp; &nbsp; matchLabels:<br/> &nbsp; &nbsp; &nbsp; &nbsp; queue: "worker_tasks"<br/> &nbsp; &nbsp; target:<br/> &nbsp; &nbsp; &nbsp; type: AverageValue<br/> &nbsp; &nbsp; &nbsp; averageValue: 30<br/> </code> |
| distributor.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;maxReplicas | int | `30` | |
| distributor.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;minReplicas | int | `2` | |
| distributor.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;targetCPUUtilizationPercentage | int | `80` | |
Expand Down Expand Up @@ -327,8 +327,8 @@ Kubernetes: `^1.19.0-0`
| ingester.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;behavior.&ZeroWidthSpace;scaleDown.&ZeroWidthSpace;policies | list | `[{"periodSeconds":1800,"type":"Pods","value":1}]` | see https://cortexmetrics.io/docs/guides/ingesters-scaling-up-and-down/#scaling-down for scaledown details |
| ingester.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;behavior.&ZeroWidthSpace;scaleDown.&ZeroWidthSpace;stabilizationWindowSeconds | int | `3600` | uses metrics from the past 1h to make scaleDown decisions |
| ingester.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;behavior.&ZeroWidthSpace;scaleUp.&ZeroWidthSpace;policies | list | `[{"periodSeconds":1800,"type":"Pods","value":1}]` | This default scaleup policy allows adding 1 pod every 30 minutes. Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-configurable-scaling-behavior |
| ingester.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;customMetrics | list | `[]` | Optional custom and external metrics for the ingester pods to scale on In order to use this option , define a list of of specific following either: - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects For example: - type: External external: metric: name: queue_messages_ready selector: matchLabels: queue: "worker_tasks" target: type: AverageValue averageValue: 30 |
| ingester.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;enabled | bool | `false` | |
| ingester.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;extraMetrics | list | `[]` | Optional custom and external metrics for the ingester pods to scale on In order to use this option , define a list of of specific following either: - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects For example: <br> <code> - type: External <br> &nbsp; external: <br> &nbsp; &nbsp; metric:<br/> &nbsp; &nbsp; &nbsp; name: queue_messages_ready <br> &nbsp; &nbsp; &nbsp; selector:<br/> &nbsp; &nbsp; &nbsp; &nbsp; matchLabels:<br/> &nbsp; &nbsp; &nbsp; &nbsp; queue: "worker_tasks"<br/> &nbsp; &nbsp; target:<br/> &nbsp; &nbsp; &nbsp; type: AverageValue<br/> &nbsp; &nbsp; &nbsp; averageValue: 30<br/> </code> |
| ingester.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;maxReplicas | int | `30` | |
| ingester.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;minReplicas | int | `3` | |
| ingester.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;targetMemoryUtilizationPercentage | int | `80` | |
Expand Down Expand Up @@ -426,8 +426,8 @@ Kubernetes: `^1.19.0-0`
| nginx.&ZeroWidthSpace;affinity | object | `{}` | |
| nginx.&ZeroWidthSpace;annotations | object | `{}` | |
| nginx.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;behavior | object | `{}` | Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-configurable-scaling-behavior |
| nginx.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;customMetrics | list | `[]` | Optional custom and external metrics for the nginx pods to scale on In order to use this option , define a list of of specific following either: - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects For example: - type: External external: metric: name: queue_messages_ready selector: matchLabels: queue: "worker_tasks" target: type: AverageValue averageValue: 30 |
| nginx.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;enabled | bool | `false` | Creates a HorizontalPodAutoscaler for the nginx pods. |
| nginx.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;extraMetrics | list | `[]` | Optional custom and external metrics for the nginx pods to scale on In order to use this option , define a list of of specific following either: - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects For example: <br> <code> - type: External <br> &nbsp; external: <br> &nbsp; &nbsp; metric:<br/> &nbsp; &nbsp; &nbsp; name: queue_messages_ready <br> &nbsp; &nbsp; &nbsp; selector:<br/> &nbsp; &nbsp; &nbsp; &nbsp; matchLabels:<br/> &nbsp; &nbsp; &nbsp; &nbsp; queue: "worker_tasks"<br/> &nbsp; &nbsp; target:<br/> &nbsp; &nbsp; &nbsp; type: AverageValue<br/> &nbsp; &nbsp; &nbsp; averageValue: 30<br/> </code> |
| nginx.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;maxReplicas | int | `30` | |
| nginx.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;minReplicas | int | `2` | |
| nginx.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;targetCPUUtilizationPercentage | int | `80` | |
Expand Down Expand Up @@ -574,8 +574,8 @@ Kubernetes: `^1.19.0-0`
| querier.&ZeroWidthSpace;affinity.&ZeroWidthSpace;podAntiAffinity.&ZeroWidthSpace;preferredDuringSchedulingIgnoredDuringExecution[0].&ZeroWidthSpace;weight | int | `100` | |
| querier.&ZeroWidthSpace;annotations | object | `{}` | |
| querier.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;behavior | object | `{}` | Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-configurable-scaling-behavior |
| querier.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;customMetrics | list | `[]` | Optional custom and external metrics for the querier pods to scale on In order to use this option , define a list of of specific following either: - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects For example: - type: External external: metric: name: queue_messages_ready selector: matchLabels: queue: "worker_tasks" target: type: AverageValue averageValue: 30 |
| querier.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;enabled | bool | `false` | Creates a HorizontalPodAutoscaler for the querier pods. |
| querier.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;extraMetrics | list | `[]` | Optional custom and external metrics for the querier pods to scale on In order to use this option , define a list of of specific following either: - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects For example: <br> <code> - type: External <br> &nbsp; external: <br> &nbsp; &nbsp; metric:<br/> &nbsp; &nbsp; &nbsp; name: queue_messages_ready <br> &nbsp; &nbsp; &nbsp; selector:<br/> &nbsp; &nbsp; &nbsp; &nbsp; matchLabels:<br/> &nbsp; &nbsp; &nbsp; &nbsp; queue: "worker_tasks"<br/> &nbsp; &nbsp; target:<br/> &nbsp; &nbsp; &nbsp; type: AverageValue<br/> &nbsp; &nbsp; &nbsp; averageValue: 30<br/> </code> |
| querier.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;maxReplicas | int | `30` | |
| querier.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;minReplicas | int | `2` | |
| querier.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;targetCPUUtilizationPercentage | int | `80` | |
Expand Down Expand Up @@ -717,8 +717,8 @@ Kubernetes: `^1.19.0-0`
| ruler.&ZeroWidthSpace;affinity | object | `{}` | |
| ruler.&ZeroWidthSpace;annotations | object | `{}` | |
| ruler.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;behavior | object | `{}` | Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-configurable-scaling-behavior |
| ruler.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;customMetrics | list | `[]` | Optional custom and external metrics for the ruler pods to scale on In order to use this option , define a list of of specific following either: - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects For example: - type: External external: metric: name: queue_messages_ready selector: matchLabels: queue: "worker_tasks" target: type: AverageValue averageValue: 30 |
| ruler.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;enabled | bool | `false` | Creates a HorizontalPodAutoscaler for the ruler. |
| ruler.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;extraMetrics | list | `[]` | Optional custom and external metrics for the ruler pods to scale on In order to use this option , define a list of of specific following either: - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects For example: <br> <code> - type: External <br> &nbsp; external: <br> &nbsp; &nbsp; metric:<br/> &nbsp; &nbsp; &nbsp; name: queue_messages_ready <br> &nbsp; &nbsp; &nbsp; selector:<br/> &nbsp; &nbsp; &nbsp; &nbsp; matchLabels:<br/> &nbsp; &nbsp; &nbsp; &nbsp; queue: "worker_tasks"<br/> &nbsp; &nbsp; target:<br/> &nbsp; &nbsp; &nbsp; type: AverageValue<br/> &nbsp; &nbsp; &nbsp; averageValue: 30<br/> </code> |
| ruler.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;maxReplicas | int | `30` | |
| ruler.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;minReplicas | int | `2` | |
| ruler.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;targetCPUUtilizationPercentage | int | `80` | |
Expand Down Expand Up @@ -796,8 +796,8 @@ Kubernetes: `^1.19.0-0`
| store_gateway.&ZeroWidthSpace;affinity.&ZeroWidthSpace;podAntiAffinity.&ZeroWidthSpace;preferredDuringSchedulingIgnoredDuringExecution[0].&ZeroWidthSpace;weight | int | `100` | |
| store_gateway.&ZeroWidthSpace;annotations | object | `{}` | |
| store_gateway.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;behavior | object | `{}` | Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-configurable-scaling-behavior |
| store_gateway.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;customMetrics | list | `[]` | Optional custom and external metrics for the store gateway pods to scale on In order to use this option , define a list of of specific following either: - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects For example: - type: External external: metric: name: queue_messages_ready selector: matchLabels: queue: "worker_tasks" target: type: AverageValue averageValue: 30 |
| store_gateway.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;enabled | bool | `false` | |
| store_gateway.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;extraMetrics | list | `[]` | Optional custom and external metrics for the store gateway pods to scale on In order to use this option , define a list of of specific following either: - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics - https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects For example: <br> <code> - type: External <br> &nbsp; external: <br> &nbsp; &nbsp; metric:<br/> &nbsp; &nbsp; &nbsp; name: queue_messages_ready <br> &nbsp; &nbsp; &nbsp; selector:<br/> &nbsp; &nbsp; &nbsp; &nbsp; matchLabels:<br/> &nbsp; &nbsp; &nbsp; &nbsp; queue: "worker_tasks"<br/> &nbsp; &nbsp; target:<br/> &nbsp; &nbsp; &nbsp; type: AverageValue<br/> &nbsp; &nbsp; &nbsp; averageValue: 30<br/> </code> |
| store_gateway.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;maxReplicas | int | `30` | |
| store_gateway.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;minReplicas | int | `3` | |
| store_gateway.&ZeroWidthSpace;autoscaling.&ZeroWidthSpace;targetMemoryUtilizationPercentage | int | `80` | |
Expand Down
2 changes: 1 addition & 1 deletion templates/distributor/distributor-hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
type: Utilization
averageUtilization: {{ . }}
{{- end }}
{{- with .customMetrics }}
{{- with .extraMetrics }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .behavior }}
Expand Down
2 changes: 1 addition & 1 deletion templates/ingester/ingester-hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
target:
type: Utilization
averageUtilization: {{ .targetMemoryUtilizationPercentage }}
{{- with .customMetrics }}
{{- with .extraMetrics }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .behavior }}
Expand Down
2 changes: 1 addition & 1 deletion templates/nginx/nginx-hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
type: Utilization
averageUtilization: {{ . }}
{{- end }}
{{- with .customMetrics }}
{{- with .extraMetrics }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .behavior }}
Expand Down
2 changes: 1 addition & 1 deletion templates/querier/querier-hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
type: Utilization
averageUtilization: {{ . }}
{{- end }}
{{- with .customMetrics }}
{{- with .extraMetrics }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .behavior }}
Expand Down
2 changes: 1 addition & 1 deletion templates/ruler/ruler-hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
type: Utilization
averageUtilization: {{ . }}
{{- end }}
{{- with .customMetrics }}
{{- with .extraMetrics }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .behavior }}
Expand Down
2 changes: 1 addition & 1 deletion templates/store-gateway/store-gateway-hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
target:
type: Utilization
averageUtilization: {{ .targetMemoryUtilizationPercentage }}
{{- with .customMetrics }}
{{- with .extraMetrics }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .behavior }}
Expand Down
Loading

0 comments on commit ee41634

Please sign in to comment.