Reddit DevOps
266 subscribers
30.9K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
How do you guys track your deployments when doing configuration managment?

We are currently discussing migrating away from our current tool stack which consists of TFS. (For political and financial reasons).

We use it to host our code, build create and host our artifacts.

We can easily create a release with specific build artifacts and deploy it through agents using PowerShell.

We have around 100 different customer that we manage. Each customer, has between 2 and 4 'stages' (dev/int/prd for example) and we have a total of 4000 tests that gets execute par deployment per customer.

In the end, we have almost half a million of tests that run to ensure that our artifacts are correctly installed and configured.

Since we need to migrate, we have been evaluating GitLab, but we realized that it is not 'as complete' as TFS.
Especially the deployment part. It looks there that gitlab is only intended for smaller number of environments.

In addition to that, displaying the resulted tests, or just the pipeline run really doesn't scale and defeintly lacks some user friendlyness.


I was wondering how guys in other places hanlde this type of scenarios. I feel like we will not be able to find a similar product, and that it would be more of a 'agregation' of several products that would allow us to do this.

I would be curious to hear how you:

\- Deploy stuff onto your environments (Ansible ? DSC / Chef / puttet / something else ?)

\- how do you guys keep 'visually track' of what and where it passed / failed (Nice looking graphs with green & red )

Cheers

https://redd.it/1gbofud
@r_devops
Flox, a better alternative to Dev Containers

Hi my fellow DevOps,

I often have to setup dev environment for teams and projects I work with so I decided to write a short introduction on Flox which really hits the spot - especially compared to Dev Containers.

➡️ https://medium.com/@pierre_49652/flox-better-alternative-to-dev-containers-d02e1a2ec423

Let me know what you think :)

https://redd.it/1gbpbzp
@r_devops
Retrieving TenantID and ClientID from the Service Connection

Hi there,

In short, I found some articles on the internet which claim it should be possible to retrieve things as the ClientId and TenantId from the Service Connection that you specify in your main.yaml
This way I wouldn't have to put these into any variables file, or in the script themselves.

      addSpnToEnvironment: true
     

$env:AZURETENANTID
$env:AZURECLIENTID


However, having tried to put this into the main.yaml, I can't seem to be able to use these variables.
When I use a Write-Host these variables come up empty.

Currently my main.yaml looks like this:

  - task: AzureCLI@2
    inputs:
      azureSubscription: 'Repo-EntraID'
      scriptType: 'ps'
      addSpnToEnvironment: true
      scriptLocation: 'inlineScript'
      inlineScript: |
        .\SendMailMessage\SendMailMessage.ps1 -AccessToken $env:AZUREACCESSTOKEN -TenantId $env:AZURETENANTID -ClientId $env:AZURECLIENTID
    displayName: 'Send Email using Microsoft Graph and Service Connection'




Does anyone know how exactly I can get these variables from the Service Connection into my Powershell script?
Other then people (and Microsoft) mentioning that you can, I can't seem to find out how exactly.


Thanks in advance for anyone who can shed a light on this :-)


https://redd.it/1gbtznh
@r_devops
Has anyone got a CISSP cert?

I am thinking about expanding my skill set and exploring some security engineering, I have a heavy sys admin and DevOps background, cloud experience and all the DevOps things. I am just wondering if anyone has any experience walking this path that I can learn from.

https://redd.it/1gbp3az
@r_devops
Canary deployment

