forked from higress-group/higress-standalone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-gateway.sh
More file actions
35 lines (28 loc) · 930 Bytes
/
start-gateway.sh
File metadata and controls
35 lines (28 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
cd "$(dirname -- "$0")"
ROOT=$(pwd)
cd - >/dev/null
source $ROOT/base.sh
if [ "$MODE" != "gateway" -a "$MODE" != "full" ]; then
echo "Gateway won't run in mode $MODE."
sleep 2
exit 0
fi
waitForPilot
set -e
createDir /etc/istio/proxy
createDir /var/lib/istio/data
createDir /var/log/proxy
touch /var/log/proxy/access.log
if [ "$O11Y" == "on" ]; then
sed -i -E 's/^accessLogFile: .+$/accessLogFile: \/var\/log\/proxy\/access.log/' /etc/istio/config/mesh
else
sed -i -E 's/^accessLogFile: .+$/accessLogFile: \/dev\/stdout/' /etc/istio/config/mesh
fi
/usr/local/bin/higress-proxy-start.sh proxy router \
--concurrency=${GATEWAY_CONCURRENCY:-16} \
--domain=higress-system.svc.cluster.local \
--proxyLogLevel=${GATEWAY_LOG_LEVEL:-warning} \
--proxyComponentLogLevel=${GATEWAY_COMPONENT_LOG_LEVEL:-misc:error} \
--log_output_level=all:info \
--serviceCluster=higress-gateway