Reddit DevOps
271 subscribers
10 photos
31.1K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Russia traffic

Seems like all leaders are busy figuring out what ‘sanctions’ to announce next against Russia. Devops should not miss out, what about configuring traffic drops?

https://redd.it/t1dnql
@r_devops
Any recommendation for some must-know DevOps skills or fundamentals?

What are some of the fundamentals or skills that you guys think an individual must know in devops field

https://redd.it/t1qztw
@r_devops
How to host HTML / JS / CSS?

Working on a small project to teach myself DevOps. I built a simple "notes" web app with a document each for html, js, and css. What is a good web server platform to use for hosting this? I've used Apache a bit in the past, but that's about it. I want to run it on an AWS ec2 and branch out using DevOps tools from there to learn the ropes.

Note: I know there are simple ways to host static website, like in s3 - but I explicitly want to overengineer it a bit so I can work with more DevOps tools.

https://redd.it/t1hzoc
@r_devops
Scale Jenkins Behind Webhook

We have a Jenkins setup on Kubernetes. Agents leverage Kubernetes pods dynamically. But the Master controller is just one and has become bottleneck and SpOF.

We can shard the controller for sure. But wanted to check if we can completely abstract, decouple the controllers from consumers.

We intend to completely hide Jenkins behind a event handler or webhooks service like svix. So we can distribute the jobs to any jenkins controller.

Is this feasible? May be I am missing something obvious.

https://redd.it/t1qxy5
@r_devops
lambda pipeline and buildpec

So I have an application that I want to run in lambda, my pipeline looks like I pick the code from github and then I want to build in codebuild and I want the "jar" file from codebuild to go into an s3 bucket so that I can create a deploy stage for lambda so lambda can pick up the changes from there.

​

Does this sound like a good plan? Also. what should my buildspec.yml should look like, basically I want to copy the jar file present in /targets into s3

https://redd.it/t1pu53
@r_devops
Hashicorp Packer - VMware timeout over 1h

My builds using packer are timing out due to taking over 1h (windows updates...) if I disable the Windows Updates, works fine. Any idea how to overcome this issue? I can't seem to find what I'm looking for anywhere...

https://redd.it/t1xvxk
@r_devops
What Are My Options For Running SonarQube In A Pipeline?

I have previously run SonarQube using the gradle plugin and the server running on localhost.

I have also worked at larger companies where they have a dedicated server instance.

I now need to run it as part of a build pipeline and not just locally. However, managing a server, keeping it up to date with patches, leaving it running all the time when I don't need it etc seems like a pain and I'm on a shoestring without anyone to manage it.

There is a plugin that give the results on the pipeline (which I want), however, it geared all around having a standalone server.

What are my options for running SonarQube in an (Azure) pipeline?

NB: I need a guide or link on how to do the steps of the options too.

https://redd.it/t1o4yx
@r_devops
To Docker Swarm or to K8?

About to dive into the docs for one of these technologies. Start with Docker Swarm?

https://redd.it/t204vt
@r_devops
Custom authentication in Swagger

is this possible?

Essentially we have a custom oauth2 authentication and I am wondering if it is possible to modify the swagger/openapi files to reflect this

https://redd.it/t127ql
@r_devops
Any recommendations to learn Azure pipelines?

Hi guys,

I’m a junior devops engineer. I started two months ago and am still learning on the job. One of my next assignments is to create a pipeline in azure devops.

I was wondering if you guys got some recommendations to check or read (YouTube or other sources) for beginners.

I do have a cs background, don’t know if that matters.

Thanks in advance :)

https://redd.it/t24z1o
@r_devops
kubelet unreachable after switching networks

I created a cluster with kubeadm while at my house on my local machine. When I went to my office, the server was unreachable (kubectl get pods resulted in The connection to the server 192.168.1.0:8862 was refused - did you specify the right host or port?).

What is the reasoning behind this? Are there any links that can dumb this down for me? I was under the impression a cluster running locally wouldn't be affected by a change in network connection.

Note: I ran the usual fix sudo -i && swapoff -a && exit && strace -eopenat kubectl version and the kubelet still wasn't found. systemctl restart kubelet also didn't help. I ended up losing the logs since I returned home and kubeadm reset so I know I'm not giving much to work with, but I'm still curious as to why these issues occurred.

https://redd.it/t25y5l
@r_devops
Pre-requisite to learning Docker and Kubernetes?

I am not formally a software engineer. I'm a statistician, turned data scientist, turned data engineer, turned whatever my startup needs me to be lol.

I've watched a few videos about docker. And at a 30,000ft view understand the concept of K8s orchestrating docker. But I want to learn and understand enough about them to be able to use them effectively with Airflow.

Are there any pre-requisite things I should learn? And are there any resources you guys have that you would recommend for noobs to go from zero to one on these topics?

Edit: Also I'm familiar with Python and bash. I don't know Java and was hoping I could keep it that way. Would prefer depth than breadth in programming languages.

