forked from SeleniumHQ/docker-selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chart(add): add component metrics exporter
Signed-off-by: Viet Nguyen Duc <[email protected]>
- Loading branch information
Showing
11 changed files
with
131 additions
and
32 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
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
33 changes: 33 additions & 0 deletions
33
charts/selenium-grid/templates/graphql-exporter-deployment.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,33 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: &exporter_labels | ||
app: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }} | ||
app.kubernetes.io/name: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }} | ||
{{- include "seleniumGrid.commonLabels" . | nindent 4 }} | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }} | ||
app.kubernetes.io/name: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }} | ||
template: | ||
metadata: | ||
labels: *exporter_labels | ||
annotations: | ||
{{- with .Values.monitoring.exporter.annotations }} | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
spec: | ||
{{- if or .Values.global.seleniumGrid.imagePullSecret .Values.monitoring.exporter.imagePullSecret }} | ||
imagePullSecrets: | ||
- name: {{ default .Values.global.seleniumGrid.imagePullSecret .Values.monitoring.exporter.imagePullSecret }} | ||
{{- end }} | ||
containers: | ||
- name: graphql-exporter | ||
{{- $imageRegistry := default .Values.global.seleniumGrid.imageRegistry .Values.monitoring.exporter.imageRegistry }} | ||
image: {{ printf "%s/%s:%s" $imageRegistry .Values.monitoring.exporter.imageName .Values.monitoring.exporter.imageTag | quote }} | ||
ports: | ||
- containerPort: {{ .Values.monitoring.exporter.port }} |
25 changes: 25 additions & 0 deletions
25
charts/selenium-grid/templates/graphql-exporter-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,25 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }} | ||
app.kubernetes.io/name: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }} | ||
{{- include "seleniumGrid.commonLabels" . | nindent 4 }} | ||
spec: | ||
selector: | ||
app: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }} | ||
app.kubernetes.io/name: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }} | ||
type: {{ .Values.monitoring.exporter.service.type }} | ||
{{- if and (eq .Values.monitoring.exporter.service.type "LoadBalancer") ( .Values.monitoring.exporter.service.loadBalancerIP ) }} | ||
loadBalancerIP: {{ .Values.monitoring.exporter.service.loadBalancerIP }} | ||
{{- end }} | ||
ports: | ||
- name: http-port | ||
protocol: TCP | ||
port: {{ .Values.monitoring.exporter.port }} | ||
targetPort: {{ .Values.monitoring.exporter.port }} | ||
{{- if and (eq .Values.monitoring.exporter.service.type "NodePort") .Values.monitoring.exporter.service.nodePort }} | ||
nodePort: {{ .Values.monitoring.exporter.service.nodePort }} | ||
{{- 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
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
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