Reddit DevOps
270 subscribers
5 photos
31K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Average Full stack developer

Hey I'm a full stack developer and been working for past 3 years. Anyhow, i haven't got the opportunity to work on the devops side but now I'm planning to take on it. Can anyone of you recommend me the course or guidelines to start with?


https://redd.it/1dmujdx
@r_devops
Its 2050, you still see Job Posts filled with „Jenkins” as requirement

/rant on

Holy moly mother of sweet Jeruzalem

Why this crap cant die ? Its not maintained for over 10 years, most plugins are CVE10s, ppl moved on, cloud native is already 5-10 years old.

If that deprecation goes as fast as now my grandchildren will be still (dear god pls no) still required to maintain that sh*t.

What the fk fk stops you ppl from migrating off of that pile of smoking hot crap?

And who tf starts a company in 2020 using Jenkins for CICD? Havent you learnt anything in like past 20 years?

/rant off

Every time you post a job offer and list you use Jenkins a kitten dies of cancer.
I like kittens, please stop killing them.

https://redd.it/1dn06s7
@r_devops
Do I still need to do DSA after shifting to DEVOPS?

I shifted from fullstack to devops. I was a good developer (2 YOE). Should I continue practicing DSA time to time? Will it help in devops?

https://redd.it/1dn2flt
@r_devops
Automation using pyautogui on GCP GCE VM, viewing the remote monitor, and controlling the keyboard and mouse

Hello,

I am building an automation script that uses pyautogui to control the mouse and keyboard, along with some simple computer vision, to automate a manual task in the browser. Imagine a bot that finds buttons on a screen, clicks them, drags files around, uploads things, copies and pastes, etc... The task cannot be done via API because no API exists for what I am trying to do.

I can get the script to run on my local mac machine; however, this is obviously not a scalable solution, as I would like to have this script run virtually, and potentially multiple in parallel. I want the script to be fully automated and virtual, such that It has no dependence on my local machine in any form.

I primarily use GCP for my cloud provider, so I was hoping to find a solution using GCP. I would like to be able to spin up a Google Compute Engine instance, with a Linux OS, and run the bot inside the VM. So this would require a few things:

1. The bot must be able to access the browser from the VM.

2. I need to be able to view the monitor of the VM during the refactoring of the bot, so I can make the bot work on this machine (which will look different than my own mac). For example, the icons for files and buttons will appear differently inside the VM than they do on my local machine.I did see that GCP allows for screenshots to be sent back from VM, instead of a live stream, and this may work for my use case (it may be preferable).

But I was just curious if any DevOps folks had experience with projects like this, which can basically be summarized as, spinning up servers on GCP, viewing their monitor remotely, and manipulating things on the VM using the keyboard and mouse (ideally in an automated way). I can imagine this being useful for developing automated tests for applications and video games. I am looking for advice on solving this problem!

Thank you.

https://redd.it/1dn7jwd
@r_devops
Unleashing the power of frame pointers pt.1

Hello everyone, I just wanted to share with you the first episode of a blog series. This series dives into frame pointers and their critical role in building a CPU profiler.

https://blog.maxgio.me/posts/unleashing-power-frame-poiners-execution-environment/

This episode will explore the fundamentals of a program's execution environment. By the end, it shows how frame pointers become essential for stack walking.

I've written it while writing a basic sampling-based kernel-assisted profiler. Indeed, the second episode will be more practical and see how to code a basic profiler, sampling stack traces and accounting them for CPU time, etc.

As we always have something to learn, any feedback is more than appreciated.

Thank you.

https://redd.it/1dn7rhw
@r_devops
I made a simple introductory quiz for understanding Kubernetes basics

Hey everyone, I've been learning K8s recently and I thought I'd put my basic knowledge to the test with a little quiz for myself and my team at work! I thought I'd share it with you all!

Quiz

https://redd.it/1dn9yfy
@r_devops
All the experience folks out there What's your go to strategy to switch jobs

Let me get straight to point have good skill set for 2 Y.O.E but pay is bad
Want to switch but don't know where to begin
Just before you guys say LinkedIn
The hard truth is too much crowd
I'm a devops engineer btw so all the experience folks please enlighten me on your strategy.

https://redd.it/1dn9q67
@r_devops
Can one person manage a Devops practice?

