chore(devops): enable clickhouse for foss
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
1dbf29a595
commit
bced0611ea
2 changed files with 20 additions and 23 deletions
|
|
@ -125,28 +125,28 @@ spec:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Checking variable is empty. Shell independant method.
|
# Checking variable is empty. Shell independant method.
|
||||||
if [ "x$ENTERPRISE_EDITION_LICENSE" != "x" ]; then
|
exit_count=0
|
||||||
exit_count=0
|
error_connection=1
|
||||||
error_connection=1
|
|
||||||
|
|
||||||
while [ $exit_count -le 20 ];do
|
while [ $exit_count -le 20 ];do
|
||||||
nc -zv {{.Values.global.clickhouse.chHost}} 9000 -w 1
|
nc -zv {{.Values.global.clickhouse.chHost}} 9000 -w 1
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "[info] clickhouse is not up; retrying in 5 seconds"
|
echo "[info] clickhouse is not up; retrying in 5 seconds"
|
||||||
sleep 4
|
sleep 4
|
||||||
exit_count=$(($exit_count+1))
|
exit_count=$(($exit_count+1))
|
||||||
echo $exit_count
|
echo $exit_count
|
||||||
else
|
else
|
||||||
error_connection=0
|
error_connection=0
|
||||||
break
|
break
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ $error_connection -eq 1 ]; then
|
|
||||||
echo "[error] clickhouse is not running. Check kubectl get po -n db; exiting"
|
|
||||||
exit 100
|
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ $error_connection -eq 1 ]; then
|
||||||
|
echo "[error] clickhouse is not running. Check kubectl get po -n db; exiting"
|
||||||
|
exit 100
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "x$ENTERPRISE_EDITION_LICENSE" != "x" ]; then
|
||||||
echo "Copying enterprise code"
|
echo "Copying enterprise code"
|
||||||
cp -rf ee/scripts/* scripts/
|
cp -rf ee/scripts/* scripts/
|
||||||
fi
|
fi
|
||||||
|
|
@ -197,7 +197,6 @@ spec:
|
||||||
echo For upgrade steps, refer: https://docs.openreplay.com/en/deployment/openreplay-admin/#upgrade-postgresql
|
echo For upgrade steps, refer: https://docs.openreplay.com/en/deployment/openreplay-admin/#upgrade-postgresql
|
||||||
# exit 101
|
# exit 101
|
||||||
}
|
}
|
||||||
{{- if .Values.global.enterpriseEditionLicense }}
|
|
||||||
- name: clickhouse-check
|
- name: clickhouse-check
|
||||||
image: clickhouse/clickhouse-server:22.12-alpine
|
image: clickhouse/clickhouse-server:22.12-alpine
|
||||||
env:
|
env:
|
||||||
|
|
@ -246,7 +245,6 @@ spec:
|
||||||
echo For upgrade steps, refer: https://docs.openreplay.com/en/deployment/openreplay-admin/#upgrade-clickhouse
|
echo For upgrade steps, refer: https://docs.openreplay.com/en/deployment/openreplay-admin/#upgrade-clickhouse
|
||||||
# exit 101
|
# exit 101
|
||||||
}
|
}
|
||||||
{{- end}}
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: shared
|
- name: shared
|
||||||
mountPath: /opt/openreplay
|
mountPath: /opt/openreplay
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,8 @@ postgresql: &postgres
|
||||||
connector: &connector
|
connector: &connector
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
# For enterpriseEdition
|
|
||||||
clickhouse: &clickhouse
|
clickhouse: &clickhouse
|
||||||
enabled: false
|
enabled: true
|
||||||
chHost: clickhouse-openreplay-clickhouse.db.svc.cluster.local
|
chHost: clickhouse-openreplay-clickhouse.db.svc.cluster.local
|
||||||
username: default
|
username: default
|
||||||
password: ""
|
password: ""
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue