Installing Camel K on Google Kubernetes Engine (GKE)
This guide assumes you’ve already created a Kubernetes Engine cluster on https://console.cloud.google.com.
Make sure you’ve selected a version of Kubernetes greater than 1.11 when creating the cluster. You can create it in any region.
In the list of clusters for the current project, GKE provides a connection string that you need to execute on a shell to configure the
| the connection string contains a |
After executing the connection string, if everything is installed correctly, you should be able to execute:
kubectl get pod
When the cluster is first installed, you should find that "no pods are present" in the cluster. You can proceed with the installation then.
Before installing Camel K on a fresh GKE cluster, you need to perform some extra steps to give to your account the required cluster-admin permissions. This means executing the following command (replacing "firstname.lastname@example.org" with your account email address):
kubectl create clusterrolebinding user-cluster-admin-binding --clusterrole=cluster-admin --email@example.com
The command above is needed to make sure your user is able to delegate some permissions to Camel K service accounts.
You can now get the kamel CLI tool the from release page and put it on your system path.
The last thing to do is to configure gcr.io as registry to host your integration image.
After doing that, you’ll be ready to play with Camel K. Enjoy!