This git contains the materials for second part of the AI-IC Lecture on June 30th 22 (KIT).
This lecture observed scaling services in a cluster and scaling clusters in the cloud.
Contents
kubernetes
kubernetes files
scripts
Scripts for configuring
terraform
Scripts for setting up the cluster
other folders
golang-code for components
How to use?
(optional) Build the images
Run make build
setting up the cluster
Run terraform plan; terradform apply or make cluster-create
logging into the cluster
Load the Kubeconfig in the Teraform folder or make cluster-login.
setting up common services in the cluster
Execute the scripts in the scripts folder or make cluster-prepare.
The ingress for Grafana/Prometheus may have to be adapted here.
If the cluster scaler is to be used, the name of the worker group must also be adapted and the fingerprint of the IDP adapted (if it has expired).
The worker group can be found in the EC2 GUI under the corresponding menu item.
Set the DNS entry on the load balancer of the Nginx-ingress in the cluster.
install the app
Apply the Kubernetes manifest in the folder kubernetes or make app.
Here you may need to adjust the ingress for Grafana/Prometheus.
🎉
Requirements
an aws account (for terraform)
a set up aws cli-tool will help
You can also use every other kubernetes-cluster, but you need to set-up your own autoscaler. ;)