Reddit DevOps
270 subscribers
5 photos
31K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
What self hosted Git solution are you using?

I'm looking for a quick and easy self hosted Git solution just for my own private projects at home. What would you guys suggest? I've been looking at https://gitea.io/en-us/ which seems to be quite easy to setup/use. I have Gitlab in work, but it seems to be a bit too big and overkill for my simple requirements of writing some code and tracking it a local repo.

https://redd.it/klqfla
@r_devops
Does ArgoCD supports auto rollback?

I'm using ArgoCD for continuous deployment. I'm pretty new to DevOps so I don't know which tool has which features. Does ArgoCD have a feature to rollback if latest deployment have health issues?

Here's example situation: Sometimes I'm committing bad code to master branch that gets deployed to our production cluster and crashes our main API. I read somewhere that CD tools usually have a feature that rolls back to previous deployment if some part of the application become offline or during increased error rates. Does Argo CD solves that problem or not?

\> I know, i know I have to test code before putting it into production. But our small startup team doesn't have enough time to spend on writing unit, integration tests. So we have to break things and move fast.

Thanks

https://redd.it/klo5cg
@r_devops
How can I self study to apply to a DevOps engineer position?

My current kind of work is mainly on Jenkins, doing some simple CI stuff like writing groovy, bash, python, some basic linux troubleshooting and no more. I know DevOps has a broad range of tools and concepts and I don’t know how to self study it.
So how do you guys self study DevOps? How is your progress?

https://redd.it/klpvm2
@r_devops
DevOps Interviews (Europe)

Hi all,

what is your experience regarding Interviews for DevOps positions in the last months?

All companies I interviewed with asked for AWS/GCP and Terraform. Seems at the end your just guy who writes 40 hours a week Terraform code.

I have a CKA Cert, CKS is scheduled this week, plus heavy K8s, GitLab CI/CD, VMware, Vault, Ansible, Salt, Salt-Cloud, Prometheus, Grafana, Loki experience, but all on-prem.

It is rlly frustrating as it seems clicking around in AWS and writing Terraform is more valued than run your own Infrastructure or your own K8S Cluster.

https://redd.it/klws08
@r_devops
GitLab - what's so special?

Guys, I have never tried out GitLab before. We currently have a Jenkins implementation (on-premise) with a GitHub code repo, Jfrog Artifactory and a bunch of other open source tools for scanning vulnerabilities, testing etc. We are still relatively new in our DevOps journey (20% of total workloads) and don't really have a vision on our LT strategy here (we do have some folks who are wedded to their tools, though).