I know it’s redundant because DevOps is an alleged culture, but my real Q is, can one person admin 5+ K8s clusters. 20+ NS and build out TF templates as well as ArgoCD maintenance? How sustainable is all that?

https://redd.it/1dnbjux
@r_devops
The Open Source Tool That Turns DevOps Pipelines Into MLOps Pipelines

Really interesting post–TL;DR
This article explores KitOps, an open source project that bridges this gap by allowing you to leverage your existing DevOps pipelines for MLOps tasks through the use of ModelKits. A short walkthrough and code sample in the article will demonstrate how easy it is to get started.

https://thenewstack.io/kitops-is-the-open-source-tool-that-turns-devops-pipelines-into-mlops-pipelines/





https://redd.it/1dncccl
@r_devops
Live Repository Execution System which can take args+file input - possible with GitHub Actions?

TLDR;

I want a users interact with a basic frontend where they can specify which repository they want to run, any program arguments to pass, and additional resources such as uploading files.
Based on this the repository stored in Github is run with the specified arguments + files, and output is returned to the user on the frontend.

Background

I am in the process of building a system which will allow my coworkers to easily run certain programs and scripts which are stored in Github, either to be executed immediately or set a scheduled time to run, via a basic Flask app. I want to be able to pass arguments, schedule runtimes, upload files, and receive output back on the frontend. I already use Github Actions to run scheduled jobs via cron, however, these don't take any arguments or file inputs, and don't require any returned files or outputs. I'm not sure with the current Github actions functionality if this is possible? I have thought about a system of spinning up docker containers which clones the necessary code and injects the user inputs, however, this seems like it would be much more of an undertaking. I'm trying to see if there is a way to do this currently that is fairly straightforward to set-up, either something existing in Github and I just build the frontend to send the necessary args/files, or if there is an alternative service(s) which would allow me to do this.

https://redd.it/1dnfujz
@r_devops
I want to understand how do guys manage your cloud infra & deployments at your companies

Hi Folks, could use your help, I want to understand how do guys manage your cloud infra & deployments at your companies
I am currently working on setting up the infra tooling just need your guidance

What type of infrastructure are you primarily using?
Kubernetes clusters
Standalone machines (EC2)


How do you manage deployments?
Configuration management tools (e.g., Ansible, Puppet, Chef)
Manual deployments
Github Actions

What Infrastructure as Code (IaC) tools do you use, if any?
Terraform
CloudFormation
Pulumi

Please go in as much details as you can
Want to understand what kind of setup is the most popular among the community

https://redd.it/1dngpx3
@r_devops
How often do you work outside of your normal working hours?

Just wondering how often people here work outside of their normal working hours and for how long?

Say your working hours are 9-5 how often are you working before or after that time as requested by the company due to doing work which can only be completed when there are less customers using the platform?

I'm getting frustrated because it seems to be increasing and I value my time outside of work but I also understand what industry we are in.

Please let me know if there is a better subreddit for this question.

https://redd.it/1dnkaq5
@r_devops
I need some insight here...

The company I work for has me doing just about everything but DevOps. If I am not juggling developing ETL integrations with our iPaaS, I am managing the Tableau Server infrastructure, Dynamics 365, finance systems, etc.

When I do get to do DevOps tasks its... I get an email of a new user who needs access to a project, so I create a ticket and help desk creates the user and adds them to the AD group that adds them to that project.

A project needs a new app service - nope, not me. That's infrastructure so I have to create a ticket for someone over on that team to create the app service.

A project needs a service connection - nope, not me... that's again, infrastructure.

We have a new project - I have to create in Azure DevOps... then request help desk and infrastructure to create the AD groups, add the users, create resources and service connections...

What the eff am I even doing? Oh, hold up, I forgot the other thing I am expected to do... I'm also a project manager now? I have to have meetings with the project managers to ensure the projects are moving forward at appropriate speeds. I coordinate with business owners and the developers to ensure the project development is meeting the BO expectations... implementing features that are being requested etc.

I'm not doing anything DevOps related all. I have this effing certification that they made me get for this role and I'm not doing anything with it. Yet, my boss gets upset when projects aren't following policy. Ok, that's not my job though. I don't enforce policies, that's literally the job of the policy and security teams.

