Reddit DevOps
267 subscribers
31K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
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
DevOps On Kubernetes responsibilities

DevOps Engineers working on kubernetes what are your roles and responsibilities?
Do you write the kubernetes helmet charts or developers do that? What parts should be responsibly of devops and what should be taken care by dev other than writing application code?

https://redd.it/gdb9tp
@r_devops
Question about running MongoDB HA on K8s

I've got a kubernetes cluster running and I've deployed MongoDB using bitnami/mongodb helm chart which created 1 primary and 2 secondary pods, mongodb service that points to the pod labeled primary and mongodb-headless service that points to all mongo pods.

If an app uses the mongodb service to write to the database then it will work only if the primary pod is up, if the primary pod goes down one of the secondaries will become primary but the service won't point to that newly elected primary since it uses labels and the app won't be able to access the database anymore. If an app use the mongodb-headless service then it will sometimes get load-balanced to a secondary pod and won't be able to write.

So my question is how can I make MongoDB always writable even if the main primary pod goes down?

https://redd.it/gd9lq0
@r_devops
Python Azure Serverless [Article]

![](https://raw.githubusercontent.com/groovy-sky/azure/master/images/func-az-ip/az_time_func.png)

Wrote the article, which gives an example of using Azure Python Function for obtaining Azure Datacenter and Office 365 IP addresses.

[Article link](https://github.com/groovy-sky/azure/tree/master/func-parse-cloud-00#introduction)

[Obtained data](https://strgy5exht4o56pkq.z6.web.core.windows.net/)

https://redd.it/gdcc0o
@r_devops
Free Early Access to New No-Code Data Apps Builder

Hey guys and gals!

A while ago together with my team, we developed a new no-code visual development platform for data-driven applications. We are hoping to launch it soon, and we've opened up an early access program for the most curious and enthusiastic.

With our platform, you can turn your data into useful tools by developing web apps 5-10 times faster than you would with traditional coding. It's especially great for working with multiple data sources via API and building rich UI interactions.

We developed it to save time when building web apps for our clients, so we made it easy to use but very powerful. Now we want to launch it to the public and we need your help.

If you are interested in giving our platform a try, drop a comment below and I'll send you the invite. We are looking forward to hearing your feedback and suggestions, and to see what you build with it!

Hope to see you there!

https://redd.it/gdbnnj
@r_devops
Question on designing Architecture

I am currently  working as a devops engineer, mostly working/supporting on tools during deployments and troubleshoot during downtime, but never really got a chance to design anything. 


Our techstack includes Jenkins, spinnaker, sonarqube, docker, Ansible, k8's and the list goes on. There are numerous tools and new one's coming out daily. With these many tools and technologies, if you have to architect a plan when on boarding an application. How do you plan it? What would be your suggestions to someone who is new to designing an architecture.


Thank you.

https://redd.it/gdbhzl
@r_devops
GitOps and immutable infrastructure

What practices do your teams use to enable immutable infrastructure with CI/CD and GitOps?

If you make a change to your application, do you recreate your entire stack or just your services, leaving network consistent from deploy to deploy? What about changes to just your stack? Do you redeploy everything as well? How do you handle artifact generation to ensure the same stack and application artifact between different stages of deployment?

https://redd.it/gdnsps
@r_devops