run 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/command/with-contenv /bin/bash
  2. # shellcheck shell=bash
  3. # shellcheck disable=SC1091,SC1090
  4. export POD_NAME="higress-controller"
  5. export POD_NAMESPACE="higress-system"
  6. export CONTROLLER_KEEP_XDS_CONFIG_LABELS="false"
  7. export CONTROLLER_KEEP_XDS_CONFIG_ANNOTATIONS="false"
  8. export PILOT_ENABLE_GATEWAY_API="false"
  9. export PILOT_ENABLE_ALPHA_GATEWAY_API="false"
  10. export ENABLE_LEADER_ELECTION="false"
  11. SCRIPT_ROOT=/etc/s6-overlay/scripts
  12. source "$SCRIPT_ROOT/base.sh"
  13. source "$GPUSTACK_GATEWAY_CONFIG"
  14. source "$SCRIPT_ROOT/default-variables.sh"
  15. echo "GATEWAY_HTTP_PORT=$GATEWAY_HTTP_PORT"
  16. echo "GATEWAY_HTTPS_PORT=$GATEWAY_HTTPS_PORT"
  17. set -e
  18. exec 2>&1
  19. exec s6-notifyoncheck \
  20. -d -w 5000 -n 10 -s 3000 \
  21. -- \
  22. /usr/local/bin/higress \
  23. serve \
  24. --kubeconfig="${EMBEDDED_KUBECONFIG_PATH}" \
  25. --gatewaySelectorKey=higress \
  26. --gatewaySelectorValue=higress-system-higress-gateway \
  27. --gatewayHttpPort="$GATEWAY_HTTP_PORT" \
  28. --gatewayHttpsPort="$GATEWAY_HTTPS_PORT" \
  29. --ingressClass= \
  30. --httpAddress=localhost:8888 \
  31. --grpcAddress=localhost:15051