Longhorn CSI on GKE
To operate Longhorn on a cluster provisioned with Google Kubernetes Engine, some additional configuration is required.
GKE clusters must use the
UbuntuOS instead ofContainer-OptimizedOS, in order to satisfy Longhorn’sopen-iscsidependency.GKE requires a user to manually claim themselves as cluster admin to enable role-based access control. Before installing Longhorn, run the following command:
kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin --user=<name@example.com>
where
name@example.comis the user’s account name in GCE. It’s case sensitive. See this document for more information.