-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Helm charts: add scheduler ingester profiling support, must specify m…
…ore profiling details in sched config (#3802) Co-authored-by: Robert Smith <[email protected]> Signed-off-by: Robert Smith <[email protected]>
- Loading branch information
1 parent
9616c11
commit 62302d9
Showing
5 changed files
with
67 additions
and
8 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
35 changes: 35 additions & 0 deletions
35
deployment/scheduler/templates/scheduler-ingester-profiling-ingress.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,35 @@ | ||
{{- if and .Values.ingester.applicationConfig.profiling .Values.ingester.applicationConfig.profiling.hostnames }} | ||
{{- $root := . -}} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ include "armada-scheduler.name" . }}-ingester-profiling | ||
namespace: {{ .Release.Namespace }} | ||
annotations: | ||
certmanager.k8s.io/cluster-issuer: {{ required "A value is required for .Values.ingester.applicationConfig.profiling.clusterIssuer" .Values.ingester.applicationConfig.profiling.clusterIssuer }} | ||
cert-manager.io/cluster-issuer: {{ required "A value is required for .Values.ingester.applicationConfig.profiling.clusterIssuer" .Values.ingester.applicationConfig.profiling.clusterIssuer }} | ||
labels: | ||
{{- include "armada-scheduler-ingester.labels.all" . | nindent 4 }} | ||
spec: | ||
rules: | ||
{{- range required "A value is required for .Values.ingester.applicationConfig.profiling.hostnames" .Values.ingester.applicationConfig.profiling.hostnames }} | ||
- host: {{ . }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: {{ include "armada-scheduler.name" $root }}-ingester-profiling | ||
port: | ||
number: {{ $root.Values.ingester.applicationConfig.profiling.port }} | ||
{{ end -}} | ||
tls: | ||
- hosts: | ||
{{- range required "A value is required for .Values.ingester.applicationConfig.profiling.hostnames" .Values.ingester.applicationConfig.profiling.hostnames }} | ||
- {{ . -}} | ||
{{ end }} | ||
secretName: armada-scheduler-ingester-profiling-service-tls | ||
--- | ||
{{- end }} | ||
|
20 changes: 20 additions & 0 deletions
20
deployment/scheduler/templates/scheduler-ingester-profiling-service.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,20 @@ | ||
{{- if and .Values.ingester.applicationConfig.profiling .Values.ingester.applicationConfig.profiling.port }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "armada-scheduler.name" . }}-ingester-profiling | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "armada-scheduler-ingester.labels.all" . | nindent 4 }} | ||
name: {{ include "armada-scheduler.name" . }}-ingester-profiling | ||
spec: | ||
selector: | ||
app: {{ include "armada-scheduler.name" . }}-ingester | ||
{{- include "armada-scheduler-ingester.labels.all" . | nindent 4 }} | ||
ports: | ||
- name: profiling | ||
protocol: TCP | ||
port: {{ .Values.ingester.applicationConfig.profiling.port }} | ||
--- | ||
{{- 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
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