Thought it made sense to ask those who use GitLab about what they find special about it? And how did they come to evolve their long term vision for how they develop and deploy code (and what's realistic)?

https://redd.it/km593t
@r_devops
View errors in sentry.io?

I have a project using Sentry.io. In the dashboard it shows "40 errors" and when I click on that it just shows me a list of "issues" which only shows the initial "it works" event.

How can I view the actual errors that are taking place?

https://redd.it/km1ics
@r_devops
Future of DevOps

Hi All,

I am a fresher and was offered DevOps role which I accepted. Please enlighten me about the demand for DevOps engineers, salary growth I can expect after 2-5 years and the difference between SRE and DevOps.

Should I try to switch to developer role or DevOps is as rewarding as development?

Also, if anyone can share learning path or material, that would be helpful.

Thanks in advance.

https://redd.it/klurdu
@r_devops
Are there any online services that provides Win-10 VM's with an nvidia GPU? (for debugging).

Not sure if this is the right place to ask, but figured it was worth a shot!

Does anyone know of any services that provide Windows 10 VM's and also specify which GPU (if any) they use under the hood? (Or possibly even provide an option to choose from different GPU configurations)

I have an AMD graphics card, but I need to do some debugging on a Windows machine with an NVidia card. Only need to install visual studio on it, and transfer a few files to it. So don't need a lot in terms of perforamnce.

Thanks!

https://redd.it/kly9sz
@r_devops
How many people are on your DevOps team compared to the size of your company?

Half of my team was laid off this year, and the survivors are feeling overwhelmed. I know DevOps is different in each company, but it'd be nice to have some perspective on whether I'm just spread thin or I stink at my job.

https://redd.it/kml0y1
@r_devops
How we compress Pub/Sub messages and more, saving a load of money

https://blog.lawrencejones.dev/compress-everything/

I was reflecting on some optimisations we've made recently, both for cost saving and performance, and realised how useful compression is.

Especially in a cloud environment where you are charged by the byte, you can find many situations where costs can be cut by ~80% with very little effort.

Wrote an article about how we used compression to save ~$11k on a migration of logs, and then ~$3k/month thereafter. Also mentions compression of databases and Postgres' wal_compression parameter as more examples of compression in non-standard places.

Hope you find it interesting!

https://redd.it/kmltbx
@r_devops
Typescript for infrastructure-as-code/infrastructure-as-software

Hey Everyone,

I primarily write automation code so I've used JS with Node a bit, but it's definitely a language that I use the least amount. I'm usually in Go or Python.

One thing I've noticed ramping up in the infrastructure-as-software space recently has been Typescript. I've been following what AWS CDK and Hashicorp CDK is doing for a while and noticed one really important thing:

One of the first languages they're incorporating support for is TypeScript.

This got me thinking - Is Typescript going to be a core focus for people wanting to write their infrastructure-as-code/infrastructure-as-software using a general-purpose programming language?

It definitely makes sense because Typescript and JavaScript are incredibly popular. To be honest, I thought we would be seeing this kind of code written more in Go and Python, and it is, but Typescript seems to be the most popular for this type of implementation.

Are you all seeing the same thing in the Typescript community? I'm curious about your thoughts on this. If you haven't seen what I'm referring to, I recently put on a new video on the topic, which you can find here: https://www.youtube.com/watch?v=Z4aEH5xME08

https://redd.it/kmhki4
@r_devops
Using GitLab Pages to Host a Helm Registry

Hosting your own Helm Registry is helpful for making Kubernetes deployments reusable. GitLab Pages is a great way of hosting your own Helm Registry without any hosting charges and by setting up a few triggers, is easy to incorporate it into your automated workflow. https://simonemms.com/blog/2020/12/27/using-gitlab-pages-to-host-a-helm-registry

https://redd.it/kmmsio
@r_devops
CI/CD for ios on AWS

In reinvent 2020 there is now ability to use mac's, has anyone tried to build a ci/cd for ios with device farm included? I see no updates in any documentation anywhere.

Example
Code pipeline --> code comit/github --> codebuild --> Device Farm --> S3 bucket (ios app file)

https://redd.it/kmkh7s
@r_devops
how to write if conditions in bash and how conditions get tested using a command 'test'

In the video below, we will discuss the weird part of bash. Bash if conditions structure does not look different than any other if statement structures in other programming languages. However, how the test condition is written and get tested is a bit confusing at the beginning.
https://youtu.be/BdU5SflFHKk

https://redd.it/kme2j7
@r_devops
linux GUI+CLI app to manage servers, credentials, notes...

Projectpad allows to manage secret credentials and server information that you need to handle as a software developer or sysadmin.

Projectpad's target audience are people who today have to use several tools to do their work effectively: a keepass-like application, a series of text files with notes, and a few shell scripts. Instead of that, projectpad offers a streamlined, integrated solution.

https://github.com/emmanueltouzery/projectpad2

https://redd.it/kmbxf8
@r_devops
SQL Injection Quetion

Hi,

How do I verify this result that I had from ZAP report?

​

Description SQL injection may be possible.

URL https://localhost:8080/*****/*****/*****

Method POST

Parameter ******

Attack 1' AND '1'='1' --

Other information

The page results were successfully manipulated using the boolean conditions [1' AND '1'='1' -- \] and [1' AND '1'='2' -- \]

The parameter value being modified was stripped from the HTML output for the purposes of the comparison

Data was returned for the original parameter.

The vulnerability was detected by successfully restricting the data originally returned, by manipulating the parameter

CWE Id 89

https://redd.it/kmj5ea
@r_devops
Introducing Amazon Managed Service for Prometheus (AMP)

This fully-managed service is 100% compatible with Prometheus. It supports the same metrics, the same PromQL queries, and can also make use of the 150+ Prometheus exporters. AMP runs across multiple Availability Zones for high availability, and is powered by CNCF Cortex for horizontal scalability. AMP will easily scale to ingest, store, and query millions of time series metrics.

The preview includes support for Amazon Elastic Kubernetes Service (EKS) and Amazon Elastic Container Service (ECS). It can also be used to monitor your self-managed Kubernetes clusters that are running in the cloud or on-premises. It is fully integrated with AWS IAM for access control and activity audit via CloudTrail. https://aws.amazon.com/blogs/aws/join-the-preview-amazon-managed-service-for-prometheus-amp/

https://redd.it/kn3hsc
@r_devops
How to implement an email integration functionality like Hubspot?

I don't know if this is the appropriate sub to post in, so feel free to redirect me to more suitable sub.

I want to implement email integration functionalities like in Hubspot for my business. (Log email automatically with BCC or forward). Basically, at Hubspot, after signing up, I get a unique [email protected] email address. Then anyone can BCC [email protected] and the content of the emails including attachments will automatically appear in my Hubspot dashboard.

I want to implement the same feature for my business. A registered client will get an email address from me that they can CC to (says [email protected]), and then I can access the contents of the emails sent to [email protected] and do some data processing.

At the moment, I think of:
1. Setting up my own mailserver (using programs like mailinabox) that can receive email
2. For every client, I can give a newly created account from my mailserver, that I can then check for incoming email contents and attachment.

Is this a viable way? What other alternative tech stacks can I use to achieve this? Are there any services that already did this that I can integrate to my server?

Thanks a lot in advance.

https://redd.it/kmz0rl
@r_devops
Chef habitat delete origin

Chef Habitat builder

I have searched a lot but cannot find an answer. Chef also says that you can delete origin but nowhere can see how to delete one. I have gone through all the options in builder GUI but cannot delete it.

Can I delete it from CLI, if yes how? builder is building it as public....I changed to private but still will not give any option to delete

Thanks in advance

https://redd.it/kn0ruj
@r_devops
A distributed shared state for your Kubernetes pods

Hello all.
I’m working on an open source project and would love to get your feedback.


The C19 Protocol is a distributed shared state (replicated cache) for Kubernetes (and other platforms) and can be embedded within your pods.


It allows a set of services to agree on a service-wide state. C19 agents are running alongside your containers in a pod and the data is being distributed amongst them. This makes the data available locally to your application.


I designed it to be extensible so different patterns can be used, based on your use case.
The project itself is written in Rust.


Code:
https://github.com/c19p/c19


User Guide:
https://c19p.github.io/user-guide/title-page.html


Developer Guide:
https://c19p.github.io/developer-guide/


Any feedback appreciated! And please let me know if you believe it might be a good fit for a use case of yours
Thank you!

https://redd.it/kmxru3
@r_devops