GKE 支持

  1. GKE clusters must use Ubuntu OS instead of Container-Optimized OS, in order to satisfy Longhorn open-iscsi dependency.

  2. GKE requires user to manually claim himself as cluster admin to enable RBAC. Before installing Longhorn, run the following command:

  1. kubectl --kubeconfig=kube_configxxx.yml create clusterrolebinding cluster-admin-binding \
  2. --clusterrole=cluster-admin --user=<name@example.com>

where name@example.com is the user’s account name in GCE, and it’s case sensitive. See this documentGKE 支持 - 图1 for more information.