Reddit DevOps
267 subscribers
30.9K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Just yeeted a server from on prem into azure. Yay?

Do we have backups or monitoring? Well no. Are we taking advantage of their super fast database rather than a local MySQL? Nope. Do we have a site to site VPN so we don't have to expose RDP? Also no. Did we just use Microsoft server when we could have moved to a one click deploy Linux? Well yeah, obviously that's the way we have always done it. Are we proving to someone that this cloud thing is real and can do whan a server you can touch can do? Ding!

I read you guys all the time and I feel like I'm working five or ten years in the past here.

Alt account, obvious reasons.

https://redd.it/f99ym6
@r_devops
DevOps SRE

I'm trying to learning and Become DevOps / Site Reliability Engineering, Now I need to learn a programming language, I'm studying in my university Java But I think it is not appropriate for this specialization that I am trying to learn. I think GO, Python, are more suitable, but I do not know what language I start to learn and I need to use it more. Can you help me

https://redd.it/f99cui
@r_devops
Using Docker with SQL Server?

I am wondering if this would be a practical use case for Docker. Our developers currently share a single VM that contains sql server. Alot of times they have to refresh the database which forces everyone to save and log out of the VM. Is docker something that could give everyone their own development environment and then they can add their code to the vm for testing once finished? I am trying to figure out ways to implement docker into our SQL stuff and am not sure if this is a practical use of it.

https://redd.it/f9gb1w
@r_devops
What is a good approach to managing changes in database structure while jumping between feature branches?

When developing over several active feature branches, some of which contain database structural changes, what is a good approach to switching between branches and the inherit databases?

We've previously developed using a single dev database, and all branches connect to it, even though new tables or columns are added in other branches without issue. However, its just a matter of time until this becomes a problem and then we end up duplicating the dev database and run the conflicting feature branch with DB changes on that.

That solution to me just seems odd, and I assume there is probably a better way or best practice I'm missing. TIA!

https://redd.it/f9fooh
@r_devops
Quay.io is experiencing an outage

