MENU

Fun & Interesting

Building a Complete DevOps Project with GoLang!

Kubesimplify 12,687 8 months ago
Video Not Working? Fix It Now

In this comprehensive DevOps project tutorial, we build a secure GoLang application that connects to a PostgreSQL database, instrument it using Prometheus, and visualize custom metrics on Grafana. The application is first containerized using KO then run it locally using Docker. We then set up a Kubernetes cluster using ksctl, deploy the application with HTTPS enabled via Cert Manager and Gateway API, and implement Continuous Deployment (CD) with ArgoCD and Continuous Integration (CI) using GitHub Actions. The PostgreSQL database is managed with CloudNativePG, ensuring optimal performance and reliability. Additionally, we demonstrate a secure build process using BuildSafe and KO to generate a 0 CVE image for the application. To ensure the app's robustness, we conduct load testing using K6. Watch this tutorial to learn modern DevOps practices and see a real-world example of integrating various tools and technologies for a fully automated, secure, and scalable deployment pipeline. GitHub repo: https://github.com/kubesimplify/devops-project Resources: Kuberentes workshop - https://www.youtube.com/live/PN3VqbZqmD8?si=yeM5M9uJu_iArApv Buildsafe - https://youtu.be/JA-bkvbK_0o?si=TF67sY1PTEGXeUq6 Chapters: 00:00 Introduction 03:11 Application walkthrough 08:00 Building app using Buildsafe and KO 13:43 Deploy application locally 18:28 Cluster creation using Ksctl 23:47 Cert manager install 24:52 Intro to Gateway API 28:39 Installing nginx gateway fabric 30:05 CloudnativePG installation 34:12 Gateway and Route creation 36:39 DNS entry 38:06 Kube prometheus stack installation 39:37 Service monitor 43:27 ArgoCD installation 46:35 Referencegrant 48:30 GitHub Actions plus argo app creation 54:16 Load testing using k6 and hpa 56:16 Conclusion #PostgreSQL #Kubernetes #Docker #Prometheus #Grafana #ArgoCD #CI/CD #GitHubActions #CloudNativePG #BuildSafe #KO #CertManager #GatewayAPI #K6 #LoadTesting #SecureAppDevelopment #ContinuousIntegration #continuousdeployment ►►►Connect with me ►►► ► Kubesimplify: https://kubesimplify.com/newsletter ► Newsletter: https://saiyampathak.com/newsletter ► Discord: https://saiyampathak.com/discord ► Twitch: https://saiyampathak.com/twitch ► YouTube: https://saiyampathak.com/youtube.com ► GitHub: https://github.com/saiyam1814 ► LinkedIn: https://www.linkedin.com/in/saiyampathak/ ► Website: https://saiyampathak.medium.com/ ► Instagram: http://instagram.com/saiyampathak/ ► https://twitter.com/saiyampathak

Comment