Need help with an issue with canary deployment using flagger. Does anyone have handson experience with it? Need urgent assistance:(

https://redd.it/1gbwoii
@r_devops
Canary deployment issue

I am facing an issue with canary deployment using flagger. Would really appreciate any suggestions. More about the issue in comments.

https://redd.it/1gby1dj
@r_devops
Need handson projects for devops

Guys need help in gaining handson experience from end to end pipelines including kubernetes terraform docker jenkins/gitlabcicd please help me

https://redd.it/1gbwlcp
@r_devops
Best practice for organizing test mocks/stubs in a monorepo?

I have a Turborepo monorepo with two apps - a React + Vite frontend and a Fastify REST API. All shared packages are configured as native ES modules (`"type": "module"`) and have `sideEffects: false` since they only contain types, schemas, and constants.

I need to add test mocks/stubs for my types and schemas, and I'm trying to decide the best way to structure this. Should they live next to their types, or in a separate testing package?

Here's what I mean:

Option 1: Co-located mocks
import { ApiResponse, apiResponseStub } from '@acme/contract';
import { User, userStub } from '@acme/database';
import { Config, configStub } from '@acme/common';

Option 2: Separate testing package

import { ApiResponse } from '@acme/contract';
import { User } from '@acme/database';
import { Config } from '@acme/common';
import {
apiResponseStub,
userStub,
configStub
} from '@acme/testing';

While co-locating stubs next to their types/schemas feels a lot easier, I have some concerns:

1. Tree-shaking reliability: Even with `sideEffects: false`, can I trust that test code won't leak into production builds?
2. Package structure: If I go with a separate testing package, how should I organize it?

Appreciate any input I can get on this :)

https://redd.it/1gc0qst
@r_devops
CLion with Docker toolchain: "The file does not belong to any project target; code insight features may not work properly"

I'm trying to adapt my development workflow to make use of Docker containers for local development.

I'm having a hell of a time trying to get CLion to be configured correctly. The full details of the problem are posted to StackOverflow if anyone is interested in contributing.

See StackOverflow post

https://redd.it/1gc2fkd
@r_devops
Question for the devops folks

Dear DevOps Engineer, I have a question about deploying Docker images in Kubernetes. When I build an image, push it to a registry, and then pull it with Kubernetes, how does it get an IP address to make it accessible via a domain like www.example.com? Also, in my front end, I specify the API URL in an .env file. How can I know the correct API URL to use once it’s deployed to the cloud? I understand Kubernetes uses services, but could you explain how this setup works in a cloud environment?

https://redd.it/1gc6etv
@r_devops
What’s in demand now?

Kubernetes and hyperscaler experience seems pretty easy to find now, and salaries aren't spectacular anymore. Are there any must have skills anymore, or is it all downhill from here as it becomes more saturated? Genuinely curious as to what comes next.

https://redd.it/1gc7qbj
@r_devops
Looking for webapp hosting recommendations - details in post

Hi /r/devops! Not sure if this sort of post belongs here, but figured I'd give it a shot :)

I often have personal programming projects, and sometimes they're webapps. I'm trying to figure out what's a good place to host them.

So far I've used Heroku. I know you can get cheaper (particularly with usage-based costs like AWS instead of flat costs like Heroku), but $12/mo ($7 for cheapest backend "dyno", $5 for cheapest DB) is reasonable for one project for me. Convenience is good.

However, it's nice to be able to have multiple projects going in parallel, and to try new projects out at will, without having to think too much about "is this worth spending money on" or worry about forgetting to spin down unused projects

I imagine I can do some multiplexing, so multiple projects don't cost more than one project. (It's ok if one of my projects causes all of them to crash. These are just toys.) But I don't think I can do this with Heroku. Specifically: I can probably run multiple projects' backends on one dyno, but for databases -- Heroku Postgres doesn't give you permissions to use CREATE DATABASE, alas

Any ideas?

Maybe DigitalOcean? AWS? Dokku + DigitalOcean or something? Something else?

A few more thoughts / requirements:

- Architecture is always simple, no weird needs there (a frontend, a backend, a database)
- Traffic for my projects is very low -- it's just me experimenting, usually I'm the only user, not projects I publish to the public or anything. If I ever have something that needs more traffic, I can figure out what platform to use then -- right now I just wanna figure out what platform I want to use for cheap & easy experimentation
- I want to minimize the risk of me accidentally doing something dumb and then ending up with a bill for thousands of dollars
- I want to minimize or eliminate the risk of someone scraping or DOS-ing my site and then I end up with a big bill -- so cut off my bandwidth or crash my server rather than giving me overage charges or autoscaling, etc

https://redd.it/1gc42w1
@r_devops
Best practices for updated dev toolchain for rhel8 box w/o using a container

