This repository contains scripts, to try observed scaling services in a cluster and scaling clusters in the cloud.
- kubernetes
kubernetes files - scripts
Scripts for configuring - terraform
Scripts for setting up the cluster - other folders
golang-code for components
-
(optional) Build the images
Runmake build
-
setting up the cluster Run
terraform plan; terraform apply
ormake 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 thescripts
folder ormake 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
ormake app
. Here you may need to adjust the ingress for Grafana/Prometheus. -
🎉
- an aws account (for terraform)
a set upaws
cli-tool will help
You can also use every other kubernetes-cluster, but you need to set-up your own autoscaler. ;) terraform
,kubectl
andhelm
installed