mirror of
https://github.com/helm/charts.git
synced 2026-09-05 12:27:30 +00:00
* Seq: allow setting probe values Signed-off-by: Gerard Godone-Maresca <ggodonemaresca+github@gmail.com> * Increment chart version Signed-off-by: Gerard Godone-Maresca <ggodonemaresca+github@gmail.com>
87 lines
2.8 KiB
YAML
87 lines
2.8 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ template "seq.fullname" . }}
|
|
labels:
|
|
app: {{ template "seq.name" . }}
|
|
chart: {{ template "seq.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: {{ template "seq.name" . }}
|
|
release: {{ .Release.Name }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ template "seq.name" . }}
|
|
release: {{ .Release.Name }}
|
|
spec:
|
|
containers:
|
|
- name: {{ .Chart.Name }}
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
env:
|
|
- name: "ACCEPT_EULA"
|
|
value: "{{ .Values.acceptEULA }}"
|
|
{{- if .Values.baseURI }}
|
|
- name: "BASE_URI"
|
|
value: "{{ .Values.baseURI }}"
|
|
{{- end }}
|
|
ports:
|
|
- name: ingestion
|
|
containerPort: 5341
|
|
protocol: TCP
|
|
- name: ui
|
|
containerPort: 80
|
|
protocol: TCP
|
|
{{- if .Values.livenessProbe.enabled }}
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: ui
|
|
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
|
|
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
|
|
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
|
|
successThreshold: {{ .Values.livenessProbe.successThreshold }}
|
|
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
|
|
{{- end }}
|
|
{{- if .Values.readinessProbe.enabled }}
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: ui
|
|
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
|
|
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
|
|
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
|
|
successThreshold: {{ .Values.readinessProbe.successThreshold }}
|
|
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
|
|
{{- end }}
|
|
volumeMounts:
|
|
- name: seq-data
|
|
mountPath: {{ .Values.persistence.path }}
|
|
subPath: {{ .Values.persistence.subPath }}
|
|
resources:
|
|
{{ toYaml .Values.resources | indent 12 }}
|
|
{{- with .Values.nodeSelector }}
|
|
nodeSelector:
|
|
{{ toYaml . | indent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.affinity }}
|
|
affinity:
|
|
{{ toYaml . | indent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.tolerations }}
|
|
tolerations:
|
|
{{ toYaml . | indent 8 }}
|
|
{{- end }}
|
|
volumes:
|
|
- name: seq-data
|
|
{{- if .Values.persistence.enabled }}
|
|
persistentVolumeClaim:
|
|
claimName: {{ .Values.persistence.existingClaim | default (include "seq.fullname" .) }}
|
|
{{- else }}
|
|
emptyDir: {}
|
|
{{- end -}}
|