-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable expose profiling port for remaining charts, better profiling e…
…rror handling (#3809) Co-authored-by: Robert Smith <[email protected]> Signed-off-by: Robert Smith <[email protected]>
- Loading branch information
1 parent
f8013fc
commit bf3ba99
Showing
22 changed files
with
345 additions
and
17 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
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.applicationConfig.profiling .Values.applicationConfig.profiling.hostnames }} | ||
{{- $root := . -}} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ include "armada.name" . }}-profiling | ||
namespace: {{ .Release.Namespace }} | ||
annotations: | ||
certmanager.k8s.io/cluster-issuer: {{ required "A value is required for .Values.applicationConfig.profiling.clusterIssuer" .Values.applicationConfig.profiling.clusterIssuer }} | ||
cert-manager.io/cluster-issuer: {{ required "A value is required for .Values.applicationConfig.profiling.clusterIssuer" .Values.applicationConfig.profiling.clusterIssuer }} | ||
labels: | ||
{{- include "armada.labels.all" . | nindent 4 }} | ||
spec: | ||
rules: | ||
{{- range required "A value is required for .Values.applicationConfig.profiling.hostnames" .Values.applicationConfig.profiling.hostnames }} | ||
- host: {{ . }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: {{ include "armada.name" $root }}-server-profiling | ||
port: | ||
number: {{ $root.Values.applicationConfig.profiling.port }} | ||
{{ end -}} | ||
tls: | ||
- hosts: | ||
{{- range required "A value is required for .Values.applicationConfig.profiling.hostnames" .Values.applicationConfig.profiling.hostnames }} | ||
- {{ . -}} | ||
{{ end }} | ||
secretName: {{ include "armada.name" $root }}-profiling-service-tls | ||
--- | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- if and .Values.applicationConfig.profiling .Values.applicationConfig.profiling.port }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "armada.name" . }}-server-profiling | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "armada.labels.all" . | nindent 4 }} | ||
name: {{ include "armada.name" . }}-profiling | ||
spec: | ||
selector: | ||
app: {{ include "armada.name" . }} | ||
ports: | ||
- name: profiling | ||
protocol: TCP | ||
port: {{ .Values.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{{- if and .Values.applicationConfig.profiling .Values.applicationConfig.profiling.hostnames }} | ||
{{- $root := . -}} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ include "binoculars.name" . }}-profiling | ||
namespace: {{ .Release.Namespace }} | ||
annotations: | ||
certmanager.k8s.io/cluster-issuer: {{ required "A value is required for .Values.applicationConfig.profiling.clusterIssuer" .Values.applicationConfig.profiling.clusterIssuer }} | ||
cert-manager.io/cluster-issuer: {{ required "A value is required for .Values.applicationConfig.profiling.clusterIssuer" .Values.applicationConfig.profiling.clusterIssuer }} | ||
labels: | ||
{{- include "binoculars.labels.all" . | nindent 4 }} | ||
spec: | ||
rules: | ||
{{- range required "A value is required for .Values.applicationConfig.profiling.hostnames" .Values.applicationConfig.profiling.hostnames }} | ||
- host: {{ . }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: {{ include "binoculars.name" $root }}-profiling | ||
port: | ||
number: {{ $root.Values.applicationConfig.profiling.port }} | ||
{{ end -}} | ||
tls: | ||
- hosts: | ||
{{- range required "A value is required for .Values.applicationConfig.profiling.hostnames" .Values.applicationConfig.profiling.hostnames }} | ||
- {{ . -}} | ||
{{ end }} | ||
secretName: {{ include "binoculars.name" $root }}-profiling-service-tls | ||
--- | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- if and .Values.applicationConfig.profiling .Values.applicationConfig.profiling.port }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "binoculars.name" . }}-profiling | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "binoculars.labels.all" . | nindent 4 }} | ||
name: {{ include "binoculars.name" . }}-profiling | ||
spec: | ||
selector: | ||
app: {{ include "binoculars.name" . }} | ||
ports: | ||
- name: profiling | ||
protocol: TCP | ||
port: {{ .Values.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
35 changes: 35 additions & 0 deletions
35
deployment/event-ingester/templates/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.applicationConfig.profiling .Values.applicationConfig.profiling.hostnames }} | ||
{{- $root := . -}} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ include "event_ingester.name" . }}-profiling | ||
namespace: {{ .Release.Namespace }} | ||
annotations: | ||
certmanager.k8s.io/cluster-issuer: {{ required "A value is required for .Values.applicationConfig.profiling.clusterIssuer" .Values.applicationConfig.profiling.clusterIssuer }} | ||
cert-manager.io/cluster-issuer: {{ required "A value is required for .Values.applicationConfig.profiling.clusterIssuer" .Values.applicationConfig.profiling.clusterIssuer }} | ||
labels: | ||
{{- include "event_ingester.labels.all" . | nindent 4 }} | ||
spec: | ||
rules: | ||
{{- range required "A value is required for .Values.applicationConfig.profiling.hostnames" .Values.applicationConfig.profiling.hostnames }} | ||
- host: {{ . }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: {{ include "event_ingester.name" $root }}-profiling | ||
port: | ||
number: {{ $root.Values.applicationConfig.profiling.port }} | ||
{{ end -}} | ||
tls: | ||
- hosts: | ||
{{- range required "A value is required for .Values.applicationConfig.profiling.hostnames" .Values.applicationConfig.profiling.hostnames }} | ||
- {{ . -}} | ||
{{ end }} | ||
secretName: {{ include "event_ingester.name" $root }}-profiling-service-tls | ||
--- | ||
{{- end }} | ||
|
19 changes: 19 additions & 0 deletions
19
deployment/event-ingester/templates/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,19 @@ | ||
{{- if and .Values.applicationConfig.profiling .Values.applicationConfig.profiling.port }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "event_ingester.name" . }}-profiling | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "event_ingester.labels.all" . | nindent 4 }} | ||
name: {{ include "event_ingester.name" . }}-profiling | ||
spec: | ||
selector: | ||
app: {{ include "event_ingester.name" . }} | ||
ports: | ||
- name: profiling | ||
protocol: TCP | ||
port: {{ .Values.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{{- if and .Values.applicationConfig.profiling .Values.applicationConfig.profiling.hostnames }} | ||
{{- $root := . -}} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ include "executor.name" . }}-profiling | ||
namespace: {{ .Release.Namespace }} | ||
annotations: | ||
certmanager.k8s.io/cluster-issuer: {{ required "A value is required for .Values.applicationConfig.profiling.clusterIssuer" .Values.applicationConfig.profiling.clusterIssuer }} | ||
cert-manager.io/cluster-issuer: {{ required "A value is required for .Values.applicationConfig.profiling.clusterIssuer" .Values.applicationConfig.profiling.clusterIssuer }} | ||
labels: | ||
{{- include "executor.labels.all" . | nindent 4 }} | ||
spec: | ||
rules: | ||
{{- range required "A value is required for .Values.applicationConfig.profiling.hostnames" .Values.applicationConfig.profiling.hostnames }} | ||
- host: {{ . }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: {{ include "executor.name" $root }}-profiling | ||
port: | ||
number: {{ $root.Values.applicationConfig.profiling.port }} | ||
{{ end -}} | ||
tls: | ||
- hosts: | ||
{{- range required "A value is required for .Values.applicationConfig.profiling.hostnames" .Values.applicationConfig.profiling.hostnames }} | ||
- {{ . -}} | ||
{{ end }} | ||
secretName: {{ include "executor.name" $root }}-profiling-service-tls | ||
--- | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- if and .Values.applicationConfig.profiling .Values.applicationConfig.profiling.port }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "executor.name" . }}-profiling | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "executor.labels.all" . | nindent 4 }} | ||
name: {{ include "executor.name" . }}-profiling | ||
spec: | ||
selector: | ||
app: {{ include "executor.name" . }} | ||
ports: | ||
- name: profiling | ||
protocol: TCP | ||
port: {{ .Values.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
35 changes: 35 additions & 0 deletions
35
deployment/lookout-ingester-v2/templates/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.applicationConfig.profiling .Values.applicationConfig.profiling.hostnames }} | ||
{{- $root := . -}} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ include "lookout_ingester_v2.name" . }}-profiling | ||
namespace: {{ .Release.Namespace }} | ||
annotations: | ||
certmanager.k8s.io/cluster-issuer: {{ required "A value is required for .Values.applicationConfig.profiling.clusterIssuer" .Values.applicationConfig.profiling.clusterIssuer }} | ||
cert-manager.io/cluster-issuer: {{ required "A value is required for .Values.applicationConfig.profiling.clusterIssuer" .Values.applicationConfig.profiling.clusterIssuer }} | ||
labels: | ||
{{- include "lookout_ingester_v2.labels.all" . | nindent 4 }} | ||
spec: | ||
rules: | ||
{{- range required "A value is required for .Values.applicationConfig.profiling.hostnames" .Values.applicationConfig.profiling.hostnames }} | ||
- host: {{ . }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: {{ include "lookout_ingester_v2.name" $root }}-profiling | ||
port: | ||
number: {{ $root.Values.applicationConfig.profiling.port }} | ||
{{ end -}} | ||
tls: | ||
- hosts: | ||
{{- range required "A value is required for .Values.applicationConfig.profiling.hostnames" .Values.applicationConfig.profiling.hostnames }} | ||
- {{ . -}} | ||
{{ end }} | ||
secretName: {{ include "lookout_ingester_v2.name" $root }}-profiling-service-tls | ||
--- | ||
{{- end }} | ||
|
19 changes: 19 additions & 0 deletions
19
deployment/lookout-ingester-v2/templates/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,19 @@ | ||
{{- if and .Values.applicationConfig.profiling .Values.applicationConfig.profiling.port }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "lookout_ingester_v2.name" . }}-profiling | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "lookout_ingester_v2.labels.all" . | nindent 4 }} | ||
name: {{ include "lookout_ingester_v2.name" . }}-profiling | ||
spec: | ||
selector: | ||
app: {{ include "lookout_ingester_v2.name" . }} | ||
ports: | ||
- name: profiling | ||
protocol: TCP | ||
port: {{ .Values.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{{- if and .Values.applicationConfig.profiling .Values.applicationConfig.profiling.hostnames }} | ||
{{- $root := . -}} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ include "lookout_v2.name" . }}-profiling | ||
namespace: {{ .Release.Namespace }} | ||
annotations: | ||
certmanager.k8s.io/cluster-issuer: {{ required "A value is required for .Values.applicationConfig.profiling.clusterIssuer" .Values.applicationConfig.profiling.clusterIssuer }} | ||
cert-manager.io/cluster-issuer: {{ required "A value is required for .Values.applicationConfig.profiling.clusterIssuer" .Values.applicationConfig.profiling.clusterIssuer }} | ||
labels: | ||
{{- include "lookout_v2.labels.all" . | nindent 4 }} | ||
spec: | ||
rules: | ||
{{- range required "A value is required for .Values.applicationConfig.profiling.hostnames" .Values.applicationConfig.profiling.hostnames }} | ||
- host: {{ . }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: {{ include "lookout_v2.name" $root }}-profiling | ||
port: | ||
number: {{ $root.Values.applicationConfig.profiling.port }} | ||
{{ end -}} | ||
tls: | ||
- hosts: | ||
{{- range required "A value is required for .Values.applicationConfig.profiling.hostnames" .Values.applicationConfig.profiling.hostnames }} | ||
- {{ . -}} | ||
{{ end }} | ||
secretName: {{ include "lookout_v2.name" $root }}-profiling-service-tls | ||
--- | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- if and .Values.applicationConfig.profiling .Values.applicationConfig.profiling.port }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "lookout_v2.name" . }}-profiling | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "lookout_v2.labels.all" . | nindent 4 }} | ||
name: {{ include "lookout_v2.name" . }}-profiling | ||
spec: | ||
selector: | ||
app: {{ include "lookout_v2.name" . }} | ||
ports: | ||
- name: profiling | ||
protocol: TCP | ||
port: {{ .Values.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
Oops, something went wrong.