mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 22:05:59 +00:00
Update local-cluster-up.sh to auto-detect darwin and skip kubelet and kube-proxy
This commit is contained in:
parent
d787eaa4d5
commit
584eb5e947
@ -1188,9 +1188,22 @@ fi
|
|||||||
|
|
||||||
if [[ "${START_MODE}" != "kubeletonly" ]]; then
|
if [[ "${START_MODE}" != "kubeletonly" ]]; then
|
||||||
if [[ "${START_MODE}" != "nokubeproxy" ]]; then
|
if [[ "${START_MODE}" != "nokubeproxy" ]]; then
|
||||||
|
## TODO remove this check if/when kubelet is supported on darwin
|
||||||
|
# Detect the OS name/arch and display appropriate error.
|
||||||
|
case "$(uname -s)" in
|
||||||
|
Darwin)
|
||||||
|
print_color "kubelet is not currently supported in darwin, kube-proxy aborted."
|
||||||
|
;;
|
||||||
|
Linux)
|
||||||
start_kubeproxy
|
start_kubeproxy
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
print_color "Unsupported host OS. Must be Linux or Mac OS X, kube-proxy aborted."
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "${PSP_ADMISSION}" && "${AUTHORIZATION_MODE}" = *RBAC* ]]; then
|
if [[ -n "${PSP_ADMISSION}" && "${AUTHORIZATION_MODE}" = *RBAC* ]]; then
|
||||||
create_psp_policy
|
create_psp_policy
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user