Reddit DevOps
267 subscribers
1 photo
31K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Bird – An Alternative to InSpec and Goss, Written on Raku.

Hi! I've created the Bird - https://github.com/melezhik/bird - Linux servers verification tool written on Raku ( former Perl6 ) and with Raku API. With recent changes with Opscode Chef and also if you want a programmatic API ( not YAML coding like in Goss ) you might want to take a look at the Bird. The project is still in alpha, but I am open for suggestions.

I've dropped an asccinema if someone wants to see a real example of work - https://asciinema.org/a/428954

https://redd.it/oywf4s
@r_devops
Advice on how to pass technical interviews

Tltr: 4-5 as a DevOps engineer, rejected a lot after the technical part of the interview, trying to go for senior positions.
wanted to learn from Your experience, what websites are good? company's that helps with technical interviews?

https://redd.it/oyf007
@r_devops
mOVING TO A devops workflow riddled with *probably* silly questions

Hi,


The place I work at is an old software house that uses old technology that wants to move into the devops approach. I'm working on an greenfield project that already has a base and we tend to work in a waterfall model approach. Here are the current tools we use:

- TortoiseSVN
- AngularJS Frontend
- Standard PHP backend
- SQL Server on a Microsoft dev server



So the project directory typically looks like this:

- /pages
- /js
- /php
- /configs


The pages would be using the set javascript files for each of the single page. JS files sends GET/POST requests to the PHP files. The PHP files uses the configs to basically communicate with the SQL server, performs the SQL Queries and returns to it to the JS to be used. So an example would be like:

- /pages/user.html
- /js/user.js
- /php/get_users.php