I get paid fairly well and shouldn't complain but I am because my boss wants me doing everything but DevOps and gets upset when I don't do the few things he wants me to do in DevOps on time... such as "standardizing devops projects to company policies".

I can't even develop PIPELINES! My boss wants the developers to manage their own pipelines and I am expected to just play support instead. The same developers who continuously cicumvent our branching policies by pushing their code to a different repository and then having one developer take that and push it into our repository.

Am I just being childish or something?

https://redd.it/1dnkmy0
@r_devops
Day to Day for a DevOps Engineer?

How do your days typically look as a DevOps Engineer (or equivalent)?

I'm a Software Engineer of 10 years with a deep interest in DevOps, and I'm a consultant so I often become "the devops guy" on whatever team I join. I'm curious how a dedicated DevOps Engineer role looks day-to-day to determine if I would like the switch.

https://redd.it/1dnn4h2
@r_devops
When I should be worried about idle time at work

I'm currently working as a cloud engineer in a data analysis team at a global automotive company. For the first four months, there was a lot of work and I was learning something new every day (I came from the SWE area), but for the last three weeks I've had almost nothing to do and there's no sign of any optimistic scenario.

Is it normal in this area (DevOps, Cloud) to have so much downtime? When should I worry? Sometimes I think they've hired wrong: there's no backlog and my leaders ask me to refactor SQL queries because they have no idea what else to ask for. I don't mind doing it, but I confess that it bores me and I feel like I'm stagnating.

https://redd.it/1dnr4r0
@r_devops
Automated telemetry capture using Python bytecode

https://jaywhy13.hashnode.dev/automated-telemetry-capture-via-python-bytecode-modification

This article covers my journey attempting to capture telemetry automatically using Python code. It ended up being super complex and too much for our company to maintain. I'm sharing it to get some insights to see if folks have done anything similar and have ideas!

https://redd.it/1dnu35e
@r_devops
Invalid login: 535 5.7.8 Error: authentication failed: authentication failed with Github Action

I try to send test report of my node.js project with github action automatically.

Here is the relevant part of github action

- name: Send test report email
uses: dawidd6/action-send-mail@v3
with:
serveraddress: smtp.protonmail.ch
server
port: 587
username: ${{ secrets.EMAILUSERNAME }}
password: ${{ secrets.EMAIL
PASSWORD }}
subject: Test Report
body: Test results attached.
to: <mailaddress>
from: ${{ secrets.EMAIL
USERNAME }}
attachments: report.png


I always get the error shown below

`Invalid login: 535 5.7.8 Error: authentication failed: authentication failed`

`EMAIL_USERNAME` refers to my email of proton.me

`EMAIL_PASSWORD` refers to my email's password of proton.me

I also tried to use username of proton.me account but nothing changed. I still got the same error.

Where is the problem? How can I fix it?

https://redd.it/1dnzsgu
@r_devops
Migrating to GitOps for the first time

Currently, I've been doing the CD part in this traditional way: deploy the chart using Helm and combine the values either from files such as values-dev.yaml, values-prod.yaml etc. These files contained the secret and non secret data, the non secret data are just empty strings and they get "injected" during the pipeline run from the secret libraries such as Azure Pipelines Library.

Pods have defined env vars or volumes and I inject the values into these from the values files using Helm syntax.


I am now looking to migrate this towards the GitOps world, so once again I will have the Helm chart defined in the repo, but this time I will be deploying it using ArgoCD installed on my k8 cluster where the Hem chart is also going to be deployed.

But I am now confused, how do I handle the secret values such as connection strings etc. which were before residing in the Azure Pipelines Library which was a part of pipeline. I can still use the files such as values-dev,yaml etc. because I can define them inside the ArgoCD CRD Application, but I can't inject the secret values into them anymore.


Am I doing this wrong, do I need to totally change the approach and ditch this way of using value files and secret data injection.? If yes, what would be the correct GitOps approach then?



https://redd.it/1do0p9f
@r_devops
Full IO manipulation Lib made for Lua

local dtw = require("luaDoTheWorld/luaDoTheWorld")


local concat_path = false

local files,size = dtw.list_files_recursively("tests/target/test_dir",concat_path)

for i=1,size do
local current = files[i]
print(current)
end

Lib Link

https://redd.it/1dnzjyd
@r_devops