Reddit DevOps
269 subscribers
5 photos
31K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
We looked at job descriptions for SREs at GitLabs, Microsoft and others

The SRE role has shifted quite a bit over the last few years,we looked at job descriptions from companies like Linkedin, Microsoft and others to see what they're looking for!

https://redd.it/sex2sa
@r_devops
Running scientific code (testing) on the cloud

I am currently finishing my master thesis and I have a lot of hours of testing to go (CPU intensive, on my 5800x it takes 15 hours x 30 seeds) and I would like to ask you if you know any solution (cloud) that you think might help me to not run all this in my computer... I don't really care if it takes the same time, I just don't want to have my desktop gasping for weeks + it makes a lot of noise.

​

My code is a simple object oriented program written in python and currently my IDE is Pycharm.

I wanted something extremely easy that just let's me use my computer as a master and the code would be running on other machines but without a lot of difficulty.

https://redd.it/sew0yu
@r_devops
Only slightly off-topic: A comment about Java

In a conversation with co-workers, the topic of Java came up. We don't use Java in our industry. One co-worker told us of his experiences with Java:

"I knew Java once. Intimately. I taught her how to play Sudoku. She said she would help me get a job, but she never did. Then she ghosted me and went to Oracle, and everybody started talking smack about her."

https://redd.it/setymd
@r_devops
What would you recommend as first steps in awc?

to start learning, some hands on and stuff

https://redd.it/sdrp48
@r_devops
Make your DevOps Team Happy with this PagerDuty + Discord Integration

PagerDuty has incredible support for their Slack integration, but if your team collaborates mainly in Discord, then you’re sadly out of luck.

I saw this blog post where you can create a PagerDuty integration for Discord users -- one that gets you started quickly and is fully customizable to your needs, and help your DevOps team :)

PagerDuty + Discord Integration

https://redd.it/sdi7hx
@r_devops
Tools for complex infrastructure as a code

Is there any possibility to deploy a complex infrastructure in a virtual environment?

Let's say that an organization wants to virtualize its network which consists of some servers in a DMZ (email, web, VPN) and also a internal component (maybe a Active Directory network).

Is it possible to code not only the topology of this network but also its configuration? Ex: the configuration of the web server (with all the applications and users and etc.), the mail service (users), vpn (users, certificates, etc.), the AD part (complex config...users, policies, etc.)...

Does anybody know what are the tools that are needed to create this....using some scripts ar some yaml files or whatever...? So, basicaly I want to run a single script or something ang after its execution to have the infrastructure deployed and configured.... What stack of products should I use in order to have the best results?

https://redd.it/sddbva
@r_devops
Question about working at Slower.AI

I am being courted by Slower.AI and I am having difficulty finding information about working there as well as the culture of the company. My Google-fu is bringing up old, outdated, shallow, or unrelated information (because of the ambiguous name). Does anyone have any input?

FYI - I'll be doing Senior DevOps/SRE work working on different cloud platforms. I've been in DevOps for 15 years and enjoy what I do.

https://redd.it/sf5kyh
@r_devops
Microservices policy workflow for Kubernetes

Hey folks

We are structuring the workflow for defining application policies on Kubernetes and scaling it across multiple clusters.

I've put this interactive workflow together and would love to get your feedback on the approach and initial policies covered:

https://shipa.io/kubernetes-policies/

Everything done through the UI can also be done using the major IaC tools (Pulumi, TF...) and embed it into the CD pipeline.

The goal is to address different security requirements for different projects, teams, or applications without having to define policies at the object/infrastructure-level and detach it from things such as API version, controllers, and all.

Thoughts?

https://redd.it/sewm16
@r_devops
Redis cluster with Docker Swarm or use AWS elastic cache?

Hey guys please share your pros and cons about using Docker swarm to setup your own redis cluster versus using a cloud service like aws elastic cache. Cheers

https://redd.it/sejb6u
@r_devops
Junior Devops Take Home assignment

Hello to the DevOps community. I'm right now in the process of changing jobs from Application Support/Ops to Junior DevOps.
I have 2.5 years background in IT.
For the interview process of one company they asked of me to deliver a take home assignment. It goes like this:
Dockerize a node app
Given the current repo of a sample node app, your objectives will be:

Create a Dockerfile for the backend part

Create 2 docker-compose files

one for local development with only the mongo database, named: docker-compose.yaml.dev
one for deployment in a standalone server named: docker-compose.yaml
Both should use persistent storage for the data
Create a simple kubernetes deployment and service file for the backend
(Optional) Deploy the kubernetes backend to a free tier cloud provider of your choice.
I've written the Dockerfile and the docker-compose files but to be honest I have some questions and can't find answers to them.
Dockerfile:

FROM node:alpine

WORKDIR /usr/src/app

ADD package*.json ./

RUN npm install

COPY . .

