-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Edward Welch <[email protected]>
- Loading branch information
Showing
15 changed files
with
836 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ read: | |
write: | ||
replicas: 0 | ||
ingester: | ||
replicas: 1 | ||
replicas: 2 | ||
querier: | ||
replicas: 1 | ||
queryFrontend: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
production/helm/loki/templates/ingester/poddisruptionbudget-ingester-rollout.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{- $isDistributed := eq (include "loki.deployment.isDistributed" .) "true" -}} | ||
{{- if and $isDistributed (gt (int .Values.ingester.replicas) 1) (.Values.ingester.zoneAwareReplication.enabled) }} | ||
{{- if kindIs "invalid" .Values.ingester.maxUnavailable }} | ||
{{- fail "`.Values.ingester.maxUnavailable` must be set when `.Values.ingester.replicas` is greater than 1." }} | ||
{{- else }} | ||
apiVersion: {{ include "loki.pdb.apiVersion" . }} | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ include "loki.ingesterFullname" . }}-rollout | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "loki.ingesterLabels" . | nindent 4 }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
rollout-group: ingester | ||
{{- with .Values.ingester.maxUnavailable }} | ||
maxUnavailable: {{ . }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
production/helm/loki/templates/ingester/service-ingester-headless.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
production/helm/loki/templates/ingester/service-ingester-zone-a-headless.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{{- $isDistributed := eq (include "loki.deployment.isDistributed" .) "true" -}} | ||
{{- if and $isDistributed .Values.ingester.zoneAwareReplication.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "loki.ingesterFullname" . }}-zone-a | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "loki.ingesterLabels" . | nindent 4 }} | ||
name: ingester-zone-a | ||
{{- with .Values.ingester.serviceLabels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.loki.serviceAnnotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
clusterIP: None | ||
ports: | ||
- name: http-metrics | ||
port: 3100 | ||
targetPort: http-metrics | ||
protocol: TCP | ||
- name: grpc | ||
port: 9095 | ||
targetPort: grpc | ||
protocol: TCP | ||
{{- if .Values.ingester.appProtocol.grpc }} | ||
appProtocol: {{ .Values.ingester.appProtocol.grpc }} | ||
{{- end }} | ||
selector: | ||
{{- include "loki.ingesterSelectorLabels" . | nindent 4 }} | ||
name: ingester-zone-a | ||
rollout-group: ingester | ||
{{- end -}} |
36 changes: 36 additions & 0 deletions
36
production/helm/loki/templates/ingester/service-ingester-zone-b-headless.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{{- $isDistributed := eq (include "loki.deployment.isDistributed" .) "true" -}} | ||
{{- if and $isDistributed .Values.ingester.zoneAwareReplication.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "loki.ingesterFullname" . }}-zone-b | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "loki.ingesterLabels" . | nindent 4 }} | ||
name: ingester-zone-b | ||
{{- with .Values.ingester.serviceLabels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.loki.serviceAnnotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
clusterIP: None | ||
ports: | ||
- name: http-metrics | ||
port: 3100 | ||
targetPort: http-metrics | ||
protocol: TCP | ||
- name: grpc | ||
port: 9095 | ||
targetPort: grpc | ||
protocol: TCP | ||
{{- if .Values.ingester.appProtocol.grpc }} | ||
appProtocol: {{ .Values.ingester.appProtocol.grpc }} | ||
{{- end }} | ||
selector: | ||
{{- include "loki.ingesterSelectorLabels" . | nindent 4 }} | ||
name: ingester-zone-b | ||
rollout-group: ingester | ||
{{- end -}} |
36 changes: 36 additions & 0 deletions
36
production/helm/loki/templates/ingester/service-ingester-zone-c-headless.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{{- $isDistributed := eq (include "loki.deployment.isDistributed" .) "true" -}} | ||
{{- if and $isDistributed .Values.ingester.zoneAwareReplication.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "loki.ingesterFullname" . }}-zone-c | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "loki.ingesterLabels" . | nindent 4 }} | ||
name: ingester-zone-c | ||
{{- with .Values.ingester.serviceLabels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.loki.serviceAnnotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
clusterIP: None | ||
ports: | ||
- name: http-metrics | ||
port: 3100 | ||
targetPort: http-metrics | ||
protocol: TCP | ||
- name: grpc | ||
port: 9095 | ||
targetPort: grpc | ||
protocol: TCP | ||
{{- if .Values.ingester.appProtocol.grpc }} | ||
appProtocol: {{ .Values.ingester.appProtocol.grpc }} | ||
{{- end }} | ||
selector: | ||
{{- include "loki.ingesterSelectorLabels" . | nindent 4 }} | ||
name: ingester-zone-c | ||
rollout-group: ingester | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.