Reddit DevOps
274 subscribers
68 photos
32.1K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Hey Guys , I need some serious help with Kubernetes and CI/CD.

Hello everyone, english is not my first language so if something is not clear enough just say in the comments.


Now for some Backgroud.

I'm 21, working for a consulting firm and completely lost and overworked. I'm all alone in the Cloud department ( We work exclusively with Google cloud) and I'm responsible for all external and internal projects. I'm looking for a new job but for now, I'm stuck here.


I'm automating what I can, when I can and this subreddit, along with many others, have been crucial to make my living hell of a life a little bit more bearable. But I'm still very unexperiencied with some core things like kubernetes and Ci/Cd.


That wouldn't be a problem normaly, very few (if any) of our projects involve Kubernetes and the like, but someone in the sales team scored a Fucking Kubernetes Workshop.


The Clients in question has been working with it for about a year and wants to know how to do a CD pipeline and Best practices related to monitoring, GCP in general and performance issues. That would be ok if I had time to prepare for it, but for some ungodly reason I have just this week, Starting the Workshop next Monday. I know the very basics of Kubernetes and CI/CD, nowhere near enough for this Workshop.


What should I focus on ? What places should I look for information?


Thanks Everyone.

https://redd.it/elfodi
@r_devops
CI/CD strategies in Cloud

Hello All,

I would like to know the best possible to way to achieve in Deployments for Multiple AWS Environments across multiple VPCs and accounts.

Our SCM, Bamboo, Nexus, Nexus-docker, SonarQube resides in **Account - A** which we use only for building binaries and Docker Images, unit tests and Code Coverage scans, and then we have GoCD running in AWS EKS in **AWS Account B** in Deployment VPC while applications run in EKS cluster in Applications VPC, GoCD Agents use A service account that EKS-CLuster Policy so it can deploy into APP Cluster.

We have Four Environments across 3 AWS Accounts

Account B - Dev

Account C- QA and Staging

Account D - Prod

for each account Account we have two VPCs as explained above, The Deployment happens through GoCD which is in Deployment VPC in same account and uses Source Code repos and Docker Images from Account - A.

We do HELM for MicroServices, So I would like to know the best possible way to deal with Continous Deployment considering STG and Prod deployment should trigger only through a Change Request.

We were thinking to follow Branching model for each environment and merge code through pull request but somehow we feel this isn't the best solution hence I would like to if anyone in this community had a situation like this and what is your strategy.

​

P.S I'm not a fan of GoCD due to the limitations it has, but I have no choice

​

\-Cheers

https://redd.it/el66b4
@r_devops
What metrics can we use to drive the things we believe in?

Check out this talk from GOTO Copenhagen 2019 by Roy Osherove, author of "The Art Of Unit Testing" and "Elastic Leadership.Growing self-organizing teams". You can find the link to the talk, along with the full talk abstract pasted below:

[https://youtu.be/goihWvyqRow?list=PLEx5khR4g7PLHBVGOjNbevChU9DOL3Axj](https://youtu.be/goihWvyqRow?list=PLEx5khR4g7PLHBVGOjNbevChU9DOL3Axj)

They say that "you get what you measure", and we've all seen it happen. "We need to get the coverage up!" followed by people frantically writing tests that might not actually test anything. Coverage is up. Quality? Not so much. So what metrics can we use to drive the things we believe in? In this session Roy Osherove covers recommended and un-recommended metrics and how each one could drive our team towards a bleaker, or brighter future.

**What will the audience learn from this talk?**

* Leading vs lagging indicators and their value
* What metrics can hurt your agility
* What metrics push towards agility
* Influence forces and why people behave in specific ways (and how metrics play a role)

https://redd.it/elqkkg
@r_devops
Should I stick with VMs or switch to containers?

Hello everyone,

I have an application that utilizes Nginx, PHP, Gunicorn, Python, Flask, Redis, etc. All of these technologies make up the "application" that I serve to each of my customer.

So what I do now is spin up a VM and run a script to configure everything. I've heard of Docker but only seriously took a look at it today and while reading a post on r/docker it was mentioned that docker containers should be used for process isolation rather than packaging entire application stacks together.

Is there any benefit to someone like me breaking up my app stack (I've no idea how or even where to begin) to run it in containers?

Thank you for your valuable inputs.

https://redd.it/elvp5j
@r_devops
dpkg to apt?

We have a 6 week dev cycle and one of our microservices is released via dpkg. Our testbed is a closed loop network without internet access. Using apt to install the .deb package has gotten me into a lot of trouble last time I tried to use it.

1) just using dpkg -i packagename.deb . Ss there any apt equivalent of that that can be run without a local repo or internet access?

2) does this merit trying to run a local repo? I think ansible support for the apt module would be appealing. But again, it's infrequent in the dev cycle.

