bb96d4c2 by Adam Heath

Remove non-moqui charts.

1 parent 0ed76082
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: moqui
spec:
version: 8.2.3
nodeSets:
- name: default
count: 2
config:
node.store.allow_mmap: false
---
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
name: moqui
spec:
version: 8.2.3
count: 1
elasticsearchRef:
name: moqui
---
#!/bin/sh
set -ex
elasticsearch_timeout=${elasticsearch_timeout:-3}
check_es() {
status="$(curl -o /dev/null -w "%{http_code}" --max-time ${elasticsearch_timeout} -XGET -g -s -k -u "${elasticsearch_user}:${elasticsearch_password}" "${elasticsearch_url}")"
if [ "z$status" = z200 ]; then
return 0
fi
return 1
}
while ! check_es; do
echo "Waiting for Elasticsearch" 1>&2
sleep 1
count=5
while [ $count -gt 0 ] && ! check_es; do
count=$(($count - 1))
sleep 1
done
done
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./elasticsearch.yaml
configMapGenerator:
- name: moqui-elasticsearch-scripts
files:
- ./es_isready
options:
disableNameSuffixHash: true
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./postgresql.yaml
configMapGenerator:
- name: moqui-postgresql-scripts
files:
- ./pg_isready
options:
disableNameSuffixHash: true
#!/bin/sh
set -ex
# POSTGRES_HOST
# POSTGRES_USER
# POSTGRES_DATABASE
# PGPASSWORD
check_pg() {
pg_isready -h "${POSTGRES_HOST}" -U "${POSTGRES_USER}"
}
check_auth() {
psql -h "${POSTGRES_HOST}" -U "${POSTGRES_USER}" "${POSTGRES_DATABASE}"
}
loop() {
checker="$1"
message="$2"
while ! $checker; do
echo "$message" 1>&2
sleep 1
count=5
while [ $count -gt 0 ] && ! $checker; do
count=$(($count - 1))
sleep 1
done
done
}
loop check_pg "Waiting for database to be up"
loop check_auth "Waiting for user+password to be active"
---
apiVersion: "acid.zalan.do/v1"
kind: postgresql
metadata:
name: moqui-postgresql
spec:
enableLogicalBackup: true
teamId: "moqui"
volume:
size: 1Gi
numberOfInstances: 2
users:
zalando: # database owner
- superuser
- createdb
moqui:
- login
databases:
moqui: moqui
postgresql:
version: "14"
---