Manage a local Kubernetes cluster with FluxCD, deploy/scale an app and monitoring

Manage a local Kubernetes cluster with FluxCD, deploy/scale an app and monitoring


Prerequisites:

docker, kubectl, k9s, helm, k3d, python, glab-cli, coffee :)

Key Points:

  • Automated GitOps Setup: This script automates the setup of a GitOps workflow using FluxCD and GitLab, including repository creation, Kubernetes cluster configuration, and application deployment.
  • Cluster & Repo Initialization: The script initializes a Kubernetes cluster with k3d, sets up production, staging, and helm-releases repositories, and configures FluxCD to manage these repositories.
  • Helm Releases & Kustomizations: It creates Helm releases and Kustomizations for applications like "iepurele"(*that is basically an nginx app), ensuring they are deployed to the correct namespaces and monitoring tools (kube-prometheus-stack), it will also deploy a simple and nice GUI for FluxCD.
  • Scaling: In the demo video you will see a part of GitOps concept in action, by modifying the code on Gitlab repo, the app "iepurele" running on the Kubernetes cluster will scale fast from 1 replica to 13 replicas and then back to 1.


  • in the below repo link is the .sh script, the recommendation is to use the Python script if you want also monitoring of the FluxCD server, including Grafana dashboards*(not shown in the video demo) meaning the kube-prometheus-stack to be deployed:

https://gitlab.com/morninstar_gitops/flux_cd_automated_scripts.git



DONATION:

https://buymeacoffee.com/planarian

THANK YOU !

要查看或添加评论,请登录

Adrian von der Candea的更多文章

社区洞察

其他会员也浏览了