https://redd.it/els4fd
@r_devops
How to Trigger Jenkins job on Bitbucket Pull Request

Hi guys! Looking to gain some insight on what I am missing. I’m trying to setup a Jenkins job that triggers when a pull request is done in Bitbucket.

I’m very new to Jenkins, so please go easy on me. Here is a detailed description of what I have done so far: https://stackoverflow.com/questions/59653369/trigger-jenkins-job-from-bitbucket-on-pull-request

Also, thanks in advance for helping / guiding / offering advice & suggestions!

https://redd.it/elyquu
@r_devops
I have fiddled with AWS for a while but would really love to try out Heroku or Digital Ocean. Is that a good idea or a distraction?

I have already made a basic Spring Boot app on AWS beanstalk. I am starting to get familliar with VPC, IAM, and policies (though I am FAR from them not making me miserable). But alot of my Udemy course instructors either use DO or Heroku.

I know AWS holds the biggest market share (attractive to employers) and is the cheapest and most powerful. But that also makes it the most complicated. Heroku and DO look really well designed and straightforward. But I am afraid trying them out will spread me too thin.

Is that a good idea? If I end up having less headaches by using DO or Heroku alot of the time I waste on wrapping my head around AWS could be invested in actual development. But I fear it will be like trying to learn Kotlin when you are still learning new syntax keywords in java. I don't know if DO DevOps skills translate into AWS DevOps skills like how a good Java programmer will probably apply alot of what he knows to good TypeScript code.

Is that a good or a bad idea? Because deployment is a serious thorn in my backside at the moment. I want to start my own startup in the future, but right now engineering is a higher priority than DevOps(which I learn to deploy software, not as a career specialization).

https://redd.it/ely9hw
@r_devops
How to document hacky stuff?

what is the best way to make obvious and explain to anyone involved in a particular section of the codebase that has bits where things have been hacked together? Of course there's comments in code, but what about documentation, where/how should this be documented?

https://redd.it/elzxja
@r_devops
DevOps Perspective: G Suite or Office 365?

I realize this is an odd post, and some may have clicked on it just to scoff, but hear me out.

​

Wearing multiple hats for a project team/startup I need to determine the office/collaboration suite. I haven't been a desktop admin in a long time. Most posts I've found comparing the 2 end up being from the business prospective. I'm more interesting in what appeals more to developers/engineers that would let them automate and customize their workflow to their hearts content. Both provide docs, email, etc. Some of the aspects I'm comparing are:

​

* Automatable workflow. The ability to automate workflow between apps using Tasks, Power Automate, IFTTT, etc
* Scripting (somewhat applies to the first). Powershell, GAM, etc
* Interoperability with the companies cloud solution. O365 and Azure, GSuite and GCP, etc. Both can do some interesting intercommunication between apps and cloud; Using Sheets to change GCP instances, etc, but is any of it useful vs "cool tricks"? (also relates to PowerShell and GAM)
* Azure DevOps. I haven't really used it but everything I'm reading says its amazing. Git, deploy, wiki, kanban, etc. I have also read it can deploy to any cloud or on prem. Any advice or opinions about this would be appreciated.
* Collaboration platform: Teams vs Hangouts Chat (current version and preview). I know Teams isn't as good as Slack and Hangouts Chat is pretty limited with a better version supposedly on the way; but I'd still like some thoughts here.
* Anything I haven't thought of.

​

Thanks in advance for any advice.

https://redd.it/elxn9i
@r_devops
Live Devops Q and A on Twitch Tonight! - 5pm-7pm PST

I'll be answering your Devops questions live tonight on my twitch channel from 5pm-7pm PST.

​

