From f490bc4e7da92d51c19f6cd4c32e68af01691985 Mon Sep 17 00:00:00 2001 From: yy <56745951+lingdie@users.noreply.github.com> Date: Wed, 26 Jul 2023 17:01:28 +0800 Subject: [PATCH] build(deploy): update laf cluster image to deploy laf in a sealos cluster. (#1419) * unset apisix hostnetwork and set minio sc. * fix minio http schema * add env to adapt laf deploy on sealos. --- build/Kubefile | 7 +++++-- build/start.sh | 18 +++++++++++------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/build/Kubefile b/build/Kubefile index ef10141ef6..e219e48804 100644 --- a/build/Kubefile +++ b/build/Kubefile @@ -9,9 +9,12 @@ COPY start.sh ./start.sh ENV DOMAIN=127.0.0.1.nip.io ENV NAMESPACE=laf-system ENV REGION=default -ENV HTTP_SCHEMA=http +ENV EXTERNAL_HTTP_SCHEMA=https +ENV INTERNAL_HTTP_SCHEMA=http +ENV ENABLE_APISIX_HOST_NETWORK=true + ENV DB_PV_SIZE=10Gi ENV OSS_PV_SIZE=20Gi -CMD ["DOMAIN=$(DOMAIN) REGION=$(REGION) NAMESPACE=$(NAMESPACE) HTTP_SCHEMA=$(HTTP_SCHEMA) DB_PV_SIZE=$(DB_PV_SIZE) OSS_PV_SIZE=$(OSS_PV_SIZE) sh start.sh"] \ No newline at end of file +CMD ["DOMAIN=$(DOMAIN) REGION=$(REGION) NAMESPACE=$(NAMESPACE) EXTERNAL_HTTP_SCHEMA=$(EXTERNAL_HTTP_SCHEMA) INTERNAL_HTTP_SCHEMA=$(INTERNAL_HTTP_SCHEMA) ENABLE_APISIX_HOST_NETWORK=$(ENABLE_APISIX_HOST_NETWORK) DB_PV_SIZE=$(DB_PV_SIZE) OSS_PV_SIZE=$(OSS_PV_SIZE) sh start.sh"] \ No newline at end of file diff --git a/build/start.sh b/build/start.sh index 7a839a36a2..bd5efb43c6 100644 --- a/build/start.sh +++ b/build/start.sh @@ -10,7 +10,11 @@ fi # *************** Environment Variables ************** # ## envs - global -HTTP_SCHEMA=${HTTP_SCHEMA:-http} +EXTERNAL_HTTP_SCHEMA=${EXTERNAL_HTTP_SCHEMA:-https} +INTERNAL_HTTP_SCHEMA=${INTERNAL_HTTP_SCHEMA:-http} + +ENABLE_APISIX_HOST_NETWORK=${ENABLE_APISIX_HOST_NETWORK:-true} + NAMESPACE=${NAMESPACE:-laf-system} PASSWD_OR_SECRET=$(tr -cd 'a-z0-9'