Working on rhel8 box with gcc8 and would like to build with newer compiler & tools (emacs, nodejs, clang, ...). I could use a dev container but we're not ready for container deployments and don't care to have that battle yet. I've been other places where they would build all their own tools and you'd just add that to your path (i.e. would have a /devtools/X.XX/ dir on the box with everything installed underneath it).

Any other suggestions?

https://redd.it/1gcd5vb
@r_devops
Software lifecycle book reccomendations

What are some good books on the software lifecycle that focus more on the more practical aspect of the topic.

https://redd.it/1gcdrao
@r_devops
How to build a chat bot with a custom knowledge base? Guide me.


I am starting out to build web apps using AI.
I want to build a tool to convert pdf to csv and integrate a chatbot to interact with the knowledge ( i.e converted CSVs).
Can you guide me how can I build this ?
Any open-source tools that have similar structure will be a lot helpful.


https://redd.it/1gcetg9
@r_devops
What Does Your Day Look Like as an Infrastructure Engineer? Seeking Insights!

Hey there,

Are there any Infrastructure Engineers here? What does a typical day at the office look like for you? What are your main responsibilities, and which skills or tools are essential for your role?

I'm currently working as a trainee Infrastructure Engineer, and I'm gaining exposure to various areas like databases, IIS, cloud, networking, and servers—primarily on Windows. Our team is also expanding into Linux, along with technologies like Kubernetes, Kafka, Nginx, and more. I'd love to hear about your experiences!

https://redd.it/1gcg3ld
@r_devops
Python vs Bash Scripting.

Many DevOps jobs needs someone to be proficient in these skills efficiently.

Lately I have been concentrating more on upskilling more on bash scripting because I am feeling it's more common with the tasks I do lately.

Everything DevOps guys do is mostly on the commandline.

In Python or Bash Scripting which is more important or pertinent to our jobs as a DevOps Engineer.

https://redd.it/1gch4yw
@r_devops
What are you recommendations

I know I have to get a grasp of programming in Python or go and even bash scripting.

I have a little experience and I think I can learn and do things if I embark on projects straight away as a DevOps engineer.

My question is, do I jump on project immediately and find my fit. Like from a beginner-intermediate-advanced style or

Follow the popular roadmaps on the web by first learning Linux which I can't learn it all to other tools before doing projects.

What do you recommend guys?

https://redd.it/1gch0zo
@r_devops
Team skills problems

Hi all, wanted to know whether some of you are in a similar position as me.
Got into a Junior position in DevOps, more like a platform engineer role, and learned a lot in the first couple of months. Later on I’ve noticed that my team is seriously lacking knowledge about anything that’s related to Kubernetes and/or networking, so I didn’t have anyone to ask about issues and problems, or just to learn from. Some basic stuff like what is kubelet, or how to debug the api/etcd failures. Our usage is pretty simple but we’re getting into a situation where it’ll be critical because our scale will be getting bigger in next few months. It’s been like this for over a year and during that time I’ve been self learning via the k8s documentation, creating problems and trying to solve them in my own sandbox cluster, etc, just to get the hang of it. But I still don’t feel like I’m getting the required experience as I should have in a more “serious and professional” place. Don’t get me wrong my team is strong in all other areas, but we’re now in a place that every question that’s related to networking, k8s and Linux is now being redirected to me, the junior.
Is that normal?
Thanks in advance everyone!

FYI, we’re running on-premise.

EDIT: changed btw to fyi lol

https://redd.it/1gchsdu
@r_devops
Looking for Alternatives to SonarQube

Hey everyone,

We’ve been using SonarQube for our code coverage needs, mainly focusing on SQL and .NET Core projects. Our setup includes Visual Studio for development and Azure DevOps for our pipelines.

Lately, we've been considering other options due to some frustrations with SonarSource's support. We currently hold a dev license, but we're open to exploring new tools.

I've come across ReSharper, Codacy, and Veracode in my research. Has anyone here had experience with these, or can you recommend any other alternatives? Any insights would be greatly appreciated!

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