Files
chart/library/ix-dev/charts/diskoverdata/templates/_es.tpl
Stavros Kois 71d0cd2ac6 diskoverdata - migration (#2230)
* init commit

* fixes

* more fixes

* fix

* fiox

* fix pre-flight

* cron

* update questions

* add migration

* add to_keep_versions

* fix typos

* remove comment

* clean
2024-03-01 14:55:59 +02:00

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 -}}