Thanks in advance

https://redd.it/t254v3
@r_devops
How did you get into Devops?

Interested to hear everyone’s path into the field. On purpose or accidentally?

https://redd.it/t2cp4o
@r_devops
Ukrainians are organizing a cyberarmy and call volunteers to fight Kremlin's regime in the cyberspace.

This is a twitter twitter.com/FedorovMykhailo/status/1497642156076511233 post by Mykhailo Fedorov Vice Prime Minister of Ukraine and Minister of Digital Transformation of Ukraine

https://redd.it/t2mk8i
@r_devops
Sonar Qube error



for some reason, the code I pushed will not pass Sonar Qube and it says

Missing blame information for the following files and then lists a bunch of files from my repo. I've looked at all the information on Stack Overflow but still no sucess

https://redd.it/t2v01k
@r_devops
Can someone help me debug an oauth2-proxy issue? It's for an infra provisioning repo I plan to fully open source when complete.

End goal: https://auth.wayofthesys.com/oauth2 should redirect to DigitalOcean or GitHub provider and allow sign in. Currently results in an "oops something went wrong" error at DigitalOcean and a "404 page not found" error at GitHub.

Repo is located here, with link to where I believe the oauth2-proxy command is failing: https://github.com/autotune/pritunl-k8s-tf-do/blob/6f1afcdce7d9acde640c07f1598dd211f791890e/terraform/cluster_resources.tf#L27

Anyone have any suggestions? I'm willing to pay $200 USDT if you can successfully troubleshoot the issue.

https://redd.it/t2xqcy
@r_devops
Hey r/devops , 🇺🇦🔥 Hackers start war on Russia, are you in? #FckPutin

The most important bug bounty this year, by hackenproof

show the dictator what you think about invading Ukraine and shooting children. hunt every vulnerability in Russian infra and media and report to us (or exploit and report to show Ukraine your support).

https://hackenproof.com/ukraine-will-win/save-millions-lives-hackers-against-russia

https://redd.it/t2x3fg
@r_devops
Terraform Orchestration at scale - Generate an Orchestration graph?

Hi, there's an interesting terraform problem I have, regarding orchestration across multiple workspaces and I was wondering what everyone else was doing.

Let's assume that you need to build a workflow for a cloud platform. You've identified some top level groups of workspaces that represent the following resources:

* Accounts (aws or subscriptions on Azure, it doesn't matter)
* Resources that are above accounts (Organization resources or what goes on an Azure Management Group)
* Resources that are deployed inside Accounts (e.g a bucket or a whole Kubernetes Cluster)

In the above scenario you have 3 separate groups of workspaces that need to be deployed in sequence (or what is called a layering approach today):

1. Organization
2. Accounts
3. Account resources

Ideally you want this separation so that you can have small granular states, reduce blast radius and accelerate plan/apply's. Putting everything that lives in an account is an anti-pattern and can become a scaling bottle neck, as per the hashicorp best practices.

To build a workflow that supports the above, there's **two options** I see:

**1)** **Split these top layers into their own separate git repository** ending up with something like this, where each resource group has its own workspace (and the relevant main.tf)

organization.git:
iam/
resource_1/
resource_n/
main.tf
accounts.git
account_1/
account/
resource_1/
resource_n/
account_n/
account/
resource_1/
resource_n/

**2)** **Create a monorepo with a structure similar to this, where each resource group has its own workspace as well.**

platform.git:
organization/
iam/
resource_1/
resource_n/
main.tf
accounts/
account_1/
account/
resource_1/
resource_n/
account_n/
account/
resource_1/
resource_n/

The challenge with both approaches is that you need to have a mechanism that will orchestrate the terraform plan/apply's across multiple nested workspaces.

Terraform simply does not provide that. For example, **with the first approach the sequence of terraform plan / apply should potentially look like this**, based on dependencies across workspaces:

1. Organization::IAM
2. Organization::Resource 1 & Resource 2 on parallel (no dependencies)
3. Organization::Resource N last (depends on previous resources)
4. Account\_1-n workspaces run on parallel
5. Account\_1::Resource\_1 because all other accounts might depend on it
6. Account\_n::Resource\_1 & Account\_n::Resource\_2 run on parallel (no dependencies)

​

Based on the above sequence, it seems that in both scenarios we've generated a Directed Acyclic Graph (DAG) that describes the execution workflow.

* Has anyone considered using a workflow engine to orchestrate the execution of all these workspaces? (airflow / argo worfklows)
* Is there a better way to manage resources across an entire Cloud Organization by minimizing manual orchestration but still keeping state small and granular?

https://redd.it/t2ow0l
@r_devops
Is it a DevOps engineer's responsibility to come up with the status and workflows for epics, user stories, bugs etc, as well as how confluence space and page should be structured? As well as determining the RBAC?

As per title

https://redd.it/t327xw
@r_devops