Uploaded September 2020 | Updated November 2026, 2 days ago
So you're a software engineer or a developer who wants to self-host your own code in your own homelab? Well this is the tutorial for you! In this step-by-step guide we'll walk through setting up a repo, building and testing our own code (with unit tests) in a self-hosted Gitlab CI runner in our CI pipeline, then we'll build a Docker image and push it up to a container registry, then we'll use kubectl in our CD pipeline to deploy our Docker container to our self-hosted kubernetes cluster! This all happens in a couple of minutes and then we'll truly have continuous integration and continuous delivery in our homelab!
Video Notes: https://technotim.live/posts/self-hosted-devops-stack/
Support me on Patreon: patreon.com/technotim
Sponsor me on GitHub: github.com/sponsors/timothystewart6
Subscribe on Twitch: twitch.tv/technotim
Become a YouTube member: youtube.com/channel/UCOk-gHyjcWZNj3Br4oxwh0A/join
Merch Shop: https://l.technotim.live/shop
Gear Recommendations: https://l.technotim.live/gear
Get Help in Our Discord Community: https://l.technotim.live/discord
2nd channel: youtube.com/@TechnoTimTalks
(Affiliate links may be included in this description. I may receive a small commission at no cost to you.) Tim Kits:
► 4K YouTube Kit - kit.co/TechnoTim/4k-youtube-kit
► Pro Level Live Streaming Kit - kit.co/TechnoTim/pro-level-live-streaming-kit
► Budget Gaming Streaming PC 2020- kit.co/TechnoTim/budget-gaming-streaming-pc-2020
► Performance Virtualization Server- kit.co/TechnoTim/performance-virtualization-nas-server
► Budget NAS Server- kit.co/TechnoTim/budget-nas-server
► Coding & Gaming Keyboards- kit.co/TechnoTim/coding-gaming-keyboards
► Coding & Gaming Mice- kit.co/TechnoTim/coding-gaming-mice
00:00 - Intro
00:20 - What are we going to do today?
00:45 - How did we get here?
01:48 - What will be build?
02:13 - Let's get started!
02:15 - We need a repo
02:30 - Let's create our first CI pipeline
03:22 - Let's create our own CI runner
04:05 - Let's configure our CI runner
05:04 - Confirm our CI runner is working
05:38 - Take our build and put it in a Docker container
06:25 - Create our Docker pipeline with kaniko
07:15 - Use standard version to automate your releases
07:59 - Run our Docker pipeline and verify
08:36 - What have we done so far?
08:52 - Create a private GitLab registry with Rancher
09:25 - Get registry token for GitLab
09:53 - Deploy a kubernetes workload from a private GitLab registry
10:25 - Let's create our CD and deploy to kubenetes
11:05 - Let's create our deploy pipeline
11:44 - Convert kube config file to a GitLab secret
12:16 - pbcopy your kube/config
12:51 - Create our GitLab secret
13:50 - Run our release!
14:19 - What do you think about hosting your own DevOps stack?
14:45 - Stream Highlight - What advice would you give to a friend interviewing for a software engineering position?
📯 Videos mentioned 📯
1 - Set Up Kubernetes with Rancher - youtube.com/watch?v=oILc0ywDVTk
2 - Set up a reverse proxy and SSL with Traefik - youtube.com/watch?v=pAM2GBCDGTo
3 - Expose Rancher and Kubernetes API Securely - youtube.com/watch?v=Af7HXhElams
⏯ Recommended Videos ⏯
► 20 Ways to Use a Virtual Machine (and other ideas for your homelab) youtube.com/watch?v=SVQmzaSabEQ
► Remote Gaming with Promox youtube.com/watch?v=fgx3NMk6F54
► Techno Tim Homelab Tour -- Server Rack and Network youtube.com/watch?v=23jbcw_n20I
► Homelab Services Tour -- What am I running on my Homelab? youtube.com/watch?v=NHvoN-phAgo
► Let's Build a Discord Bot Using DiscordJS - Moderator Bot youtube.com/watch?v=YSZcyz2-twQ
#Homelab #SelfHosted #DevOps #Kubernetes #Rancher #GitLab #TechnoTim #Proxmox #Virtualization
Thank you for watching!
So you're a software engineer or a developer who wants to self-host your own code in your own homelab? Well this is the tutorial for you! In this step-by-step guide we'll walk through setting up a repo, building and testing our own code (with unit tests) in a self-hosted Gitlab CI runner in our CI pipeline, then we'll build a Docker image and push it up to a container registry, then we'll use kubectl in our CD pipeline to deploy our Docker container to our self-hosted kubernetes cluster! This all happens in a couple of minutes and then we'll truly have continuous integration and continuous delivery in our homelab!
Video Notes: https://technotim.live/posts/self-hosted-devops-stack/
Support me on Patreon: patreon.com/technotim
Sponsor me on GitHub: github.com/sponsors/timothystewart6
Subscribe on Twitch: twitch.tv/technotim
Become a YouTube member: youtube.com/channel/UCOk-gHyjcWZNj3Br4oxwh0A/join
Merch Shop: https://l.technotim.live/shop
Gear Recommendations: https://l.technotim.live/gear
Get Help in Our Discord Community: https://l.technotim.live/discord
2nd channel: youtube.com/@TechnoTimTalks
(Affiliate links may be included in this description. I may receive a small commission at no cost to you.) Tim Kits:
► 4K YouTube Kit - kit.co/TechnoTim/4k-youtube-kit
► Pro Level Live Streaming Kit - kit.co/TechnoTim/pro-level-live-streaming-kit
► Budget Gaming Streaming PC 2020- kit.co/TechnoTim/budget-gaming-streaming-pc-2020
► Performance Virtualization Server- kit.co/TechnoTim/performance-virtualization-nas-server
► Budget NAS Server- kit.co/TechnoTim/budget-nas-server
► Coding & Gaming Keyboards- kit.co/TechnoTim/coding-gaming-keyboards
► Coding & Gaming Mice- kit.co/TechnoTim/coding-gaming-mice
00:00 - Intro
00:20 - What are we going to do today?
00:45 - How did we get here?
01:48 - What will be build?
02:13 - Let's get started!
02:15 - We need a repo
02:30 - Let's create our first CI pipeline
03:22 - Let's create our own CI runner
04:05 - Let's configure our CI runner
05:04 - Confirm our CI runner is working
05:38 - Take our build and put it in a Docker container
06:25 - Create our Docker pipeline with kaniko
07:15 - Use standard version to automate your releases
07:59 - Run our Docker pipeline and verify
08:36 - What have we done so far?
08:52 - Create a private GitLab registry with Rancher
09:25 - Get registry token for GitLab
09:53 - Deploy a kubernetes workload from a private GitLab registry
10:25 - Let's create our CD and deploy to kubenetes
11:05 - Let's create our deploy pipeline
11:44 - Convert kube config file to a GitLab secret
12:16 - pbcopy your kube/config
12:51 - Create our GitLab secret
13:50 - Run our release!
14:19 - What do you think about hosting your own DevOps stack?
14:45 - Stream Highlight - What advice would you give to a friend interviewing for a software engineering position?
📯 Videos mentioned 📯
1 - Set Up Kubernetes with Rancher - youtube.com/watch?v=oILc0ywDVTk
2 - Set up a reverse proxy and SSL with Traefik - youtube.com/watch?v=pAM2GBCDGTo
3 - Expose Rancher and Kubernetes API Securely - youtube.com/watch?v=Af7HXhElams
⏯ Recommended Videos ⏯
► 20 Ways to Use a Virtual Machine (and other ideas for your homelab) youtube.com/watch?v=SVQmzaSabEQ
► Remote Gaming with Promox youtube.com/watch?v=fgx3NMk6F54
► Techno Tim Homelab Tour -- Server Rack and Network youtube.com/watch?v=23jbcw_n20I
► Homelab Services Tour -- What am I running on my Homelab? youtube.com/watch?v=NHvoN-phAgo
► Let's Build a Discord Bot Using DiscordJS - Moderator Bot youtube.com/watch?v=YSZcyz2-twQ
#Homelab #SelfHosted #DevOps #Kubernetes #Rancher #GitLab #TechnoTim #Proxmox #Virtualization
Thank you for watching!










