Reddit DevOps
269 subscribers
5 photos
31K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
The current job is great, really, but I don't do any programming. How screwed am I for the next job search?

The next level up for me is the $200K+ senior bracket working remotely in a MCOL city. I work with Terraform, Kubernetes, and GitLab on a daily basis, but I don't do any programming, like with actual Python code, on the job. I know Python from previous gigs and have open source contributions but can feel my chops getting rusty. What would you recommend to stay up-to-date for when the next job search comes around? I'd like to avoid leetcode and the jobs that require it if at all possible.

https://redd.it/qw9axp
@r_devops
I'm having difficulty learning Go

Landed my first ever role as an SRE back in February. Previously I was a Networking and Systems Engineer in your traditional Enterprise, MS heavy (but not exclusive) environment. This new company took a chance on me and introduced me to the world of kubernetes, docker & CI/CD.

I already had a bit of python knowledge going in - but reinforced it by buying more books and doing the exercises in each chapter and all that jazz. Same goes for learning the fundamentals of kubernetes, docker, Git CI and Argo CD. I primarily use python or bash when i'm implementing automation - and although I'm no elite programming hero, the scripts get the job done and I try my best to keep my code clean. I did a rather heavy amount of ansible at my previous jobs - but most of it dealt with networking equipment and deploying out services to *nix machines - not nearly as expansive as the playbooks i'm writing now.

My boss asked me if I'm willing to learn Go. Of course I am. I'm willing to learn anything - but I'm having a tough time with it. It's so different it's hurting my head. I spent two days just trying to understand how the hell pointers work and even now I still don't think I've quite grasped the concept of it.

When I was learning python, the first book I read and went through was No Starch Press's Python Crash Course. That book was awesome, and very well written - and I picked python up relatively quickly and was able to write really handy scripts within a few weeks.

Not so with Go. I first picked up The Go Programming Language. First chapter almost made me want to cry. So i decided to dumb it down and get O'Reilly's Introducing Go. This book is significantly better, however it tends to gloss over some things that I feel need to be explained a little more for me. I kinda need hand holding with stuff like this. I never went to uni for CS. I went for Engineering and that was a long time ago. Are there some other books I haven't discovered yet that could take me through Go as if I was a complete idiot?

https://redd.it/qwe7uz
@r_devops
What is the easiest or best way to get my Django/React portfolio app online?

Major noob questions here. I....need help.

I've gotten the Django side of things covered and deployed, but it's my first frontend React app and I'm struggling a bit. I'm trying to host them both in a Digital Ocean droplet to avoid having to deal with CORS and CSRF complications. To be totally honest I was hoping I could just run `npm start` instead of building the thing because I'm new to react -- I willingly invite the vitriol this will invite. In fact, I think that 'npm start' is so (appropriately) inefficient that it's eating up all of the ram of my thrifty little $5/month digital ocean droplet and crashing. I desperately also tried heroku and some digital ocean 'Apps' service to no avail. My next step is probably just finding the absolute most responsible way to deploy a React App instead of this chickenshit approach, but again, the CORS and CSRF stuff is waiting to bite me in the ass if I deploy the React side separately from the Django backend.

I picked up docker today and I actually got Docker Compose working locally, but it freaks me out to add a MYSQL client to docker-compose, as configuring a MYSQL server is a bit of a reach for me to begin with. I am totally willing to invest in becoming stronger at Dev-Ops, but I just haven't focused on it much yet.

Essentially, I worked on this thing hard for two weeks and I haven't really left myself enough energy or focus for the deployment side of things. I could ration some time to getting it done right and really understanding Docker, and how it works with React and Django, but I'm not even sure -- might be overkill. I'm super worn out after gnawing on this all day. I'll wake up tomorrow with more initiative and intentionality. I am very open and interested to hearing any perspectives you experiences dev ops may have, thank you!

https://redd.it/qwf6im
@r_devops
How did deployment look like before Docker and Kubernetes?

Hi friends,

Just curious, what did deployment (and DevOps if by another term) look like back in the day before Docker and Kubernetes? Tried to Google for answers but all articles point to some third party Kubernetes/Docker services or bloggers so didn't really help.

https://redd.it/qwf0ll
@r_devops
Concept for an app/platform - code it myself or hire right away?

Hey everyone,

I have a very concise idea of an app I would like to create, very simple user input, small size, some social media elements. I know Python (background mostly in web automation) but I have not done anything in Kotlin yet which I would like to go with because of nativity on Android and the option of using a KMP to ideally make it less of an effort to deploy it on iOS.

