Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{{- if .Values.service.create }}
{{- if .Values.metrics.service.create }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "app.fullname" . }}
name: {{ include "app.fullname" . }}-metrics
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: {{ include "app.name" . }}
Expand All @@ -21,7 +21,7 @@ spec:
{{- range $key, $value := .Values.deployment.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
type: {{ .Values.service.type }}
type: {{ .Values.metrics.service.type }}
ports:
- name: metricsport
port: 8080
Expand Down
11 changes: 8 additions & 3 deletions templates/helm/values.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ deployment:
labels: {}
containerPort: 8080

service:
create: false
type: "ClusterIP"
metrics:
service:
# Set to true to automatically create a Kubernetes Service resource for the
# Prometheus metrics server endpoint in controller
create: false
# Which Type to use for the Kubernetes Service?
# See: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
type: "ClusterIP"

resources:
requests:
Expand Down