Skip to content
Snippets Groups Projects
Unverified Commit 78a5de8f authored by David's avatar David Committed by GitHub
Browse files

Merge pull request #479 from jmvizcainoio/master

Added option that loki service run as nodeport
parents 907f9dbb 43f4e1c7
No related branches found
No related tags found
No related merge requests found
......@@ -13,12 +13,18 @@ metadata:
annotations:
{{- toYaml .Values.service.annotations | nindent 4 }}
spec:
type: {{ .Values.service.type }}
{{- if (and (eq .Values.service.type "ClusterIP") (not (empty .Values.service.clusterIP))) }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
ports:
- name: http-metrics
port: {{ .Values.service.port }}
- port: {{ .Values.service.port }}
protocol: TCP
name: http-metrics
targetPort: http-metrics
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
selector:
app: {{ template "loki.name" . }}
release: {{ .Release.Name }}
......@@ -118,6 +118,8 @@ securityContext:
runAsUser: 10001
service:
type: ClusterIP
nodePort:
port: 3100
annotations: {}
labels: {}
......@@ -131,4 +133,3 @@ terminationGracePeriodSeconds: 30
## Tolerations for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment