Reddit DevOps
269 subscribers
4 photos
31K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Scripting alternative to Make

Hi! Not sure if this is the perfect forum for this, but I don't want to wander around Reddit all day to try and find the perfect subreddit. Please do redirect me if I'm somewhere I shouldn't be.

Currently, at work, we use make for running various scripts that make really isn't designed for. For example:

"make db-dump" dumps the database to a file
"make db-load" loads the latest dump

and so on. The more commands we add, the more complex the system grows. We had to add a "list" command in order to actually see what our Makefile can do (through which the Makefile parses itself, from what I can understand). There's absolutely no support for --help, and sending parameters to a command is a nightmare.

Is there a good alternative to make for these types of use-cases? I.e. not building, but just running a group of bash commands?

https://redd.it/1e3v2e3
@r_devops
Free Review Copies of "Solutions Architect's Handbook 3rd edition"

Packt has published "Solutions Architect's Handbook: Kick-start your journey to becoming a solutions architect" by Saurabh Shrivastava.

As part of our marketing activities, we are offering free digital copies of the book in return for unbiased feedback in the form of a reader review.

Here's what you will learn from the book:

* Understand the role of a solutions architect and the skills required to become one

* Learn about different architecture patterns and how to select the right one for your project

* Explore various cloud computing concepts and services offered by major cloud providers

* Discover best practices for designing and implementing secure, scalable, and cost-efficient solutions

* Gain insights into data architecture, microservices architecture, and event-driven architecture

* Unlock the potential of cutting-edge technologies like large language models, generative AI, and deep learning innovations

* Enhance your solution architecture skills with practical insights from real-world scenarios

* Level up your soft skills with career-accelerating techniques

If you feel you might be interested in this opportunity, please comment below on or before 31st July 2024.

https://redd.it/1e3x24i
@r_devops
Operating Systems config with IaC

Hey guys, DevOps junior here. I would like to deploy VMs using some sort of IaC and to configure them dynamically. As part of creating Kubernetes cluster as a service on an on-premise, air gapped environment.

I know I can use ansible to configure the servers and change their configuration but I found using declarative manifest much more simple to use. Therefore I wondered if there is a platform that knows how to also configure a server (of some Linux distribution ) using IaC

Thank u guys in advance.

https://redd.it/1e3z438
@r_devops
Does this read like a DevOps resume to you?

anonymized resume:

https://imgur.com/a/5puugx9

I have roughly 13 years of experience split between development and testing, however the majority of my testing gigs have been focused on CI/CD and some server management. I'm attempting to make a break into devops and have been adjusting my resume as much as possible to open that door.

I have a day or two left on a course I'm taking for SAA-C03, after completing that and (hopefully) passing the exam, I'm going to start hitting the job applications hard. But thought I'd get some people's opinions before doing so. Please let me know if anything in my resume sticks out (for good or bad reasons).

Thanks!

https://redd.it/1e3y9h8
@r_devops
Looking for DevOps internships Summer 2025

Hi guys!

I'm an international student currently pursuing masters in computer science in the US. I have 3 years of experience in DevOps and Cloud in my home country. And I'm looking for internships in this domain for summer 2025

However I don't see any openings, compared to many software dev roles that have started opening. Any leads or information on how I can be effective and early in my job search for this domain?

https://redd.it/1e410mo
@r_devops
How does your team structure on-call pay?

Some of our customers I have been speaking to at Spike (I’m the founder) compensate for on-call hours (👏). Generally they count the hours on the calendar so we are building a csv export now.

But anyway, that got me thinking about how different teams handle on-call pay. In my experience, some companies pay per hour for being on call, while others do a weekly rotation with daily or shift-based pay. I’ve heard of variations where pay depends on the severity and criticality of the incidents.

What’s the general structure for on-call pay at your company? How much is it usually? Do you have any unique approaches or best practices for ensuring fair compensation?



https://redd.it/1e3yexm
@r_devops
Newbie on devops TeamCity


