Reddit DevOps
266 subscribers
30.9K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Best way to benchmark and load test an api.

Hi guys

I want to know how you guys benchmark and load test an api endpoint. Is it done depending on the language we use or are there few things which we need to know before load testing an endpoint like whats the architecture the application is hosted etc.

Thanks in advance.

https://redd.it/llv5s7
@r_devops
CI/CD Process for internal Python package

Hi everyone,

​

I am not very well versed in DevOps practices - I am a data scientist and I have good software engineering skills, but CI/CD was always something that "someone else does".

​

Recently, I've created a python package for my team to use. We're just hosting it on Github and we're expecting people to download via `pip install <github link>` like you would install any Python package from a github repo rather than PyPI.

&#x200B;

My question - what kind of CI/CD pipeline can I/should I set up for this? What's important to have - or even, what questions do I need to ask to *know* what's important to have?

&#x200B;

Thanks!!

https://redd.it/lle4us
@r_devops
Managing Microservices using Kubernetes and Docker

OSS colleagues, this Modern Container-Based DevOps program begins by guiding the user through the concept of microservices, explaining fundamentals and other components in IT that play a vital role in obtaining a microservices architecture. It then addresses how to use Git, and work with and manage containers using Docker as well as Podman on RHEL 8. The course then covers how to perform daily container management tasks, and works its way through managing container images, storage, and networking. Module 1, "Microservices Essentials Overview," introduces the microservices essentials, including what they are, why Git is so important, and how containers fit into the picture. The last lesson explains everything that's going on in containers. Module 2, "Managing Containers," explains how to work with containers, including Docker containers and Podman. Module 3, "Implementing Full Microservices with Container Orchestration Platforms," explores container orchestration platforms, which provide the perfect way of managing microservices in an enterprise environment. In this lesson Kubernetes, the most significant container orchestration platform, is also introduced.

Enroll today (individuals & teams): https://tinyurl.com/1pj3ph8z

