Skip to content

fluktuid/talk-kit

Repository files navigation

KIT Lecture

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?

  1. (optional) Build the images
    Run make build

  2. setting up the cluster Run terraform plan; terradform apply or make cluster-create

  3. logging into the cluster Load the Kubeconfig in the Teraform folder or make cluster-login.

  4. 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.

  5. Set the DNS entry on the load balancer of the Nginx-ingress in the cluster.

  6. 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.

  7. 🎉

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. ;)
  • terraform, kubectl and helm installed

Special Mentions