mirror of https://github.com/grafana/loki
Switch Loki to StatefulSet (#585)
Signed-off-by: Steven Sheehy <ssheehy@firescope.com>pull/631/head
parent
e58b1db6ce
commit
18392ea19c
@ -1,22 +0,0 @@ |
||||
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }} |
||||
apiVersion: v1 |
||||
kind: PersistentVolumeClaim |
||||
metadata: |
||||
name: {{ template "loki.fullname" . }} |
||||
labels: |
||||
app: {{ template "loki.name" . }} |
||||
chart: {{ template "loki.chart" . }} |
||||
heritage: {{ .Release.Service }} |
||||
release: {{ .Release.Name }} |
||||
annotations: |
||||
{{- toYaml .Values.persistence.annotations | nindent 4 }} |
||||
spec: |
||||
accessModes: |
||||
{{- range .Values.persistence.accessModes }} |
||||
- {{ . | quote }} |
||||
{{- end }} |
||||
resources: |
||||
requests: |
||||
storage: {{ .Values.persistence.size | quote }} |
||||
storageClassName: {{ .Values.persistence.storageClassName }} |
||||
{{- end }} |
@ -0,0 +1,19 @@ |
||||
apiVersion: v1 |
||||
kind: Service |
||||
metadata: |
||||
name: {{ template "loki.fullname" . }}-headless |
||||
labels: |
||||
app: {{ template "loki.name" . }} |
||||
chart: {{ template "loki.chart" . }} |
||||
release: {{ .Release.Name }} |
||||
heritage: {{ .Release.Service }} |
||||
spec: |
||||
clusterIP: None |
||||
ports: |
||||
- port: {{ .Values.service.port }} |
||||
protocol: TCP |
||||
name: http-metrics |
||||
targetPort: http-metrics |
||||
selector: |
||||
app: {{ template "loki.name" . }} |
||||
release: {{ .Release.Name }} |
Loading…
Reference in new issue