Skip to content

Commit 90da373

Browse files
committed
fix: Make DNS work
1 parent 968211b commit 90da373

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ PORTAINER_EDGE_ID="${KUBESOLO_PORTAINER_EDGE_ID:-}"
726726
PORTAINER_EDGE_KEY="${KUBESOLO_PORTAINER_EDGE_KEY:-}"
727727
PORTAINER_EDGE_ASYNC="${KUBESOLO_PORTAINER_EDGE_ASYNC:-false}"
728728
LOCAL_STORAGE="${KUBESOLO_LOCAL_STORAGE:-false}"
729+
CORE_DNS="${KUBESOLO_CORE_DNS:-true}"
729730
DEBUG="${KUBESOLO_DEBUG:-false}"
730731
PPROF_SERVER="${KUBESOLO_PPROF_SERVER:-false}"
731732
RUN_MODE="${KUBESOLO_RUN_MODE:-service}" # service, foreground, or daemon
@@ -755,6 +756,9 @@ for arg in "$@"; do
755756
--local-storage=*)
756757
LOCAL_STORAGE="${arg#*=}"
757758
;;
759+
--core-dns=*)
760+
CORE_DNS="${arg#*=}"
761+
;;
758762
--debug=*)
759763
DEBUG="${arg#*=}"
760764
;;
@@ -777,6 +781,7 @@ for arg in "$@"; do
777781
echo " --portainer-edge-key=KEY Set Portainer Edge Key"
778782
echo " --portainer-edge-async=true|false Enable Portainer Edge Async (default: $PORTAINER_EDGE_ASYNC)"
779783
echo " --local-storage=true|false Enable local storage (default: $LOCAL_STORAGE)"
784+
echo " --core-dns=true|false Enable CoreDNS deployment (default: $CORE_DNS)"
780785
echo " --debug=true|false Enable debug logging (default: $DEBUG)"
781786
echo " --pprof-server=true|false Enable pprof server (default: $PPROF_SERVER)"
782787
echo " --run-mode=MODE Run mode: service, foreground, or daemon (default: $RUN_MODE)"
@@ -856,6 +861,10 @@ if [ "$LOCAL_STORAGE" = "true" ]; then
856861
CMD_ARGS="$CMD_ARGS --local-storage=true"
857862
fi
858863

864+
if [ "$CORE_DNS" = "false" ]; then
865+
CMD_ARGS="$CMD_ARGS --core-dns=false"
866+
fi
867+
859868
if [ "$DEBUG" = "true" ]; then
860869
CMD_ARGS="$CMD_ARGS --debug=$DEBUG"
861870
fi

0 commit comments

Comments
 (0)