First, I want to clarify that I'm primarily a developer, not a DevOps professional. I'm experimenting with DevOps on my personal VPS. I have a Next.js app with a Dockerfile, and I managed to set up a TeamCity server and agent with docker. I've successfully pushed the nextjs image through git (github) and CI to docker registry.

Now, I'm unsure of the next steps. Should I use Docker Compose or Kubernetes? I'm trying to avoid Kubernetes if possible. Keep in mind, this is just a hobby project to try things out.

Any advice would be greatly appreciated!

https://redd.it/1e44dq0
@r_devops
Best way to secure a self managed DB

Im running a mysql db on docker in an ubuntu vm. All of a sudden I noticed that my db container does not contain my data again.

After much investigation, I found out my docker volume was compromised, I saw a table called recover_old_data, when I viewed the table, I saw "your data has been hacked".

Im using sshkeys and I disabled password auth to the vm, so I am lost, how the heck were they able to hack the db.


For those managing a self hosted db, what measures do you take to ensure things like this doesn't happen?

https://redd.it/1e46frk
@r_devops
Need Advice for DevOps Enginer

Hello everyone,

I'm pretty new to the world of DevOps, i'm actualy a sysadmin getting evolved into DevOps engineering job in my compagny.

I would like to know if you guys with much more experience than me, you have anything to give as advice for a young devops budy.

As sysadmin, im very familiar with red hat products like rhel, Ansible, OpenShift, Satellite and IdM.

Within my skills my im good at Storage stuff, we have some NetApp and PureStorage at work so thats cool . Pretty cool to work with.

I'm learning Kubernetes now and will probably go for the CKA to challenge my self.

I love IaC and devops concepts so this is why i went into this jobs. Im also familiar with ci/cd and all git stuff around there.

https://redd.it/1e46vit
@r_devops
Entering The Grid

I have 20 years of experience in IT, mostly architecture design around infrastructure to include storage, network and virtualization. I am capable of learning the tools of the trade (python, powershell, bash, terraform, etc.) and have dabbled in some. I've held many certifications all of which have expired as recently as last year. Including cloud certs.

I can't a foot in the door anywhere to get this kind of work. I am currently heavy into Enterprise architecture and deal with hundreds of data centers daily.

Are there companies hiring people like me that aren't incredibly versed in tools like I've mentioned?

https://redd.it/1e4ajx9
@r_devops
DevOps Playground On Old MacBook

I got 2023 M3 Max 36GB RAM 1 TB SSD
Had M1 8GB 256GB, traded
Also have 2019 Intel Mac 8GB 128GB

2019 was collect dust

I wanted to remotely manage a locally hosted kubernetes cluster for a variety of learning endeavors

ELK, kubectl, helm, ssh, OAuth2

Queue minikube

hadissues.jpg

Docker driver notgoodenough.jpg
Virtual box ‘’
Vm ware ‘’

3 days later…

Solution

1. Code api // can ai this
2. Dockerize it // can ai this
3. Test // cannot ai this
4. deployment.yaml // cat
5. service.yaml // cat
6. minikube start
7. kubectl apply -f deployment.yaml
8. kubectl apply -f service.yaml
9. kubectl port-forward // the key part 1 cat
10. sudo socat TCP-LISTEN:8081,fork TCP:localhost:8080 // cat socat
11. now can make requests to host device(intel mac) api from client (m3)



https://redd.it/1e4bu2g
@r_devops
I'm at a crossroads and need guidance. Software Dev or DevOps

Hello All! I'm at a crossroads and need guidance. At 37, I've dedicated many years to tech, moving from helpdesk to desktop and system admin roles. I took a significant pay cut for a role that promised development opportunities, but for 2.5 years, I've been misled and haven't touched any dev work. The company is heavily invested in Azure and C#. Now, I'm torn between learning C# or diving into DevOps, which is reportedly in high demand and better paid.