Much career success, Lawrence E. Wilson - Online Learning Central (https://tinyurl.com/bto061zr)

https://redd.it/llbopy
@r_devops
Using Syslog for Application Logs?

&#x200B;

I am researching a log forwarding solution to aggregate all of the OS and application/services logs across all of our various systems to a single data store. Syslog/Rsyslog works great for OS logs in our system currently, but I am unsure how suitable it will be for application originated logs where the log message may be a large json string containing a serialized stack trace, etc....

I know syslog has added support for json messages but my understanding is it is basically just placing the json string in the message portion of the syslog formatted message, not json from the ground up. Also it seems like some of the syslog implementations have hard limits on message sizes and may potentially split a large message into multiple when processing. My other concerns are with configuring a large number of nodes and configuration updates, I have read configuring the syslog agents is a real pain point.

Can anyone with Syslog experience comment on using Syslog for application messages? Do you recommend it or have any success using it on your systems? Any advice would be appreciated.

Thanks

https://redd.it/llbhax
@r_devops
GCP loadbalancer monitoring, aggregated per route

Hey guys,

Would you know of a tool, SAAS preferably, which would read logs from a GCP loadbalancer and would produce stats (latency/volume/error) aggregated per routes?

By route aggregation I mean:

GET /api/users/52356

GET /api/users/1234

I'd love the tool to be able to detect those two routes are actually the same: /api/users/{\\d+}

I cannot find anything like that, so I made something like LB logs -> big query -> custom view with route parsing -> google data studio to visualize.

If it doesn't exist, should we build that? :)

https://redd.it/llyw0f
@r_devops
So, here's a question...

Is every DevOps engineer in Romania taken?

Honestly, I know the War for Talent is real, but it seems as though for each member of the DevOps community, there are at least half a dozen job offers lying around.

Anyway, there are a few projects (quite a lot, actually) we are working on and we need like lots of great DevOps engineers and maybe you could help me with a few pointers on what is truly attractive to you, when considering job opportunities. Any sort of information is priceless, right now, and greatly appreciated!

https://redd.it/llxbae
@r_devops
Is kubernetes-external-secrets mature enough?

We seek a solution to fetch secrets from various kms/secrets-manager (e.g. aws secret manager) into our k8s cluster as secrets. kubernetes-external-secrets seems to satisfy our requirements but is it mature and stable enough based on your experience?


https://github.com/external-secrets/kubernetes-external-secrets

https://redd.it/llxmmp
@r_devops
CICD pipeline - Gitlab and gke...and helm?

hi - looking to start this, so wondering how everyone deploys to gke using gitlab? i dont have any experience with either.

i am thinking the following - most people build and test in a gitlab pipeline => if tests pass push to a repository with a tag of test (or similar), and then use helm to deploy to a k8s staging environment. once the container is in k8s staging, run functional tests...but then how do you get it in to prod? if functional tests pass, tag with prod and then do a helm deploy again?

any insights in to what people are doing/have found useful/wouldnt do or would change if doing it over again would be awesome!

cheers guys!

https://redd.it/llr2yr
@r_devops
Manifest tag update w/ GitOps workflow

I'm curious to see how others are handling the process of updating manifest files when new tags are pushed for images when following GitOps practices.


You've got your various application repositories - they are responsible for building -> testing -> pushing the image and tag up to the image repository. Then you've got your manifest repository that holds your Helm charts or Kustomize or vanilla yaml, etc., that something like ArgoCD or Flux is watching for changes to update in the cluster. What is the preferred approach/best practice for linking the tags created by the application repositories to the manifest repo?

https://redd.it/llu7dy
@r_devops
Hackerrank for a devops role

I just finished a hackerrank "test" for a devops role. It was a pretest before the interview. I've never used hackerrank, I've always viewed it more for programming. Coming from a sys admin background, yeah I can code a bit, script stuff absolutely, build a pipelines for sure. Make pictures about "devops" architecture and answer obscure questions on msg brokers, and hardly used git commands. There was a bunch of crap stuffed in there that left me scratching my head, not that I didn't know it or have a partial answer. It was just by the book multiple choice answers to pick from, you know the kind that makes it look like a trick question. Not to mention you don't get to use Google or anything you script you can't write print statements to debug, it's basically right or wrong. I love too they don't give you any background to what the topics are so you just go in blind.

I appreciate questioning skills, giving a homework assignment. But I just don't feel like hackerrank was a good option for a devops role.

Anyone have a similar test or experience with hackerrank for devops?

https://redd.it/llmzue
@r_devops
CI/CD pipeline for database changes

Hello World !

^(First time posting on Reddit ! 🆕)

Here an article to include database changes in your continuous delivery process !

https://medium.com/tales-of-libeo/continous-integration-make-sure-database-changes-are-included-using-gitlab-ci-cd-6191e984f8d0


It's done using GitLab CI and PostgreSQL, but no matter what you use, concept should be kinda the same ! Looking for some feedbacks ! 🤗

https://redd.it/llqyyg
@r_devops
What size server for two mobile and two web apps?

My company is planning to launch two mobile and two web applications, all of which have dynamic, not static content. Collectively they make up an on-demand platform, and we’re wondering how big a server we should purchase in terms of memory transfer, and SSD space.

We plan to have one server for each application, and don’t expect to have too much traffic initially since we’re launching in one city. Support for ~1,000 users would be ideal.

https://redd.it/lm9dnb
@r_devops
Terraform and Jenkins

Hey Guys,

I just wanted to ask you for an advice. If you have project in Terraform which is broken into multiple objects(per resource set) - for example:

\- Main Core Virtual Network, NSGs, Subnets, FW etc. all configured in one configuration file

\- Resource Groups - all configured in separate configuration etc.

Same will apply for other resources. Each configuration has its own idependent state file. My question is: how you would go about Jenkins pipeline configuration. Would you create pipeline per resource or you would somehow use one Pipeline. There is a possibility to convert everything into modules and run everything from one main file configuration file. Would that be a solution? So, if one module would change it would only apply the config based on that changed module. Is my thinking right here?

https://redd.it/lm6jlz
@r_devops
Terraform - Warn for hitting AWS Service Quotas before apply

The Problem: terraform apply creates resources without taking into consideration services quotas.

The Need: Verify there are enough Service Quotas before terraform apply creates new resources.

Background: Staging and Production environments have a dedicated AWS account (one for each). Successful plan execution in Staging does not mean it will succeed in Production since they both hold different Service Quotas limits.

Offered solution: Add to the terraform-aws-provider a piece of code that can warn or fail the terraform apply execution due to hitting a Service Quota's limit. This also means adding additional code to terraform that adds two flags -service-quotas-warn (show warnings) and -service-quotas-fail (fail if there's a warning).

