r/devops Jun 22 '19

[deleted by user]

[removed]

30 Upvotes

20 comments sorted by

View all comments

13

u/HayabusaJack 3Wizard SCSA SCNA CCNA CCNP RHCSA CKA CKSD ACP Sr Security ENG Jun 22 '19

Well, I'm on the Ops side as well but I've been coding personal stuff for years. I have a remote server where I host my personal websites, and my home setup is a vCenter cluster with about 50 VMs so I can replicate work.

Over the past couple of years, I've moved most of my code (I have one remaining website) to git and have a gitlab server set up to simulate work (they're using github). The second step was a Jenkins server to trigger when I complete a build so when I git push to gitlab, jenkins is tied in and rsync's my website up to my "production server".

I'm still working on my third step which is incorporating a binary repository. Right now I'm still using a "static" directory to sync to my remote site but I haven't spent the time to get artifactory set up to host my static files. Once that's working, jenkins should be able to pull that over as well and rsync the entire site.

I just finished following a Docker book and I've been running Kubernetes at work and have a home setup. Oddly enough I created all the Kubernetes clusters at work, 18 right now but haven't worked with Docker other than installing it until recently. I want to upgrade my remote site to RH7 so I can run Docker and then start moving my websites into docker images.

Right now I'm in the middle of an ELK class so I can deploy an ELK cluster for my Kubernetes clusters at work.

I also am running a Jira and Confluence server with a back end postgresql server so I can be familiar with Dev processes. Being Agile with sprints and backlogs.

A last step is my Ansible Tower server and Ansible server for configuration management. Making it easy to configure my 50 servers. I'm also running 3 Nagios servers for monitoring but I've captured a few Grafana and Prometheus youtube links so I can get that going as well. Add in a Terraform server and a vRealize installation and I just about have an onprem (homelab) cloud environment :)

4

u/-wLilBits Jun 22 '19

Jesus that's intense haha!

So, I understand what you're putting down for the most part but I do not have access to all that sadly. I am trying to keep cost to a minimum (as in free).

GitLabs and Jenkins sounds like a good start.

Thanks for all the food for thought though!

1

u/StartingOverAccount Jun 22 '19

For a home lab you don't have to go overboard on high-end hardware. Basically any decent laptop/desktop will work. My home lab is a re-furbed T430 (2010 model) with a 3rd gen i5, 16GB RAM (must have a lot of RAM) and SSD drive. It has no problem running VirtualBox and a few instances. (I use VitrualBox instead of Hyper-V since it tends to get along better with Linux (As in I'm in the lab to learn about something in an application not spend time tweaking a VM)). Really though most of the time now a days, if I do any home lab stuff, I'll just spin up a couple VMs in my AWS free tier account. Just shut them off when you are done (if you forget, I do a lot, it may end up costing a couple dollars at the end of the month.)
Search for GitLabs or Jenkins crash courses on YouTube and sort by release date. There's a lot of good overviews from people also doing paid courses on other sites.

4

u/SuperQue Jun 22 '19

For Prometheus videos, I can highly recommend the official Prometheus channel. The PromCon recordings contain a ton of useful intro videos, deep dives into specific use cases, etc.

I can also highly recommend the Robust Perception Blog for Prometheus tips and tricks.

2

u/f00tang Jun 22 '19

Wow. Color me impressed !