Deploying Galileo - EKS
Get your Kubernetes cluster up and running while setting up IAM and Trust Policies and the 4 Galileo DNS endpoints. The Galileo applications run on managed Kubernetes environments like EKS and GKE, but this document will specifically cover the configuration and deployment of an EKS environment.
⏱ Total time for deployment: 30-45 minutes
# Create directory
mkdir -p $HOME/.local/bin
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
sudo mv /tmp/eksctl $HOME/.local/bin
The rest of the installation deployment can now be run from the CloudShell session. You can use
vimto create/edit the required yaml and json files within the shell session.
Galileo recommends the following Kubernetes deployment configuration:
- Galileo IAM Policy: This policy is attached to the Galileo IAM Role. Add the following to a file called
- Galileo IAM Trust Policy: This trust policy enables an external Galileo user to assume your Galileo IAM Role to deploy changes to your cluster securely. Add the following to a file called
- Galileo IAM Role with Policy: Role should only include the Galileo IAM Policy mentioned in this table. Create a file called
create-galileo-role-and-policies.sh, make it executable with
chmod +x create-galileo-role-and-policies.shand run it. Make sure to run in the same directory as the json files created in the above steps.
aws iam create-policy --policy-name Galileo --policy-document file://galileo-policy.json
aws iam create-role --role-name Galileo --assume-role-policy-document file://galileo-trust-policy.json
aws iam attach-role-policy --role-name Galileo --policy-arn $(aws iam list-policies | jq -r '.Policies | select (.PolicyName == "Galileo") | .Arn')
With the role and policies created, the cluster itself can be deployed in a single command using eksctl. Using the cluster template here, create a
galileo-cluster.yamlfile and edit the contents to replace
CUSTOMER_NAMEwith your company name like
galileo. Also check and update all
With the yaml file saved, run the following command to deploy the cluster:
eksctl create cluster -f galileo-cluster.yaml
eksctl create iamidentitymapping
NOTE for the user: For connected clusters, Galileo will apply changes from github actions. So github.com should be allow-listed for your cluster’s ingress rules if you have any specific network requirements.
Customer specific cluster values (e.g. domain name, slack channel for notifications etc) will be placed in a base64 encoded string, stored as a secret in GitHub that Galileo’s deployment automation will read in and use when templating a cluster’s resource files.\
NOTE for the user: Let Galileo know if you’d like to use LetsEncrypt or your own certificate before deployment.
As a customer, you have full access to the deployment logs in Google Cloud Storage. You (customer) are able to view all configuration there. A customer email address must be provided to have access to this log.
Galileo has 4 main URLs (shown below). In order to make the URLs accessible across the company, you have to set the following DNS addresses in your DNS provider after the platform is deployed.
⏱ Time taken : 5-10 minutes (post the ingress endpoint / load balancer provisioning)
Each URL must be entered as a CNAME record into your DNS management system as the ELB address. You can find this address by listing the kubernetes ingresses that the platform has provisioned.