EXPOSE 3000

CMD ["npm", "run", "start"]

docker-compose.dev.yaml:

version: '3'

services:
web:
build: .
environment:
- NODE_ENV=development
- PORT=3000
ports:
- 3000:3000
depends_on:
- mongo

mongo:
container_name: mongo
image: mongo
ports:
- 27017:27017
volumes:
/data/db

docker-compose.yaml:

version: '3'
services:
app:
image: alpine
container_name: docker-node-mongo
build: .
volumes:
- ./:/app
ports:
- '80:3000'
links:
- mongo
mongo:
container_name: mongo
image: mongo
ports:
- '27017:27017'
volumes:
- /data/db

I don't unterstand the request "*one for local development with only the mongo database*".
Is my docker-compose.dev.yaml wrong?
When I try running docker-compose up I get following error in terminal:
> [4/5] RUN npm install:
#8 1.097 npm ERR! code ENOENT
#8 1.097 npm ERR! syscall open
#8 1.098 npm ERR! path /usr/src/app/package.json
#8 1.098 npm ERR! errno -2
#8 1.099 npm ERR! enoent ENOENT: no such file or directory, open '/usr/src/app/package.json'
#8 1.099 npm ERR! enoent This is related to npm not being able to find a file.

I try googling this and get results that my Dockerfile might be wrong something about my directories.
The repo was cloned to my local development environment
and all files are present in the same directory.
I'm using vs code on a windows 10 Pro machine with Docker Desktop installed.

https://redd.it/sdcs35
@r_devops
ways to test terraform scripts

guys, I have a project in which I have to validate ways to test scripts in terraform, I know terratest and KitcheCl, does anyone know any others?

https://redd.it/sd7vhe
@r_devops
DevOps Engineer To Sales Engineer Path - Questions Inside!

Hello,

Short-Version:

I am currently a DevOps Engineer and have been in the IT industry for around 13 years (since I graduated college) total. My current company has been going through reorgs, and I am thinking now is a good time to jump ship to another company....and possibly also switching careers to Sales Engineering along the way. I am trying to understand the benefits and the new 'stress' that may be associated with an SE role.

Long Version:

Background:

Throughout my career I've been told I have really good soft skills and have used these to excel in my current career in IT (was a sysadmin for a few years, now DevOps / Cloud engineer). I formed relationships with leadership and directors that helped me become more visible (promotions), and being able to talk to my business stakeholders and message correctly (know my technical folks vs. keeping it simple for business folks and how to frame my messaging), and basically have always gotten several compliments on my communication both verbal and written. The conversation has come up several times of what I want to do moving forward in my current career path, do I want to get into management and become an Engineering Manager? However, management doesn't really appeal to me that much.

Sales Engineer Opportunity:

Several of my friends have told me that I would be an excellent sales engineer with my technical skills and my soft skills + communication skills. One of my friends recently recommended me internally at the tech company he works with and interviews will probably be starting soon if everything checks out.

I've been reading a lot of previous reddit posts and trying to understand what are the big pros/cons for switching from Tech Engineer (DevOps, Containers, Cloud, etc.) to a Sales Engineer. This leads to a few questions for those that may have jumped into a sales engineering role:

Questions:

1. Are there things you miss about the standard tech engineer role vs. sales engineer?
2. If you could do it over, would you have made the switch? I hear once you are a Sales Engineer, it's hard to go 'back' to the Tech engineer role.
3. It sounds like pay is higher in SE world, but how is work / life balance?

Sorry for the verbal diarrhea. Bottom line is I am currently in a tech role (DevOps Engineer), considering Sales Engineer role, and am trying to understand the benefits and the new 'stress' that may be associated.

Thanks everyone for your time and help, it is greatly appreciated!

https://redd.it/sfbvgd
@r_devops
REQUEST Could anyone please share DevOps Bootcamp | Techworld with Nana for only the final part which is Monitoring with Prometheus.

I don't have 1K of USD to enrol on the program, I'm saving money to join the basic version of this program as 1k USD is too expensive I couldn't afford the premium version. I'm kindly requesting if you have subscribed to this Bootcamp could please share the final part only (Monitoring with Prometheus) it means a lot to me.


Thank you.


https://imgur.com/a/Xssf5S7

https://redd.it/sfcl5i
@r_devops
SAMPLE: Low-code devops (Github)

The provided sample includes:

Generating GitHub API access tokens via OAuth 2.0.
Authenticating and connecting to the GitHub API via Linx
Retrieving commit activity for repositories.
Sending email notifications from Gmail for Github repository commit activity for a time period. The sample Solution sends out an HTML email containing a summary of your GitHub activity from your configured Gmail account. This email can be directed to you or any others you want to alert containing the information concerning the commits you want to pass on.

​

https://github.com/linx-software/github-devops-management

