Reddit DevOps
279 subscribers
70 photos
32.2K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Sysadmin transitioning into DevOps role. Been working on TFS and setting up builds releases. I'm starting to understand how code, testing, build, release, monitoring all work together. Infrastructure as code is what I'm learning currently, its been jaw dropping experience finding it's potential.

Are there any good articles or blogs or sites or specific skillset that you which you looked at before delving into this world if DevOps. I'm testing out Terraform to create a web and app farm of azure windows vms, will demo it to my team very soon.

https://redd.it/dugbz5
@r_devops
Has anyone here used Overops?

Talked to a rep a few days ago, though I wasn't sure if it was worth the cost.

We currently have a hodge podge of tools that we use for testing and QA, was wondering if others have some experience with it or any other competitor?

https://redd.it/dugvix
@r_devops
Career Perspective in Cloud: Kubernetes v.s. Cloud Application

Hi all,

I find Kubernetes is discussed many times in this subreddit so I think this might be a good place for my question. If not, please let me know.

I am a junior software engineer (\~ 2 years) and I am currently looking into new opportunities in my company. I am particularly interested in two areas: Kubernetes (all levels of GKE stacks) and Cloud Application (e.g., using cloud in health care or finance industry, mostly develop cloud services and APIs for ML models and/or for external clients). I hope to know what are the career perspectives in these two areas (since I am not familiar with Cloud) ? E.g., which will help me develop more valuable skillset in terms of growth in future?

Thank you!

https://redd.it/dulmt0
@r_devops
Vue.js CI/CD pipeline

I'm looking into figuring out a good CI/CD pipeline for a Vue.js application that is hosted on AWS S3. This is greenfield sorta, I am already using Jenkins and Spinnaker for other parts of the application and would like not to introduce new tools unless very needed.

​

