Loading setup +1 −5 Original line number Diff line number Diff line Loading @@ -2,14 +2,12 @@ set -eu USAGE="Usage: $0 [-h] [-i INTERFACE] [-d DOMAIN] [-t TOKEN] [-u <control|gateway>] [--skip-upgrade] $0 [-h] [-i INTERFACE] [-d DOMAIN] [-t TOKEN] [--skip-upgrade] -h|--help Show this usage and exit -i|--interface Use the first address of INTERFACE as a API advertisement address -d|--domain Use DOMAIN as the control plane nodes' shared DNS name -t|--token Join a cluster using TOKEN -u|--use Configure the node for the comma separated uses. Choices out of: control, gateway --skip-upgrade Skip the package manager upgrades step " Loading @@ -30,7 +28,6 @@ while let $#; do -i|--interface) INTERFACE=$2; shift ;; -d|--domain) API_DOMAIN=$2; shift ;; -t|--token) TOKEN=$2; shift ;; -u|--use) split uses "$2"; shift ;; --skip-upgrade) SKIP_UPGRADE=true ;; esac shift Loading Loading @@ -100,5 +97,4 @@ else kubeadm init "${kubeadm_args[@]}" export KUBECONFIG=/etc/kubernetes/admin.conf kubectl kustomize --enable-helm . | kubectl apply -f- uses+=(control) fi Loading
setup +1 −5 Original line number Diff line number Diff line Loading @@ -2,14 +2,12 @@ set -eu USAGE="Usage: $0 [-h] [-i INTERFACE] [-d DOMAIN] [-t TOKEN] [-u <control|gateway>] [--skip-upgrade] $0 [-h] [-i INTERFACE] [-d DOMAIN] [-t TOKEN] [--skip-upgrade] -h|--help Show this usage and exit -i|--interface Use the first address of INTERFACE as a API advertisement address -d|--domain Use DOMAIN as the control plane nodes' shared DNS name -t|--token Join a cluster using TOKEN -u|--use Configure the node for the comma separated uses. Choices out of: control, gateway --skip-upgrade Skip the package manager upgrades step " Loading @@ -30,7 +28,6 @@ while let $#; do -i|--interface) INTERFACE=$2; shift ;; -d|--domain) API_DOMAIN=$2; shift ;; -t|--token) TOKEN=$2; shift ;; -u|--use) split uses "$2"; shift ;; --skip-upgrade) SKIP_UPGRADE=true ;; esac shift Loading Loading @@ -100,5 +97,4 @@ else kubeadm init "${kubeadm_args[@]}" export KUBECONFIG=/etc/kubernetes/admin.conf kubectl kustomize --enable-helm . | kubectl apply -f- uses+=(control) fi