Reddit DevOps
267 subscribers
30.9K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Switching from Software dev to dev-ops in Covid-19 World

I am a former application software developer with 20 years of experience looking to start a new career in DevOps. It's a tough world we live in now, but I am very eager to see how I can start as a junior DevOps guy as a former software dev. I have all the Udemy courses and have started my DevOps journey with learning CentOs Linux (come from Windows/.Net dev background) and would love to know in today's COvid-19 world how a newbie to DevOps could put his foot in the door; there are so many technologies its a bit overwhelming.

- Learn Linux /CentOS
- Learn Python well enough to write scripts
- Docker
- Kubernetes (Most my courses are Docker + Kubernetes, why?)
- AWS (or major Cloud platform of choice, I am choosing AWS , try to get DevOps cert)
- Learn Git in Depth

Any info about Ansible, Terraform, Jenkins or other stuff?

Looking for insight in what to learn and how to break in.. Thanks.

https://redd.it/gc2lo5
@r_devops
Packaging builds as RPMS as a deployment mechanism

More than a decade ago I setup an rpm build server just using scripts and pulling from subversion. Since then I have not had to chance to revisit using RPMS as a way to deploy my builds and have done what most folks do to publish artifacts via ssh and other ways using Jenkins.

Are there still folks here who go through the RPM way? I.e. build the final product as an RPM and deploy it that way and just copy the rpm to the repo? If yes I would love to hear your use cases.

https://redd.it/gc4e3h
@r_devops
CI/CD setup using Docker and Kubernetes

I am trying to set up a simple CI/CD workflow and I would like to represent both Docker and Kubernetes. Is my set up correct?

