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'