https://redd.it/sd3qko
@r_devops
problem-with-accessing-jasperserver-behind-nginx-reverse-proxy

i have several instances of dockerized jasperserver instances. They are running on the same server on different port. On the same server i also has a nginx server running too.

I have following settings on Dockerfile to host https://xx.xx.xx.xx/
instead of https://xx.xx.xx.xx/jasperserver


Dockerfile

RUN rm -rf /usr/local/tomcat/webapps/ROOT RUN mv /usr/local/tomcat/webapps/jasperserver /usr/local/tomcat/webapps/ROOT RUN rm -r /usr/local/tomcat/work

web.xml

<context-param>
<param-name>webAppRootKey</param-name>
<param-value>ROOT.root</param-value> </context-param>

My environments are as follows.

&#x200B;

|URL|env|
|:-|:-|
|https://xx.xx.xx.xx:13425|dev|
|https://xx.xx.xx.xx:13429|ops|
|https://xx.xx.xx.xx:13427|test|

&#x200B;

So when i point to https://xx.xx.xx.xx:13429/
, i can login to jasperserver with credentiuals.

My next step is to access jasperver via nginx.

This is my location block for ops env.

location /reporting-ops/ {
proxysetheader Host $host;
proxysetheader X-Forwarded-Proto $scheme;
rewrite ^\/reporting-ops\/(.) /$1 break;
proxy_redirect off;
proxy_pass
https://xx.xx.xx.xx:13429/$1;

}



when i type
https://xx.xx.xx.xx/reporting-ops/
on the browser i get redirected. (Please see image)

i have done same kind of url rewriting for other applications and they work fine. So i assume this must be something to do with jasperserver.

&
#x200B;



\######## Further findings.

when I type [
https://xx.xx.xx.xx/reporting-ops/login.html](https://xx.xx.xx.xx/reporting-ops/login.html) I can see the login page without .css & .js loading. When I look at the request initiator chain I see below. The first request has /reporting-ops/ but in the subsequent requests [https://xxx.xx.xx.xx/reporting-ops/..](https://xxx.xx.xx.xx/). is missing. But when if we check URL [https://xx.xx.xx.xx/reporting-ops/runtime/5CD5658f/themes/reset.css](https://xx.xx.xx.xx/reporting-ops/runtime/5CD5658f/themes/reset.css) the .css file is available.

My nginx block look like this now.

&
#x200B;



location ~ ^/reporting-ops {

proxy_set_header Host $host;
proxy_set_header X-Forwarded-Port 8083;
proxy_redirect ~^/reporting-ops/(.
)$ https://192.168.125:13429/$1;

}

https://redd.it/scy6nx
@r_devops
Are coding standards important?

I personally believe they are but I work with people who don't. Curious how others view coding standards and deal with strong opinions against them.

https://redd.it/sfi68s
@r_devops
Google and GitHub Announce OpenSSF Scorecards v4 with New GitHub Actions Workflow

GitHub and Google have announced the version 4 release of the Open Source Security Foundation (OpenSSF)'s Scorecards project. Scorecards is an automated security tool that identifies risky supply chain practices in open source projects. This release includes a new Scorecards GitHub Action, new security checks, and a large increase in the repositories included in the foundations weekly scans.

Read further

https://redd.it/sfi0r5
@r_devops
Any opinions on Docker and Kubernetes cookbooks by O'Reilly?

Hey!

I am new to devops and I want to start learning by using the Docker and Kubernetes cookbooks by O'Reilly, published in 2016. Should I do that, are they still up to date? What is your opinion? Thank you!

https://redd.it/sfhgba
@r_devops
hikaru 0.10.0b released

Hikaru is a tool that provides you the ability to easily shift between YAML, Python objects/source, and JSON representations of your Kubernetes config files. It provides assistance in authoring these files in Python, opens up options in how you can assemble and customise the files, and provides some programmatic tools for inspecting large, complex files to enable automation of policy and security compliance.

Additionally, Hikaru allows you to use its K8s model objects to interact with Kubernetes, directing it to create, modify, and delete resources.

This is a 'catch-up' release for Hikaru; while it doesn't feature any materially new features, it does add support for the 1.20 release of the Kubernetes Python client.

Additionally, this Hikaru release drops support for the 1.16 release of the Kubernetes Python client as it was deprecated in Hikaru 0.9.

&#x200B;

https://pypi.org/project/hikaru/

https://hikaru.readthedocs.io/en/latest/index.html

https://github.com/haxsaw/hikaru

https://redd.it/sfmiz5
@r_devops
How to deploy Meilisearch to existing droplet with Dokku?

Hello everyone. I've used Dokku to deploy my app to DigitalOcean droplet. How can I deploy Meilisearch on that same droplet instead of creating a new Droplet and thus spending another 5 bucks?

https://redd.it/sfmoad
@r_devops