[https://status.quay.io/incidents/m45m5cxvt0kn](https://status.quay.io/incidents/m45m5cxvt0kn)

We're seeing errors pulling images in our k8s cluster with things like dex, kiam and others

https://redd.it/f9kiej
@r_devops
How often do interviewers read your resume?

I have 2 quick questions if you are searching for a job and seeing this post.

1. How often do interviewers read your resume?
2. What is the best way you find to handle this?
> I know I can google this; I was more interested in responses from people in this field.


Thanks in advance

https://redd.it/f9jsyh
@r_devops
What kind of ops jobs are there that will allow me to program and have great career trajectory?

Is being a sysadmin the only “ops” job there is? For someone new to IT with zero experience, trying to figure out a path, what are some good options?

https://redd.it/f9p9ev
@r_devops
MariaDB Valera Clustering on Centos 8!

https://youtu.be/ZzC9NP9nXok

Hey guys I made a super short video just going through the installation and setup of a 2 node Valera cluster on some Centos 8 Vagrant VMs ✌️

The online documentation was a little ropey so hopefully this helps someone out there!

https://redd.it/f9pufc
@r_devops
Terraform: Understanding State

Hopefully this guide gives others a better idea of what the state is and how it can be managed.

[https://www.thecloud.coach/terraform/understanding-state/](https://www.thecloud.coach/terraform/understanding-state/)

Please let me know if there's anything you like to see my discuss with regards to Terraform.

https://redd.it/f9r175
@r_devops
Junior DevOps Engineer interview

Hello,

​

On Friday I have got my first ever DevOps interview (phone interview) and I'm absolutely frightened!

I don't know what to expect, what questions will be asked, how to prepare. I'm shaking.

​

The job description is very basic, it doesn't say what skills are required or what the DevOps engineer will do. One small slice of information is ''You will help with app deployment''.

​

Do you have any tips for first phone interview? Actually this will be my first tech interview because:

3 years ago I've started as a 1st line support guy - no tech questions.

I've been promoted to 2nd line - again no interview.

Since June 2018 my Job title is Infrastructure engineer - again no interview, internal promotion.

I try to learn as much as possible about everything IT related: storage, security, virtualization, networking, backups. Recently I've started learning Python and Linux administration.

​

What do you think, how can I prepare for this interview?

​

Thank you for help.

https://redd.it/f9s1ep
@r_devops
Help: GitOps+K8S via Terraform is driving me nuts

I'm honestly just frustrated.

I come from a simple CI/CD scenario where my containers are hosted on GitHub with their compose files, and the CI/CD would docker-compose up over SSH.

Now I have an infrastructure repo on GitHub that's public containing all my terraform code for my company infrastructure. Great, right? Everything managed in one repo: [https://github.com/ironPeakServices/infrastructure/](https://github.com/ironPeakServices/infrastructure/) So you have DNS managed on Cloudflare, terraform for my hosted k8s cluster, terraform for the k8s configuration and terraform for any helm packages on k8s.

It's not. If I don't have a scaleway cluster yet, the kubernetes terraform provider will error out (since it uses the kubeconfig from scaleway) and I can't deploy anything until I manually remove the kubernetes/helm stuff, run the pipeline and manually enable it again.

If I finally have a k8s cluster, if anything goes awry during the k8s configuration phase or helm installation, the pipeline will fail and my state will be borked. (Yes I have helm atomic operations enabled). I can't do anything after this since terraform will error out with things like \`namespace already exists\` or \`resource limit already exists\`, forcing me to manually remove k8s stuff out of my state file, destroy my cluster and trigger the pipeline with the k8s stuff disabled, en re-enabling it again...

I posted about these things on the terraform github page, but no help.

I really don't know how others are doing this successfully.

Refs:

[https://github.com/terraform-providers/terraform-provider-kubernetes/issues/775](https://github.com/terraform-providers/terraform-provider-kubernetes/issues/775)

[https://github.com/terraform-providers/terraform-provider-kubernetes/issues/708](https://github.com/terraform-providers/terraform-provider-kubernetes/issues/708)

[https://github.com/hashicorp/terraform/issues/24131](https://github.com/hashicorp/terraform/issues/24131)

[https://github.com/terraform-providers/terraform-provider-helm/issues/422](https://github.com/terraform-providers/terraform-provider-helm/issues/422)

https://redd.it/f9tbqu
@r_devops
From Plain Machines to Container Orchestration: A Complete Explanation

So, considering that "Kubernetes" is either a derogatory term or a holy blessing nowadays, it's a good time to figure out just what in the e-hell "Container Orchestration" is in general. Aside from the fact that most of the websites for these tools give you a nonsensical marketing definition, there's also a ton of required knowledge to even grasp the basic idea.

And so I put together a post that unifies all of the concepts required to understand container orchestration and how it works/helps. It starts with the simplest of ideas, the plain machine, and builds all the way up to clusters of virtual machines running containers. Instead of showing you the tip of the iceberg and claiming it as the whole, we dive beneath the waters and explore the full picture. Hopefully without freezing our brains out.

[From Plain Machines to Container Orchestration: A Complete Explanation](https://start.jcolemorrison.com/from-plain-machines-to-container-orchestration-a-complete-explanation/)

https://redd.it/f9vov8
@r_devops
GitHub vs GitLab

I've been using GitHub for a long time and it does almost everything I want. The big exception is CD. I've fully embraced GitHub Actions and I even use it as a CD tool for my Terraform deployments. However, the interface is decidedly CI.

GitLab, however, does have a proper pipeline CD interface. It seems like GitLab has all the features of GitHub and then some. Does that seem like an accurate statement?

​

I bring this up now because I have a meeting in a few hours with a team that wants to transition from Jira/Bitbucket to GitLab (one big reason is that our current Atlassian stack is in-house vs hosted). It sounds like they'd like to make this a standard and transition the rest of the org to GitLab as well (with my help).

​

I've always used GitHub + Other SaaS solutions to essentially accomplish what GitLab does in one package. What do ya'll think? I do know that there's a few teams with K8s deployments.....does GitLab help with that somehow?

https://redd.it/f9xfqv
@r_devops
What’s Your Favorite DevOps Interview Question?

If you are about to hire a DevOps engineer, what is that one question you will ask to test whether he/she is fit for the role?

https://redd.it/f9x2t9
@r_devops
Continuous Integration for Python Microservice

Hi everyone,

Currently a lead ML engineer that is very out of my element. I've inherited a code base that's a purely python microservice that serves ML predictions based on requests from a large internal monolithic app. The dev environment for the team is on multiple Windows 10 VMware virtual machines. I have access to a Windows 2012 VMware server. We don't have anything in place for CI/CD.

Instead of running a script to start the microservice, I was thinking of using Docker (with Docker Toolbox and enabling nested virtualization) so that a) I don't need to think about maintaining and running pip requirements.txt for upgrading packages and b) to streamline deployment in our users dev environment.

I can then use CircleCI to automate the "build" which essentially boils down to running unit tests for me upon code commit and emailing errors.
I'm only concerned with the deployment of the python microservice and nothing else.
Is this the best approach?

https://redd.it/f9tka5
@r_devops
setting path for the tools - maven, git

Should i set path manually in global config settings in jenkins or can i select install automatically option. Is there any difference, If so what difference does it make

https://redd.it/f9zy3x
@r_devops
Jobs for AWS Solutions Architect Associates

I'm studying for my AWS Solutions Architect cert and curious about what job titles to be looking for. For those who have completed this certification, what are your job titles? Thanks!

https://redd.it/f9yohp
@r_devops
Docker and GastbyJS

Hi, I am currently building a devops pipline for my school club. The projects we are working on use many different back end technologies (NodeJS, Flask, Django, etc). To deploy the back ends I am currently using Docker Images + Github Actions + Google Cloud Run. This was the best way to handel the variety of frameworks.

A new project is planning to use GatsbyJS and there aren't any good resources / dockerfiles available online. I was wondering if anyone had experience with this and could point me in the right direction. I was going to treat this similar to the NodeJS deployment with an additional build step. Thanks for the help.

https://redd.it/f9zsg0
@r_devops
Jenkins replacement

Our Jenkins jobs execute Ansible playbooks. Soon we plan to migrate some Ansible "tasks" to Terraform. Jenkins gets the job done but I can't look at groovy anymore, I don't like how Jenkins logs, I don't like it's plug-in system. What modern solution would you recommend? Thanks.

https://redd.it/f9pjxh
@r_devops
Critique my attempt at devops for python microservice deployment and best practices

Hi everyone,

Currently a lead ML engineer that is very out of my element. I've inherited a code base that's a purely python microservice that serves ML predictions based on requests from a large internal monolithic app. The dev environment for the team is on multiple Windows 10 VMware virtual machines. I have access to a Windows 2012 VMware server. We don't have anything in place for CI/CD.

Instead of running a script to start the microservice, I was thinking of using Docker (with Docker Toolbox and enabling nested virtualization) so that a) I don't need to think about maintaining and running pip requirements.txt for upgrading packages and b) to streamline deployment in our users dev environment.

I can then use CircleCI to automate the "build" which essentially boils down to running unit tests for me upon code commit and emailing errors.

I'm only concerned with the deployment of the python microservice and nothing else.

Is this the best approach?

https://redd.it/f9pr2m
@r_devops