Now I'm wondering: Should I build a first version on my own or hire someone right away to do it? I enjoy coding but I am sure it would take me longer than someone who knows his/her way around better; also because I do enjoy directing overall working processes and want to focus on that more (i run my own business with a few employees).

In case anyone has experience in this field: What would you recommend?

Thanks in advance!

https://redd.it/qwn83o
@r_devops
Install a Kubernetes cluster on Hetzner in 5 minutes (7X cheaper than AWS)

Having an out-of-the-box Kubernetes installation can be a big hassle, and I couldn't find a good step-by-step tutorial to set it up until I discovered this open-source project by u/Vitobotta.

I wrote a full article that goes over how to create a cluster using k3s on Hetzner – and how to set up monitoring.

The cluster has one master node and 3 worker nodes, for a total of 12 vCPU and 48 GB of memory – with a monthly cost of \~$54 (while the same config on AWS is $407).

You can read the full article here.

Any feedback is welcome :)

https://redd.it/qwpsna
@r_devops
Looking for a simple, managed cloud provider with CI/CD

Hi folks!

I've worked with the big clouds like AWS, Azure and Google and they're doing a great job, but I'm now **looking for something more guided** and limited.

The options of the big clouds are a bit overkill, depending on the user. As far as I know, Heroku and Digital Ocean are more what I'm currently looking for, but I'd like to get some more **recommendations from you guys**.

Some requirements:

* CI/CD (take source from GitHub and deploy automatically)
* Virtual machines (not managed)
* Managed apps (like AWS Elastic Beanstalk)
* Container (Docker, ...)
* Managed databases
* Highly scalable
* Enterprise support

Any recommendations?

**Thanks** in advance!

https://redd.it/qwqdl7
@r_devops
BLOG Unpacking Observability: The Observability Stack

I am sharing this article prepared by my colleague at Tucows that gives an overview of the Observability Tech Stack. The post is the second piece in their "Intro to Obersvavility" series.

Link here: https://storiesfromtheherd.com/unpacking-observability-the-observability-stack-93d4733e2a72

https://redd.it/qwsf0n
@r_devops
Why use the Docker image and Azure Registry, and not just deploy to Azure App Service?

what would be the advantages and disadvantages

https://redd.it/qwwwxf
@r_devops
Just wondering, career question(s).

Hey everyone, to cut straight to the point: I’m 25 years old and currently in IT support (entry level). My goal is to eventually become an infrastructure engineer / SRE.

How long would you say it would take someone to get from an entry level support job to at least a Junior Infrastructure Engineer?

How much would you say I could accomplish in five years time? I know this is super subjective, but yeah.

Every time I scroll this sub I always see comments full of people talking about the intricacies of all these technologies etc, like how did some of you even get to that point?

https://redd.it/qwx2ur
@r_devops
Github actions - How to compile .scss files to .css files?

Hey all,

When I try to compile it, I am receiving this error in github actions:

Error: /src/scss/main.scss: no such file or directory
at Object._newRenderError (/home/runner/work/_actions/gha-utilities/sass-build/v0.4.7/node_modules/sass/sass.dart.js:2203:19)
at StaticClosure._renderSync (/home/runner/work/_actions/gha-utilities/sass-build/v0.4.7/node_modules/sass/sass.dart.js:2004:18)
at Object.Primitives_applyFunction (/home/runner/work/_actions/gha-utilities/sass-build/v0.4.7/node_modules/sass/sass.dart.js:6525:30)
at Object.Function_apply (/home/runner/work/_actions/gha-utilities/sass-build/v0.4.7/node_modules/sass/sass.dart.js:13852:16)
at _callDartFunctionFast (/home/runner/work/_actions/gha-utilities/sass-build/v0.4.7/node_modules/sass/sass.dart.js:15558:16)
at Object.renderSync (/home/runner/work/_actions/gha-utilities/sass-build/v0.4.7/node_modules/sass/sass.dart.js:15536:18)
at build_CSS (/home/runner/work/_actions/gha-utilities/sass-build/v0.4.7/index.js:122:28)
at Object.<anonymous> (/home/runner/work/_actions/gha-utilities/sass-build/v0.4.7/index.js:167:5)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10) {
formatted: 'Error: /src/scss/main.scss: no such file or directory',
status: 3
}

