mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 14:57:08 +08:00
* Add new chart: Sonarqube Signed-off-by: juan131 <juanariza@vmware.com> * Complete missing parameters and sections Signed-off-by: juan131 <juanariza@vmware.com> * Add ct-values.yaml Signed-off-by: juan131 <juanariza@vmware.com> * Apply suggestions from code review Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> * Run readme-generator after code review suggestions Signed-off-by: juan131 <juanariza@vmware.com> * Fix typo Signed-off-by: juan131 <juanariza@vmware.com> * Add support to expose metrics Signed-off-by: juan131 <juanariza@vmware.com> * Use port 80 for HTTP port on svc by default Signed-off-by: juan131 <juanariza@vmware.com> * Add Autoscaling parameters Signed-off-by: juan131 <juanariza@vmware.com> * [bitnami/sonarqube] Update components versions Signed-off-by: Bitnami Containers <containers@bitnami.com> Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> Co-authored-by: Bitnami Containers <containers@bitnami.com>
30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
{{- if .Values.metrics.jmx.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ printf "%s-jmx-metrics" (include "common.names.fullname" .) }}
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
app.kubernetes.io/component: metrics
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if or .Values.metrics.jmx.service.annotations .Values.commonAnnotations }}
|
|
annotations:
|
|
{{- if .Values.metrics.jmx.service.annotations }}
|
|
{{ include "common.tplvalues.render" ( dict "value" .Values.metrics.jmx.service.annotations "context" $) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- name: metrics
|
|
port: {{ .Values.metrics.jmx.service.ports.metrics }}
|
|
protocol: TCP
|
|
targetPort: metrics
|
|
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
|
|
{{- end }}
|