mirror of
https://github.com/truenas/charts.git
synced 2026-04-26 19:42:14 +08:00
52 lines
1.3 KiB
Smarty
52 lines
1.3 KiB
Smarty
{{- define "logsearch.workload" -}}
|
|
workload:
|
|
logsearch:
|
|
enabled: true
|
|
type: Deployment
|
|
podSpec:
|
|
containers:
|
|
logsearch:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: logsearchImage
|
|
securityContext:
|
|
runAsUser: {{ .Values.minioRunAs.user }}
|
|
runAsGroup: {{ .Values.minioRunAs.group }}
|
|
envFrom:
|
|
- secretRef:
|
|
name: logsearch-creds
|
|
command: /logsearchapi
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: http
|
|
port: 8080
|
|
path: /status
|
|
readiness:
|
|
enabled: true
|
|
type: http
|
|
port: 8080
|
|
path: /status
|
|
startup:
|
|
enabled: true
|
|
type: http
|
|
port: 8080
|
|
path: /status
|
|
initContainers:
|
|
{{- include "ix.v1.common.app.postgresWait" (dict "name" "postgres-wait"
|
|
"secretName" "postgres-creds") | nindent 8 }}
|
|
|
|
{{/* Service */}}
|
|
service:
|
|
logsearch:
|
|
enabled: true
|
|
type: ClusterIP
|
|
targetSelector: logsearch
|
|
ports:
|
|
logsearch:
|
|
enabled: true
|
|
primary: true
|
|
port: 8080
|
|
targetSelector: logsearch
|
|
{{- end -}}
|