A new boss has given me the chance to work on programming. I'm weighing whether to stick with my original plan of learning C# or shift focus to DevOps for career advancement and a salary increase. With two children, I can't afford to make wrong moves. I'm seeking advice from those who have faced similar dilemmas. Your recommendations would be invaluable.

https://redd.it/1e4flun
@r_devops
Project reccs to add to resume?

Hey all. I'm struggling finding a new DevOps role right now and thought a project could help beef up my resume. I only have about a years worth of DevOps experience but was gonna do a personal website that was hosted on AWS and is automated with Ansible, Terraform, and GitHub Actions. Does anyone else have any other projects they can reccomend?

https://redd.it/1e4fdr9
@r_devops
Azure Monitoring

What would be the most ideal way to get logs from Azure Monitoring to Amazon Eventbridge?

https://redd.it/1e4h5qb
@r_devops
👍1
Using Golang to automate tasks? Other potential devops-related options?

Hi!


I'm a junior devops with just some months, may be a year of experience with this kind of position, yet I wonder how people with my same kind of job applies programming languages to automate their respective daily tasks or perform any other action.


I'm also currently learning Golang, so may be any of you people are also savvy enough with this programming language to give me some guidance?


Lastly, if you are aware of any resource that might be suited or useful for this topic, I'll be glad to check those out.

Thanks in advance!


PD: I'm aware of most common Golang resources and roadmap.sh, so please avoid those ones, thank you!

https://redd.it/1e4ihxy
@r_devops
Seeking Expert DevOps Advice for Deploying OpenEMR on AWS EKS and RDS

Hey everyone,

I could really use some tips from DevOps experts. I’m working on a “Smart” Hospital project where doctors can rent consultation rooms and necessary tools. My client has a couple of physical locations in the States, and we’re using a mix of AWS and on-prem solutions to maintain these sites.

We’re looking to set up an EMR solution using OpenEMR for doctors at our locations. The plan is to use AWS EKS and RDS, spawning a new OpenEMR instance and its own database whenever a doctor registers. This process will be asynchronous, and after 20-30 minutes, the doctor will receive an email with temporary credentials for their new EMR.

I’ll be using Terraform to create the RDS and EKS resources and either a Python script or a Helm Chart to deploy the EMR instances.

I’m aware this solution might be basic, and I’m still gaining experience in this area. I’d greatly appreciate any advice on how to approach this more effectively.

Thanks!

https://redd.it/1e4hw0d
@r_devops
Suggestions

I recently joined a DeFi company as the sole DevOps engineer. I'm the only devops guy here. Previously, the developers managed the infrastructure and GitHub Actions. They hired me to expand and manage these aspects i think. My background is in Kubernetes, Terraform, Jenkins, and observability. Can anyone suggest how I can learn AWS infrastructure? I never worked in this before.

https://redd.it/1e4jyxj
@r_devops
Container Job Runner?

So I'm doing some research for our new "backend" setup for our project. Currently we already have a system setup but with alot of legacy things we don't need (Company is spin-off from a bigger company). One of the things we're looking to solve is the "orchestration" of jobs. These jobs currently consist of docker containers that do a single task. How this is done right now is through kubernetes, each time a job comes in a pod spins up with the container and a sidecar (the sidecar handles the data in/output).

Now the thing is some of these jobs can be long running jobs of up to 15min. Some of these jobs are extremely short and could finish in a couple ms.

So the problem we're looking to solve is a way to automate the startup/teardown of containers based on simple jobs (This could be an API call or a kafka message). I can't help but think this is a problem that's already been solved so I'm not looking to re-invent the wheel.

For some of these jobs we want to have the output in our UI as quick as possible and right now our short running jobs that are super quick to process waste most of their time spinning up.

https://redd.it/1e4lotf
@r_devops
Which Career orientation should i choose in uni for DevOps?

Hello everyone, I am going into my third year of UNI and now i need to make a decision on which path to choose. I really like coding but maybe not as much as a lot of people i know and lately i have found the topic of DevOps really interesting to me and i want to start teaching myself skills i need to become a DevOps and join different courses. Now i want you guys to tell me which path i should go for based on the subjects that will be lectured to help me even more as a DevOp.