DISCLAIMER: It's possible to enforce the same Service Quotas across multiple AWS accounts with AWS Organizations, though it's irrelevant since not all Terraform users use the AWS Organizations service.

Example:
$ terraform apply -service-quotas-fail -auto-approve
...
[LOG] Checking quota limits
[WRN] VPC - required 6, quota 5
[WRN] EIP - required 17, quota 15
[WRN] Request the above Service Quota before proceeding
[ERR] --service-quotas-fail was set # exit 1


My Question To You Is: Is this something you would use? Have you also experienced issues when deploying to Production and hitting the Service Quotas limits?

https://redd.it/lm5w3o
@r_devops
Experiences with Macbook M1?

Hey,

Is anyone using a M1 Macbook for working in a DevOps/SRE role?

I'd like to read some experiences regarding the most common tools:
- Docker
- Terraform
- Packer
- Ansible
- Kubernetes (kubectl, etc.)

I've done some research but didn't find a DevOps point of view yet.

What really attracts me about these new Macbooks is the battery life paired with the great performance.

Thanks in advance!

https://redd.it/lmc986
@r_devops
Does this sound like devops?

I received an invitation to sit for an interview for a Devops Trainee position but the job description sounds so vague and different from what I googled about devops. I'm from a non-tech background and it was a role I randomly applied for without much consideration because I didn't actually think I would get an interview. Now I'm wondering if it's a clickbait job title to draw in inexperienced applicants and if the interview would be worth my time. My goal is to eventually to transition into tech but I'm not sure if this is the right way forward. Would some appreciate some advice.

&#x200B;

Work with tech team to develop a deep understanding of the business cases for change, then drive the approval of projects through site and IT governance processes
Manage site IT Risk, Change, & Compliance tasks for daily operations and during project deployment
Maximizes business value via technical knowledge of strategic IT Applications
Key role in promoting good information practice, utilising technology and improving business processes.

https://redd.it/lmdeci
@r_devops
Image Pull Error K3s

Hey guys,

I am trying to debug the below issue while deploying MariaDB 10.1.14 version on the cluster.

pulling image: rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/library/mariadb:10.1.14": failed to unpack image on snapshotter native: failed to extract layer sha256:42755cf4ee95900a105b4e33452e787026ecdefffcc1992f961aa286dc3f7f95: failed to get reader from content store: content digest sha256:5c90d4a2d1a8dfffd05ff2dd659923f0ca2d843b5e45d030e17abbcd06a11b5b: not found

We are using the native snapshotter because of the environment feasibility.

Any leads on debugging are highly appreciated.

Thanks

https://redd.it/lmgjvb
@r_devops
The Reports of Devops's death are greatly exaggerated

Hey everyone. I wrote a post about the transformation of devops:

https://adnaan.badr.in/blog/2021/01/25/the-reports-of-devopss-death-are-greatly-exaggerated/

This covers my experience and doesn't comment on every aspect of devops out there. Would love to hear some thoughts.

https://redd.it/lmhtim
@r_devops
Any one with good spark kafka experience

Spark kafka automation managing tons of different users with high eps any thoughts tips

https://redd.it/lmcsg7
@r_devops
Blog A CLI tool that can easily manage more than 281 runtimes, making it easy to keep things updated and/or switching between versions. And it’s open-source :)

I just wrote this post. I'm showing an OSS tool that can easily keep things updated on *NIX/Windows and/or easily switch between versions. It's very useful on CI/CD pipelines.

Feedbacks/suggestions/* are always welcome :)

See on Medium: https://medium.com/bash-tips-and-tricks/an-easy-way-to-switch-between-runtime-versions-nodejs-terraform-and-279-53fdfbcb4049?sk=43548418bf394d80e277a39a76070843

See on my Website: https://www.lozanomatheus.com/post/an-easy-way-to-switch-between-runtime-versions-nodejs-terraform-and-279

https://redd.it/lm57x5
@r_devops