User.html would be a page that lists the users on the application, in the JS of that, it runs a HTTP GET request to get_users.php to essentially get the users. We would access the page via the server url so like `<devserver/projectname/pages/user.html>' so you see whatever changes you make. We also have a live server which contains a similar environment and how we usually deploy to live is just copy and paste the files to the live server and run any sql scripts on the live database so it is up to date and works with the current code base being pasted into it.

We now want to move into using these kind of tools/workflow:

- Git/GitHub
- CI/CD
- Laravel API


I've been familiarising myself with these tools to get a base. I've also been looking at docker but i'm not sure if we need it or not. I've taken all this information in but still not sure where to start and could really use some friendly advice on how to get this started or at least potentially be pointed in the appropriate direction.

I also have a couple of additional questions such as, if we were to move into the Laravel API approach, would that mean that the API would have to sit somewhere else rather than together with the frontend files?

I have to quickly go out to get my second dose of the vaccine but I thought I would post this to get a base and hopefully get some responses and will add more details when I get back. Thanks guys.

Edit: Formatting

https://redd.it/oyf3tl
@r_devops
Dockerizing existing dotnet application and deploying to Azure app service

Hi, this is my first week and just started using docker for doing a POC to dockerize an existing dotnet application which has 3 web portals connected to Azure SQL database. My team has already build some POC to create a dockerfile for 1 web portal and push the image to ACR and then deploy it to Azure App services. Now I need to build 2 dockerfiles for other 2 web portals and then push them to ACR and then deploy to separate Azure App services via Azure devops pipeline. I have created Azure Devops pipeline for building and pushing to ACR and then deploying to Azure app service and its working fine for the portal where dockerfile was already created by my team. I have created the dockerfile for another portal in similar manner but after deploying to app service facing application error. All the code for 3 web portals is in same github repo. Can anybody through any expert advice how do I proceed with deployment of remaining 2 webportals using docker and creating the dockerfile? I am a beginer in docker and don't have much idea about dotnet too.

https://redd.it/oyzafw
@r_devops
Switch from support to dev?

Hi all, I’m considering quitting my software support job to attend school to become a backend developer.

The reason is that I enjoy working with technology & code, but I hate working with customers.

Am I correct in assuming that backend devs typically don’t have to interact with customers?

What are the major stressors of dev jobs?

Are Devs typically expected to work over 40 hrs/week?

Thanks for your time.

https://redd.it/oy0i9y
@r_devops
What are the top barriers you are facing in adopting DevOps for your organization?

Adopting DevOps? How do you make your transition smooth with DevOps success? There are many reasons why DevOps uptake has been slow.

View Poll

https://redd.it/oz0lsm
@r_devops
How can I monitor nginx status?

I've been using a vm of Digital Ocean to run 3 containers (python+django / nginx / postgresql). So there is already an agent & dashboard to check RAM, CPU, storage usage, bandwidth, load.

How can I check nginx status? In particular, I would like to see requests per second. Any simple way to see this data?

I tried New Relic. But the setup & interface are complicated provided that I only check nginx. It cannot read status_url though I set the status page to localhost. I tried to curl https://127.0.0.1/nginx\_status and it's ok in ssh. But the agent cannot read the data. and I don't know why.

Next, I take a look at nginx amplify but the repo looks like it's not maintained 3 years ago

Any easy way to visualize nginx status data?

https://redd.it/oz0uks
@r_devops
evaluating dagger - programmable CI/CD tool

I recently got access to dagger (soon to be publicly open source), it's described as a programmable devops superglue. It basically aims to replace all your fancy bash scripts in your CI with a clean type-safe declarative configuration.

The language they used is called Cue, it was created by an ex-googler who created the GQL. Dagger allows to embed any script anywhere inside your cue config. The scripts are then executed transparently inside a container. Also it's being built by the former docker team.

I am evaluating it to replace all my devops scripts, especially the kube config templating and container build scripts. The tool is early but there are some supported packages already that you can re-use.

Curious to know if anyone played with it yet or if you have good alternatives.

https://redd.it/oz2tm7
@r_devops
Open source error management system

I'm trying to find something lightweight that I can push structured errors to from my application - so parameterised message text and the parameter values. I'd then be able to assign people to these errors to investigate, mark them as resolved etc.

I believe Sentry open source offers this but also comes with tracing etc. and feels way too heavyweight for what I want.

Hoping somebody can help with a recommendation as I'm unable to find anything so far!

https://redd.it/oz2pzl
@r_devops
OneDev 4.9 - open source git server with built-in CI/CD

The latest 4.9 release comes with service desk feature to create/discuss issues via email. This release also sees the ability to import repositories/issues from GitHub/GitLab/Gitea/BitBucket Cloud/JIRA Cloud/YouTrack.

For detail, please check: https://github.com/theonedev/onedev/wiki/4.9

https://redd.it/oz6lx2
@r_devops
Rundeck: Run job by schedule only?

Is there a way to remove the "Run Job Now" functionality and only be able to run jobs via schedule?

Rundeck is controlled by Puppet so changes will be made via the yaml file, not the console.

Coming up short looking for answers online.

Cheers

https://redd.it/oz6g76
@r_devops
New article about CDK (how to provision an Ubuntu-based EC2 instance)

Hello, I have been spending a bit of time lately playing with CDK and I wanted to share what I learned in a tutorial-style article.

Here it is: https://loige.co/provision-ubuntu-ec2-with-cdk

Let me know what you think! :)

https://redd.it/oz6p6n
@r_devops
I got into a fight with a DevOps Engineer....

Guys

So I posted this the other week but deleted as I was so embarrassed, but I think it's worth talking about how NOT to handle things...

Long story short, I got into an argument with a senior DevOps engineer over using YAML pipelines... Yes you read that correct. He wanted to continue using classic and I updated one to use YAML.. he wasn't happy.

What I should have done is walk away and bring it up with manager, instead a disagreement turned into a heated one, which punches were thrown. He hit the ground screaming in fright, embarrassment and rage...

The stupid thing is we had beers after it and are all good.

It was caught on security footage and I was fired. Ive been in a helpdesk job for the last week as I need the cash. No matter how much someone annoys you at work, never do stupid shit like this as I've probably ruined my career.

https://redd.it/oz8bxo
@r_devops
How to build on-demand cloud service with Hetzner Cloud?

So I want to build a cloud service where users can rent a game server for a specific time. For that, I want to use Hetzner Cloud as a cloud hosting provider. The way I've imagined it on a high level:

1. User rents a game server for N hours.
2. Backend creates a cloud server on Hetzner Cloud with their Hetzner Cloud API.
- Specify cloud-init user data in the API request payload to start the game server with parameters like random password.
- An image with the game server is used to create the cloud server.
3. User waits until the server is online.
4. Backend keeps track of the cloud server and deletes it after the time expires with the Hetzner Cloud API.

Does that approach make sense?

One thing that isn't great for the user experience is that the cloud server creation isn't instant and takes few minutes.

Another challenge is to keep the image up-to-date, not only the distro but also the game server itself.

https://redd.it/oz7r2r
@r_devops
6 Tools to Run Kubernetes Locally



All of the tools listed here more or less offer the same feature, including but not limited to:

1. Multi-Node cluster
2. Persistent volumes
3. Networking
4. Certificates
5. Bare-metal support
6. Dashboard
7. Kubernetes Versions
8. Add-ons
9. Cross-platform
10. Tracks upstream Kubernetes

https://yankee.dev/6-tools-to-run-kubernetes-locally

https://redd.it/ozch0y
@r_devops
tf-free: A project to create free resources on all cloud-providers

Hey r/DevOps,

I've created a project where you can create all the free resources available from the major cloud providers in a single command. I used it as a way to learn infrastructure as a code without relying on companies or external training, and without spending fortunes as well. Furthermore, I hope it helps you, as it did for me.

You are welcome to contribute and ask questions, it is not finished by any means, so be aware you must learn the basics before messing with its configurations.

https://redd.it/ozdlb8
@r_devops
🛠 Deployment strategies in Kubernetes

📓 Learn what are the different deployment strategies available in Kubernetes and how to use them. Read more...

https://redd.it/ozesk2
@r_devops
Looking for books and courses on the fundamentals of design, automation, testing and deployments.

Are there any good courses and books regarding the fundamentals of design, automation, testing and deployments.

What I mean by fundamentals is the core ideas no matter what field you are in be it IT, robotics, aviation etc. Basically fundamentals that can be applied to anything to improve your understanding and implementation of these fundamentals in projects / applications.

In my case it will be more in the DevOps space.

https://redd.it/ozev3p
@r_devops
Traefik + grafana help

Hi, I'm a junior MLE engineer who likes to play with containers and services quite a lot in his free time.

Anyhow, for my purposes I've built a small personal website service, and together with several others for fun, I've put Traefik reverse proxy before them.

Now, I would like to setup prometheus and grafana for some basic metrics (requests, memory, in future i'll try to play with bot detection etc).

My problem is, I've searched the Internets for some kind of a tutorial, and they all assume I am using Docker Swarm, which I don't (just a single Hetzner instance), or a k8s cluster, which I most definitely dont.

Is it really impossible to setup grafana for my simple setup?
Is there a tutorial out there I've missed? If there is, can you link it?
If there isn't, how can I modify the tutorials for my simple use case?

Thanks :D

https://redd.it/ozfolo
@r_devops
Is datadog good for the long haul? ...or nah?

My org is currently looking to consolidate logs, metrics, and traces all into one vendor. We've POC'd a few that claim to do this, like new relic, dynatrace, and datadog, but frankly sometimes it seems like the POC is not representative of reality (I've heard some horror stories about doing exactly this in one of these three companies). At the moment we're leaning toward datadog.

We try to be a forward looking org and don't want to get fuckin stuck (again lol) on a tool that will just get less relevant a few years down the road (happened to use a handful of times)

So my main question is to those that use datadog, is it going to be as relevant to your org in a few years?

View Poll

https://redd.it/ozhv2i
@r_devops