Here is my main.yml, I am following[Sass Build Action](https://github.com/marketplace/actions/sass-build#quick-start) as the template to convert .scss to. css.

build:
runs-on: ubuntu-latest
steps:
- name: Compile CSS from SCSS files
uses: gha-utilities/[email protected]
with:
source: /src/scss/main.scss
destination: /src/scss/main.css

#deploys to heroku
- uses: actions/checkout@v2
- uses: akhileshns/[email protected] # This is the action
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "ga" #Must be unique in Heroku
heroku_email: "[email protected]"
- name: Compile CSS from SCSS files
uses: gha-utilities/[email protected]
with:
source: /src/scss/main.scss
destination: /src/scss/main.css

Here is my project directory

.github
-> workflows
-> main.yml
src
scss
-> main.scss
-> main.css (untracked in git, and is used locally)
package.json

From my understanding, main.yml starts with the directory level of package.json. Thus, why is it giving out the error?

https://redd.it/qwz5r6
@r_devops
How you decide, if Scale Out or Scale up, your app ?

what is the approach for one case or another thank you very much

https://redd.it/qwwisc
@r_devops
GitLab Runner Infrastructure

What approach do you guys use for hosting GitLab runners?

I’m building out test automation infrastructure. I have the test runner in a docker image. Mostly web based GUI and API testing, with quite a bit of GUI testing that takes a while to run. (I know API>GUI testing but I work on large project with large distributed team, I can’t control everything)

I have a static EC2 image that handles jobs sent from the test pipeline. The tests run in parallel in a number of separate containers.

I’m fairly new to DevOps and not sure how to scale this up. My boss suggested a kubernetes cluster which from the sounds of it can do all that and a lot more. I’ve seen ECS and autoscaling EC2 groups in my research as other possible approaches. Any guidance or words of wisdom for a novice?

https://redd.it/qx49xs
@r_devops
Looking for a calendar web app prederably hosted in docker to add events and send reminders to some emails list before the events

Hey all. I'm looking for some simple web application to add some events (downtime and similar) with some date, time, details which will then send us some reminders X hours prior to the event. Preferably I would like to host this app in some docker container. Bonus part is to be able to subscribe to the calendar through Outlook for example to show the events with the normal calendar.

Any suggestions? Thanks.

https://redd.it/qx66st
@r_devops
Azure or AWS?

I am a system engineer with no cloud experience and when I browse job boards most all are looking for cloud experience. Which cloud infrastructure should I most focus on learning? I'm sure the concepts carry over but I want to focus on the one which will make me the most marketable.

https://redd.it/qxh397
@r_devops
Equivalent of Consul/Consul-Template in AWS for real-time configuration management?

New to cloud esp. to AWS. Unfortunately I could not find anything that I could use in AWS in-place of consul-templates that I am used to when working on-prem. Basically, right now we are having to manually change config files and update them again and again which is very annoying and cumbersome. What is the standard for this on AWS?

https://redd.it/qxctw9
@r_devops
Individual dev environment?

I'm currently working at a company where each developer has their own designated environment in AWS. Curious if anyone else out there uses a similar model. And, if so, very curious how much you all are spending per dev environment?

https://redd.it/qxkjax
@r_devops
History of SRE: Why Google Invented the SRE Role

We got curious and wrote about the origins of SRE and how they got started at Google here :)

https://redd.it/qxik9w
@r_devops
Why DevOps is paying so much?

Curious question, DevOps seems to be bombing and payscales seem to be at the top.

I am college dropout working as SRE and compared my salary to a data scientist with a master and I am earning a little above him when we discussed openly about salary.

I think like cheating because I believe the learning curve for being a data scientist is higher than someone who does SRE. Is this a bubble? Will it explode someday?

https://redd.it/qxop7b
@r_devops
Pulling/Pushing out any AWS ECR images from/to AWS ECR through AWS Route53 CNAME

The main idea of this article is to show how to use CNAME of Route53 to pull or/and push images from/to AWS ECR service. By default, Amazon doesn’t allow to do it (SSL handshake is not working. SSL has been signed by Amazon side).

I played around with Amazon API and Python and proxy and I have found several solutions:

* Use Python and develop wrapper to log in, pull & push AWS ECR images from/to ECR through AWS Route53 CNAME of AWS ECS service.
* Use Some proxy (Ex: Nginx, Traefik, etc) and make forwarding rules with needed headers. This implementation is \`TBD\` soon!
* Amazon ECR interface VPC endpoints (AWS PrivateLink).

The full article you can read here: [https://medium.com/@solo.metalisebastian/pulling-pushing-out-any-aws-ecr-images-from-to-aws-ecr-through-aws-route53-cname-7c92307f9c25](https://medium.com/@solo.metalisebastian/pulling-pushing-out-any-aws-ecr-images-from-to-aws-ecr-through-aws-route53-cname-7c92307f9c25)

The code: [https://github.com/SebastianUA/ecr-pull-push](https://github.com/SebastianUA/ecr-pull-push)

\#AWS #AWSRoute53 #Docker #AWSECR

https://redd.it/qxo7hr
@r_devops