Currently it is planned deployed to [dashboard.example.com](https://dashboard.example.com) and [dashboard.example.dev](https://dashboard.example.dev) both on S3 buckets. I'm using a CDN (cloudflare) as well for the \`.com\`

​

My only idea currently is having two different Jenkins jobs that use the AWS cli to first build on the dev ENV then build the production version once testing is complete.

​

What are my options? I'd like some way of manually gating it so that it doesn't deploy straight to production but instead goes to dev then once I approve it, it would then go to prod.

https://redd.it/duh4nh
@r_devops
What method(s) does everyone use to stay ahead of the curve in engineering?

Reddit? Job postings?

https://redd.it/dubnl0
@r_devops
Cross region secrets replication in aws?

How do you guys handle secrets across regions, especially for DR consideration? Do you treat each each region as fully independent with its own secrets?

https://redd.it/dufd3h
@r_devops
Moving past the concepts and into hands on

My company is currently running a php monolith in traditional load balanced ec2 setup.

MGMT has expressed the interest to move to containers and kubernetes. They also want to bring the build server/tests in-house. My learning begins.

Conceptually I understand containers, thier benefits and how they work. I've setup a few on my home server. Web, nodejs and databases. I have persistent storage and networking setup. Seems cool. But my setup is simple.

Conceptually I understand kubernetes. And how it could be used to run a micro service based web application very well. Breaking parts of the monolith into the smallest parts and clustering them.

My issue is, I want to practice using k8s, but I can't seem to find a good guide to setup a k8s cluster, either in my home lab or on my local machine. All the guides I find assume you have an existing web app in micro service format, or they use a basic Todo app with 1 web and 1 db, and they don't walk through the actual details and decisions needed when setting up complex clusters.

I'm not a software dev, I'm an Infrastructure Engineer that has moved into a more DevOps role. I don't have time to code out a web app just for this. I'd probably spend more time on that then the actual k8s setup.

So do any of you have any experience moving from a monolith to a micro service setup?

Any good guides or learning paths that you can recommend for getting as comfortable as possible with this?

Any advise or resources or kind words would be greatly appreciated.

https://redd.it/ducgjx
@r_devops
Needed devops materials

Hi guys ,
I want to learn devops so I need study material to start devops from scratch ,it would be so much help if anyone can provide good video lectures

https://redd.it/duclbv
@r_devops
How DNS mapping works?

I was wondering, how the mapping works on a DNS. Is made from an IP to the names or from the name to the IP?

How would a data structure look like?

`var map = {`

`"`[`60.90.60.90`](https://60.90.60.90)`":[`

`"domain1", "domain2", "domain3"`

`]`

`};`

Or something like this:

`var map = [`

`"domain1": "`[`60.90.60.90`](https://60.90.60.90)`",`

`"domain2": "`[`60.90.60.90`](https://60.90.60.90)`",`

`"domain3": "`[`60.90.60.90`](https://60.90.60.90)`"`

`];`

​

Thanks.

https://redd.it/du8fqu
@r_devops
Self-hosted runners for GitHub Actions is now in beta

Check out their announcement [at their blog](https://github.blog/2019-11-05-self-hosted-runners-for-github-actions-is-now-in-beta/). They are written in .NET Core. I would have thought GitHub would use Go as it is easy to cross compile and results in a single binary. Instead you have to download 285MB with lots of ddls. I know GitLab runners are written in Go. Maybe it's because GitHub can reuse code from Azure DevOps runners.

https://redd.it/dsfc6i
@r_devops
Should your cicd tool commit back to git?

As the title says.. For example, if a Docker build succeeds, and tests pass, you semver out a new version. Should your CICD tool commit this to the terraform variables on the same branch in your IaC code? Or would that be a bad idea, and should the tool fill it in as dynamic parameter (unversioned somewhere) in the pipeline run that will execute the Terraform deploy?

Why would it be a good idea, or bad idea to commit stuff like semvers back to the git repository that contained the source code?

This would assume ofcourse that there are no circular runs. The trigger should not happen to run and build and test again due to the commit of the version number back.

https://redd.it/dutisg
@r_devops
PR test pipeline involving docker build, any ideas

Does anyone have any ideas for the best build tool to use for a scenario where it'll build the docker file in the given branch, spin up the image, then run the tests on the image. Most of the tools I've looked at rely on being provided a static image or docker image repo and they just use the 'latest' one. But that'll cause issues if the PR's intention is to update the dockerfile or files used by the dockerfile. Ideally it would actually build two images, one for a temporary DB to seed test data on and the other for the app but I can manage with one.

I'll trigger this on PR creation and update. Sorry if I'm asking stupid questions here.

Sidenote, I suspect this whole process will make it very slow to test since it's having to build and spin up images repeatedly. Is there any way to test if the dockerfile and other related files have changed between builds so the image can be cached and reused if nothing has changed?

https://redd.it/dutw90
@r_devops
Free devops tool?

Im currently a beginner in DevOps. I am doing Native Android Jenkins. But Jenkins seems to be a bit of a hard setup for me yet as i am still learning. Any suggestions of a free devops tool that can do in local machine? Its okay with me if its just in the local not in the server. Just so that i can learn more on DevOps.

https://redd.it/dsf0u8
@r_devops
Alternatives to Issuehunt.io?

I want to find development for my open source project using a service to Issuehunt. Are there any alternatives that perhaps have a larger user base, or one that works with GitLab?

T.I.A.

https://redd.it/duwy71
@r_devops
What status pages do y'all look at / subscribe to?

Hey! I'm a PM on [statuspage.io](https://statuspage.io) and I'm curious what status pages you all look at / subscribe to! I focus a lot on what it's like to manage / update your own status page, but not as much on what it's like to be a viewer / subscriber and am trying to learn more.

Also, if you'd like to go deeper on how we can improve the experience - if any of you would be willing to chat for 30-45 minutes in the next couple weeks shoot me a DM and we can set it up :)

https://redd.it/duz0gr
@r_devops
Does switching to Kubernetes make sense if your applications are all stateful and not microservices?

My org is looking to switch off Cattle (Rancher 1.6.x) and the Operations and DevOps team are trying to find a new orchestrator. We've looked into Swarm w/ Portainer and Rancher 2.x w/ Kubernetes. 98% of our apps are legacy that do not scale and are very much stateful and monolithic. Is it worth the effort and training to use kubernetes, or should we stay in our safe zone with continuing to use Docker Compose with Swarm & Portainer?

https://redd.it/duzaq2
@r_devops
Kubernetes or OpenShift, to start with ?

​

Hi Folks,

From system admin prospective, which certification may be tough then other in Kubernetes Certification vs OpenShift certification?

Or it is very subjective? lol..

If one has to start somewhere in Ops side of DevOps, what would be suggested pick among both of these options?

Thanks in advance

https://redd.it/dv1gs7
@r_devops
Issuing doing npm install on Jenkins for Vue project

I have a Jenkins build I am using for a Vue.js application. I am trying to install all dependancies as part of the pipeline and am running into some issues. I've included the below output as well as the npm install part of my pipeline.

​

It looks like a python issue to me however I don't think I'm using python unless vue uses it under the hood

​

error from below build step

+ npm install
> [email protected] install /var/lib/jenkins/workspace/Deploy UI/node_modules/node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.12.0/linux-x64-79_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.12.0/linux-x64-79_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.

export HTTP_PROXY=https://example.com:1234

or configure npm proxy via

npm config set proxy https://example.com:8080

> [email protected] postinstall /var/lib/jenkins/workspace/Deploy UI/node_modules/node-sass
> node scripts/build.js

Building: /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/UI/bin/node /var/lib/jenkins/workspace/Deploy UI/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli '/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/UI/bin/node',
gyp verb cli '/var/lib/jenkins/workspace/Deploy UI/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (/var/lib/jenkins/workspace/Deploy UI/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/var/lib/jenkins/workspace/Deploy UI/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/var/lib/jenkins/workspace/Deploy UI/node_modules/which/which.js:80:29)
gyp verb `which` failed at /var/lib/jenkins/workspace/Deploy UI/node_modules/which/which.js:89:16
gyp verb `which` failed at /var/lib/jenkins/workspace/Deploy UI/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /var/lib/jenkins/workspace/Deploy UI/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:158:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (/var/lib/jenkins/workspace/Deploy UI/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/var/lib/jenkins/workspace/Deploy UI/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/var/lib/jenkins/workspace/Deploy UI/node_modules/which/which.js:80:29)
gyp verb `which` failed at /var/lib/jenkins/workspace/Deploy UI/node_modules/which/which.js:89:16
gyp verb `which` failed at /var/lib/jenkins/workspace/Deploy UI/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /var/lib/jenkins/workspace/Deploy UI/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:158:21) {
gyp verb `which` failed stack: 'Error: not found: python2\n' +
gyp verb `which` failed ' at getNotFoundError (/var/lib/jenkins/workspace/Deploy UI/node_modules/which/which.js