Here are the paths:

1. SOFTWARE SYSTEMS ENGINEERING

Software System Design

Design Patterns and Code Refactoring

Software Architecture

Software Testing and Quality Assurance

2.COMMUNICATION ENGINEERING

Computer Networks II

Basics of Telecommunications and Wireless Networks

Mobile Communications

Network Management and Security

3.WEB & MOBILE PROGRAMMING

Client Side Web Development

Server Side Programming/Web Programming

Mobile Application Development

Web Services & Web APIs

4. DATA ENGINEERING & ARTIFICIAL INTELLIGENCE

Data Models and Databases

Machine Learning Models

Design data processing systems

Data Science and Visualization with Python

5.CYBER SECURITY

IT Infrastructure and Security

Cryptography

Big DataSecurity

Cyber ​​Security




Mandatory classes that will be taken are:

Basics of Artificial Intelligence

Cloud Computing

Interconnected Systems

Laboratory Subject 2 (Group Project)

Project Management and Entrepreneurship

Sorry for the super long read but this is really important to me and right now i really feel like i nedd some guidance. Thanks to everyone in advance!

https://redd.it/1e4lgz6
@r_devops
Azure storage account with containers

I have some troubles with creating storage account with containers with terraform.

Well, it kinda works, but not 100%. My storage account module creates storage account and then container in this storage account.

If I create storage account, then add configuration for container and run terraform again - it works just fine.

But if I add new storage account and container to input vars, it creates storage account just fine, but fails during creation of container. After it fails, no changes are needed, just run terraform again and containers are created just fine.

Its not issue with resources dependency, because containers are dependent on storage account resource and are created later. Its some kind of permissions missing, but I can't find out why.

Error:

Error: containers.Client#GetProperties: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="AuthorizationFailure" Message="This request is not authorized to perform this operation.\nRequestId:xxxx-xxxxx-xxxxxxx-xxx-xxx-xx...\nTime:2024-07-16T09:20:58.4531050Z"

It is AuthorizationFailure. However without any changes to permissions, running terraform just after it failed, works properly.


My theory: Is it possible, that terraform gets credentials at the beginning, when there is no such storage account (hence not having access to it), and then tries to use same credentials to create container in that new storage account (again without credentials yet)? Running terraform again would fix it by getting new credentials, with access to that storage account included (because it now exists on init/plan).

https://redd.it/1e4nvwl
@r_devops
DNS Knowledge | Private, Public DNS Zones, Auto-Registration

Hey,

Looking to expand my knowledge on DNS. Here's my journey so far, if anyone could critique where knowledge is wrong!:

So, I've been setting up my first vNet & while doing this I've learnt that you need a private DNS zone if using Azure Managed Postgres, because Azure managed postgres is only accessible via its FQDN so you need to resolve this with a DNS inside the vNet.

I set this up, and by default auto-registration is turned off. I assume since I am using TF to spin this up & down, turning this feature back on should be alright and save time. This should create the postgres server record set, and I don't have to do it manually.

In the Azure Portal, you can see the record sets for the Private DNS, which is cool and makes debugging a lot easier. nslookup command line utility also looks through these record sets.

Public DNS Zones, these are the name servers the internet relies on. These are for public-facing domains such as google.com and you can either leave these hosted on your register or move them to your cloud provider. Are there benefits of moving your public DNS zones to your cloud provider?


I set up my private DNS with two resources:

azurerm_private_dns_zone -> This was to actually create the private DNS ( Not sure why it's called a zone, multiple servers? )

azurerm_private_dns_zone_virtual_network_link -> This was to link the Postgres subnet to the DNS zone. By default the private DNS is not linked to any vNet.

Thanks, this is my knowledge so far! Other than the basic university knowledge of 'DNS makes domain names human friendly by mapping them to IPs'.

Any books/videos/blogs would also be amazing!


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