mirror of
https://github.com/truenas/charts.git
synced 2026-04-23 18:10:06 +08:00
* init commit * fixes * more fixes * fix * fiox * fix pre-flight * cron * update questions * add migration * add to_keep_versions * fix typos * remove comment * clean
54 lines
1.6 KiB
Smarty
54 lines
1.6 KiB
Smarty
{{- define "es.workload" -}}
|
|
workload:
|
|
elasticsearch:
|
|
enabled: true
|
|
type: Deployment
|
|
podSpec:
|
|
hostNetwork: false
|
|
containers:
|
|
elasticsearch:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: elasticSearchImage
|
|
securityContext:
|
|
runAsUser: 1000
|
|
runAsGroup: 1000
|
|
readOnlyRootFilesystem: false
|
|
env:
|
|
ELASTIC_PASSWORD:
|
|
secretKeyRef:
|
|
name: diskover-secret
|
|
key: es-password
|
|
http.port: 9200
|
|
discovery.type: single-node
|
|
node.name: diskoverdata
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: exec
|
|
command:
|
|
- /bin/bash
|
|
- -c
|
|
- |
|
|
curl -s -H "Authorization: Basic $(base64 <<< "elastic:$ELASTIC_PASSWORD")" \
|
|
http://localhost:9200/_cluster/health?local=true
|
|
readiness:
|
|
enabled: true
|
|
type: exec
|
|
command:
|
|
- /bin/bash
|
|
- -c
|
|
- |
|
|
curl -s -H "Authorization: Basic $(base64 <<< "elastic:$ELASTIC_PASSWORD")" \
|
|
http://localhost:9200/_cluster/health?local=true
|
|
startup:
|
|
enabled: true
|
|
type: exec
|
|
command:
|
|
- /bin/bash
|
|
- -c
|
|
- |
|
|
curl -s -H "Authorization: Basic $(base64 <<< "elastic:$ELASTIC_PASSWORD")" \
|
|
http://localhost:9200/_cluster/health?local=true
|
|
{{- end -}}
|