The simple set up is below, (You can skip the story and directly see my CI/CD workflow [image](https://imgur.com/a/xAt69Jh))

The developers' code is pushed into the Git; the build and test will happen from Maven and Jenkins for CI. Ansible as a deployment tool, we will write Ansible playbooks to deploy on AWS. We will introduce Artifactory as a repository manager, after the build process from Jenkins; the artifacts will be stored in the Artifactory. Ansible can communicate with Artifactory, take the artifacts and deploy them onto the Amazon EC2. The SonarQube can help in reviewing the code and will give static code analysis. We will then introduce Docker as a containerization tool. Just like the way we did on Amazon EC2, we will deploy the app on Docker container by creating a Docker file and Docker images. Once this setup is done, we will introduce Kubernetes to create a Kubernetes cluster, and by using Docker images, we will be able to deploy.

Is my set up correct? Am I missing something?

Please help and advice me to get this done.

https://redd.it/gc1r41
@r_devops
Terraform Cloud Thoughts

Hello,

For some time now, we've used CloudFormation to provision in AWS. However, I'd like to integrate Terraform for various reasons. I've created at least one project locally on my PC for doing some initial testing. I'm setting my sights on a team environment next.

From reading, I see we can use the Terraform command line in conjunction with a remote backend, probably S3 with a Dynamo for locking. However, I'm looking into Terraform Cloud, which seems to do most of what we are looking to do. As well, it also seems to do a CI/CD as well, hooking directly into our GitHub and our AWS environment.

We already use Azure DevOps some for making pipelines for our CloudFormation pushes. What are thoughts around using Terraform Cloud? In general, for what we are doing, does it seem like it is a best route to take? Or, since we have another pipeline tool that does not revolve around Terraform specifically, should we look at staying the course with Azure DevOps and implementing a remote backend that we'll maintain?

Pros, cons, and input from experience are all welcomed. I want to ensure I've considered all aspects before we decide on a direction.

Thanks!

https://redd.it/gbzff7
@r_devops
Forward site traffic to nginx docker

Hey all new to Docker here!

I have a scenario where I want to type in a domain name and have that go to my docker container which is running nginx and then have nginx serve up the web app. I need to use this as a test case for another platform I work on because I need url's to resolve properly with server configs. So for example www.mysite.com should go to nginx in my docker container. Wondering if this is possible? Thanks

https://redd.it/gbyrgm
@r_devops
DevOps job market and lifestyle in different international cities

I wanted to get your opinion on the city you live in:

* How easy is to find a DevOps Role?
* How enjoyable is the city you live in? Socially and otherwise
* What's an average salary in your city and how does it compare with how expensive everything is? In other words, what's your standard of life like there?

I live in London and while I don't hate it here, I am a little tired of it so I was considering other cities like Berlin, Madrid, HK, Zurich, Tokyo, San Francisco... which is why I would love to hear from you, especially if you have also lived in London and can compare it.

I will share my experience of London first, in case you are thinking of moving here:

In London there is an insane amount of work in DevOps, if you have a little experience and you convey yourself well in interviews you can get a job in a couple of weeks or even less. My LinkedIn is continuously buzzing with recruiters approaching me with opportunities, which admittedly some of them may be a bit crappy or a dead end, but many of them will land you an interview. If I put my CV in monster or any of these job search sites it gets even crazier; I get completely overloaded with recruiter calls and companies offering me jobs to interview for. I counted about 35 calls in a day once. This is not a testament of me being amazing or having the best CV in the world, it reflects the experience of many people who work here in DevOps type of roles.

I heard many engineers complain about recruiters being misleading and wasting your time, and I can agree with much of that but generally I think this is a good problem to have. It's good to have plenty of options and never have to stress about ever finding a job, even if not all jobs are dream jobs.

So in that sense London is great, however in terms of quality of life is another story. The pay in London isn't bad (the average is somewhere between 45 to 75K pounds, but when you consider how insanely expensive housing and transportation is, it's not such a great deal to live here. Even making a decent 65 or 70K a year, you can easily spend half of what you make after taxes in rent and related expenses if you don't want to live a million miles away from work or in a miserable flat, or have flatmates.

Also, even though there is a lot to do in London, I am not a big fan of the social dynamics in this city. For example when I worked in Madrid for a short contract people would constantly invite me out to hang out, to weekend parties and such, it just felt much more natural. For example when they asked "How are you?" it was a genuine question, not like the mechanical version you get in London. In London socialising always feels really forced, downing pints with colleagues after work and then go home. Almost every office I worked at always feels very impersonal too (saying hi to people in the kitchen often feels like nodding someone you met once on the street), after many years here I don't feel I have made many meaningful relationships in this place, but this may be entirely my opinion and experience on London.

So in a nutshell, London is great for work and career development, for quality of life is below average.

Would love to hear your opinions and experiences in this of other cities!

https://redd.it/gctdu7
@r_devops
CodePush implementation in Cordova app

I gave this talk over the weekend in a meetup. This might help someone who wish to explore about devops in mobile
App development
https://medium.com/@deepakjha14.ex/codepush-in-action-3cc97d6affa5

https://redd.it/gcs27d
@r_devops
Jenkin pipeline guidance for Beginner

I am pretty new to jenkin pipeline world, and wanted to create a pipeline which can perform all the steps which is currently executed in a shell script ? can someone share some tips how to design this?

https://redd.it/gcrv7p
@r_devops
Docker multi-arch build and images, the simple way

“Build once, deploy anywhere” is really nice on the paper but if you want to use ARM targets to reduce your bill, such as Raspberry Pis and AWS A1 instances, or even keep using your old i386 servers, deploying everywhere can become a tricky problem as you need to build your software for these platforms. To fix this problem, Docker introduced the principle of multi-arch builds and we’ll see how to use this and put it into production.

https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/

https://redd.it/gcmix8
@r_devops
Scripting Type and Level

I'm aware of writing scripts in python is one of the roles for being a devops.

Are the type of scripting like for automation context rather than being a sw dev?

How much oop scripting are you involved as a devops?

Any scripting examples, projects, or youtubes I can find? For instance on youtube, if you type python, it's just purely like building some game app, syntax tutorials, and stuff like that

https://redd.it/gczmvb
@r_devops
Docker Swarm Cluster Complete Guide

Docker Swarm all in one guide:

\- How to set up swarm? - adding node, removing, all inspect methods and commands

\- How to set up services? - creating, updating, scaling, types of services, placement constraints,

And many more...

All command needed for everyday work with Docker Swarm and Docker Services in one place:

[https://knowledgepill.it/posts/docker\_swarm\_compendium/](https://knowledgepill.it/posts/docker_swarm_compendium/)

https://redd.it/gcyehi
@r_devops
Do Banks encrypt our Finacial Records in their database?

Hi I'm sorry if this Is not the right place to post I have no idea where else to post I tried searching this but came back with very vauge information.

Do banks encrypt our finacial records in their database for example like transaction history?

https://redd.it/gd2j7o
@r_devops
How can i keep an each instance in an autoscaling group aware of each other instance?

I have some (3rd party) software that needs me to post a json of all the IPs in the software's cluster to every instance, i'd like to be able to use autoscaling groups the instances are behind a LB. So the annoying part is updating that json every time an instance is created.


My idea is a serverless function get all instances in the autoscaling group, get their ips and return them to the requester. Then each instance will invoke the function then do a local POST of the ips on boot and every x seconds after that to stay in sync.


I don't know how much this will scale up, so if there will be more than 10 instances, i may add a cache in front of the lambda, but since its such a tiny json, it would just be a t2.small redis server.

​

Am i missing an easier way to do this?

https://redd.it/gculca
@r_devops
How do you host internal tools?

Let's say, someone non-DevOpsy comes to you with a script and says "I need a place to run this other than my own computer. It needs to be scheduled every Monday or, perhaps, my team needs to trigger it manually sometimes". What do you do?

E.g. at my previous job we used Jenkins a lot for this. It's a bit messy, but still, Jenkins provides a somewhat unified environment, takes care of scheduling the job, gives you a form for parametrization, etc. I'm wondering if there's something better suited for this purpose with a more human-friendly UI than Jenkins. Something that you could give to non-DevOps people.

https://redd.it/gd3je6
@r_devops
Deserted Island DevOps wrapup

Deserted Island DevOps was a DevOps conference that happened in Animal Crossing this week. It was a lot of fun, and featured some talks that are very applicable to what teams are facing now. Speakers included Ian Coldwater, Matt Stratton and Aaron Aldridge.

Read my thoughts on the event here, including links to the talks: [https://www.firehydrant.io/blog/deserted-island-devops-wrapup/](https://www.firehydrant.io/blog/deserted-island-devops-wrapup/)

Thanks to everyone involved for putting on such a fun, unique event.

https://redd.it/gdh7sn
@r_devops
GitOps with Flux and Kustomize

Hi DevOps,

Long time Redditor, but I finally decided to separate my personal account from a professional account.

Anyway, I have been writing medium posts for some time now and thought I would share them with this sub.

As of late, I have been really into GitOps. When troubleshooting problems in production, I find that the problem lies in one of three categories.

* code
* environment config
* data

If I'm doing things right, environment config related issues can be easily remedied because when my K8S cluster syncs with my source of truth, I'm back to my desired stated.

​

I wrote this article so others can try it out. Hopefully, it will help.

[https://medium.com/@airwavetechio/gitops-with-flux-and-kustomize-24dfabb8bc5d](https://medium.com/@airwavetechio/gitops-with-flux-and-kustomize-24dfabb8bc5d)

​

Thanks for reading.

https://redd.it/gdf877
@r_devops