[https://www.twitch.tv/learndevopsinsights](https://www.twitch.tv/learndevopsinsights)

​

* Wondering if San Francisco is all that great?
* Want to discuss the ethics of Tech?
* Curious about benefits and salary?
* Wonder what it's like working in Tech as a minority?

​

I'm eager to here what you got!

​

Can't make it out? Reply back with your questions and I'll be sure to answer them in the stream!

https://redd.it/elxj7u
@r_devops
Seeking advice for a web app project.

Hello everyone and sorry for the probably dumb questions that I'm gonna write but I'm getting confused by all the frameworks and solutions out there and I'm not a web developer...

​

I and my other 2 friends are planning to build a relatively simple browser web app that would also use an external API. We have already built all the design and started to code all the front end stuff with react etc. Now, regarding the backend or the server-side, what would be the best solution and where do we start?

Do we have to connect ours react front end with, for example, Nodejs? And then after having everything working put it in a hosting?

Or are there cloud solutions that we could use? What would the advantages be? We tried to look for firebase but apparently it doesn't allow external communications (like the API that we wanted to use).

​

Any advice would be great!

​

**About the web app:** It is fair simple but should have a db, a matchmaking system and all the application should be scalable

https://redd.it/elwtgm
@r_devops
projects to impress a future employer

I'm looking for some ideas for projects that I can build at home, mostly within my current skill set (listed below). I'd like to build, document, and publish (blog) my work. These projects should be aimed at improving my skills but also my CV, and portfolio.

awesome... thanks a lot

**Current Skillset:**

* python
* bash
* containers
* kubernetes
* AWS
* ansible
* linux

edit: updated skills list

https://redd.it/elpz6o
@r_devops
Online build tools for react native ios

Hi everyone

I'm thinking of a build pipeline from code to deployment on appstore from a react native code, i'll need cover on android for the future.

I want to final check if there are some other alternative before i dive in fully in it.

I'm using gitlab for code versionning.
I sawn that microsoft app center cover build/test/deployment for react native app either in ios or android (i will need in the future) and support gitlab directly [https://devblogs.microsoft.com/appcenter/announcing-gitlab-support-for-visual-studio-app-center/](https://devblogs.microsoft.com/appcenter/announcing-gitlab-support-for-visual-studio-app-center/)

What are the other viable alternative on the market ?

I found fastlane for deployment (that work with gitlab CI/CD) [https://fastlane.tools/](https://fastlane.tools/)
I still need to build it (would like online so that i can have a proper pipeline on gitlab)
And test it (alternative i found is [https://appetize.io/](https://appetize.io/) cost look like cheaper than appcenter but in reality it's not because base hour included are way lower) firebase also can do test but no build for ios. [https://firebase.google.com/docs/test-lab/](https://firebase.google.com/docs/test-lab/) and did not seem to be integrable in a pipeline at the moment.

​

Is there other tools out there that i'm missing ? Thanks in advance to the community

https://redd.it/elrfqe
@r_devops
Strategies for SQL Database Deployments

What strategies do people have in place for deploying SQL database changes without impacting code?


Our SQL Database dacpacs have to deploy when code is deployed currently because they are coupled so closely together, but we are looking to change that. I'm thinking of versioning and then tech debt cleanup, but was curious of other approaches.

https://redd.it/emd3fu
@r_devops
Drone Deployment Event

I am trying to trigger an event after deployment to Kubernetes by sending a GitHub webhook to Drone. Has anyone done this?

https://redd.it/emfw67
@r_devops
Show devops: My fully open source SAST scanner

After years of fighting with slow, expensive and cumbersome commercial SAST tools, (and after being let go by my ex-client!), I decided to build my own based on available oss tools. It's time to present sast-scan

https://github.com/AppThreat/sast-scan

The scanner uses sane defaults for a number of languages and frameworks. I have started adding SARIF conversion feature and this helped integrate the analysis with VS code, Azure DevOps and so on. There is also GitHub action integration.

I have few ideas in mind to make it useful for modern DevOps teams. Would appreciate your comments and support to make this project useful for everyone.

https://redd.it/emctw4
@r_devops
Different Docker images with the same image ID but from different repos

I ran into a bit of an issue today again with docker image ID's being the same for different docker images. This caused the auth service to not start right since it was thinking it was pulling the auth image but actually was starting the user image up.

​

Now both of these are built using Jenkins and I've checked and checked, the repo names are correct in the pipelines as well as that there is different tags which come from the commit hash.

​

What might have happened here and what can I do to prevent it happening again? This is a bit scary since this could take down production, lucky this time it was in staging.

​

<ID>.dkr.ecr.us-east-1.amazonaws.com/auth 24e38c0efca9 ec57f009d2a6 2 days ago 114MB
<ID>.dkr.ecr.us-east-1.amazonaws.com/user 94a52a1e93fd ec57f009d2a6 2 days ago 114MB

https://redd.it/emfkhb
@r_devops
Aspiring DevOps Engineer and IT Professional's Personal Domain Name Ideas/Examples?

Hey Guys,

I'm currently studying and practicing to make a transition into a career as a Site Reliability Engineer (DevOps) and I'm currently an intermediate Systems & Network Administrator. One thing I'm studying is middleware such as NGINX and I'm learning how to deploy/configure such and also HTTPS certificates. I'm going to buy a domain so that I can host a personal wordpress site (for testing/practice but eventually to advertise my skills, bio, and work portfolio). What are some good ideas or examples of an IT Professional's personal domain name? I was thinking *MyInitials*-IT.net? Is that dumb? Should I just make it my *full name*.TLD? Curious what IT professionals use in the real world.

https://redd.it/emezdb
@r_devops
ansible line in file

I have about 10 debug in my task. i am using line in file. I want to know is there a way to have all debug msg have line each. or any other way. I have 10 variables in line parameter and i have to keep going right to add more variable.

Ex. - name: Tcp Ip

debug:

msg: "{{ ansible \_inventory }}"

line: {{ ansible\_inventory}}

https://redd.it/eme5ks
@r_devops