Merge pull request #103350 from tech-geek29/fix-mac-local-cluster

Update local-cluster-up.sh to auto-detect darwin and skip kubelet and kube-proxy
This commit is contained in:
Kubernetes Prow Robot 2021-06-30 09:11:04 -07:00 committed by GitHub
commit 1534e0c7ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1188,9 +1188,22 @@ fi
if [[ "${START_MODE}" != "kubeletonly" ]]; then
if [[ "${START_MODE}" != "nokubeproxy" ]]; then
start_kubeproxy
## 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
;;
*)
print_color "Unsupported host OS. Must be Linux or Mac OS X, kube-proxy aborted."
;;
esac
fi
fi
if [[ -n "${PSP_ADMISSION}" && "${AUTHORIZATION_MODE}" = *RBAC* ]]; then
create_psp_policy
fi