Reddit DevOps
267 subscribers
30.9K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
cannot run wsl --shutdown on cmd

I can't run these commands

wsl --shutdown
wsl

and I get cannot find the application, don't have permissions, which is weird. I am using wsl2. I think it works on powershell if I remember, but this is really weird.

https://redd.it/rlscul
@r_devops
Docker container time is not in sync on WSL2?

How to make sure docker's time syncs with that of the host?

Time in Docker container out of sync with host machine

Tried both, but it doesn't work and because of that I can't download anything through npm.

admin@PC-SE-L356:~/projects/hg$ docker run -it alpine date
Wed Dec 22 00:09:58 UTC 2021
admin@PC-SE-L356:~/projects/hg$ date
Tue Dec 21 19:09:59 EST 2021
admin@PC-SE-L356:~/projects/hg$

Is there an easy way to fix this? I heard docker syncs with the host, but it doesn't seem to be the case with WSL2. I am using Docker for Windows and WSL2. I can't change the time insider of docker, but it doesn't sync time with the host, which is confusing to me.

https://redd.it/rls5zw
@r_devops
$800 Learning & Dev budget to spend before EOY

Hi friends! I work on an IT Engineering team and am looking for ideas on how to spend the leftovers of my learning and development budget.

So far I’ve gotten a subscription for A Cloud Guru so I can beef up on AWS dev, and a few books about Linux stuff suggested by a co-worker.

Any suggestions for books or subscriptions to snag for leveling up my dev ops knowledge over the next year?

https://redd.it/rlvkl7
@r_devops
Why Am I Not Passing Tech Screens?

Hello, I think that the same insecurity that some people have around dating is the insecurity I am having around software interviews. I think that I must be doing something wrong, but it's nothing tangible. Once again I had an interview at Google and I was asked to perform a task and I walked through the process, I asked qualifying questions, and completed the question, discussed space and time complexity, and there was time to spare for them to elaborate on it and I was able to even answer the next question they had lined up, and copied the code into an interpreter and verified it worked as intended afterwards.

I believe that I was being polite, articulate, and wore a nice casual button up with a plane background, showered, combed my hair.

Ultimately this has become a repeated pattern, and it is beginning to feel a bit like abuse. I am made to essentially code for free doing one, two, three, four interviews, interview with more people than I can count, learn about them, be polite to them, take hours out of my day for weeks, and then if there is something that isn't absolutely perfect I am going to be left unable to pay my rent.

It feels like abuse because the expectations are never consistent or even expressed, feedback is vague and contradictory, and I am essentially left with the threat of losing my basic needs unless I read the mind of the interviewer and not only do the task at hand, but do it "not too fast and not too slow" as the Google interviewer put it to me, act nice and patient, don't be afraid to ask for help but don't ask for help, and code with perfect syntax with the right data types and optimal algorithm, never say anything negative, and be constantly criticized and patronized jumping through hoops like a performing monkey

I think that at this point it has reached a level of abuse, because when I interviewed at Microsoft, the interviewer was not aware of .count() in python and I was still able to get to a second round and had solutions to the second round and still didn't get an offer

Was nicer when I could get taken to dinner and treated well instead of being in solitary confinement like a horror movie endlessly stuck

I hear people say that they are able to get these positions and they do not even finish the code, and I not only finish the code, but discuss my steps, plan out an approach beforehand, ask the interviewer clarifying questions and if they have any feedback, and try to optimize for space and time complexity, and copy the code to verify it works in an interpreter afterwards

It's really hard to not feel like there is some kind of deliberate conspiracy or something. I don't know what it is, maybe they don't like my voice? Maybe I'm not interesting enough for them? Maybe they think I'm too insecure? Maybe they think I'm too confident in my speech and think it isn't working with them though?

And the problem is that complaining doesn't really help, I just have to passively accept these continual rejections with disorienting and contradictory feedback and I see friends getting these jobs no problem, and I've been a senior devops engineer before, but it seems like I'm always steps behind my peers. I don't know, maybe I don't have a likeable personality? I think I've tried to be articulate and professional, kind and meek, confident and authoritative, agreeable and patient, and I try to cycle through temperaments and communication styles but it doesn't really seem to affect the outcome.

A part of me feels like this is a deliberate way of dissuading people from leaving jobs so that the workers have to accept a degree of suffering to be allowed back into the work force. Like I can't say for certain but it feels kind of spiteful in a way or in purpose. I've had recruiters tell me to send thank you notes groveling to the hiring managers and it just feels really demoralizing, because in essence it is this attitude of me putting in a lot of time investment into these people, my education, my career, and then not only am I supposed to accept being dismissed over
anything, but then I have to write them a thank you letter for allowing me the privilege of being rejected by them

It is really dehumanizing and demeaning. For my entire career and in college I've felt somewhat isolated because I have to spend all my time studying, coding, practicing, with the alternative being homeless, it's very much like squid game where you make one mistake and you are left for dead. I do not understand why employers don't look to invest in their employees instead of working with their employees through problems and then immediately disposing of them when they make a small mistake.

After the interview I have been writing thank you emails and even go into a brief description of how the interview went detailing the problem I was tasked with and how I approached it. Both times I interviewed at Google this same thing happened, and even if there was a mistake even though the interviewer was giving me positive feedback (they always say talk through it and work through it with your interviewer but maybe they are lying about that?) wouldn't that mean i would at least qualify for a junior level dev position? They always give the same response when I ask and it's really creepy like they are reading a script

"We are glad that you felt that you did well doing your interview but the team had a different opinion"

Then when you ask what the opinion is they say

" we do not give information about interviews"

I don't know, I feel behind my peers because instead of making progress I'm stuck in this hell, and I wonder if there is anywhere to pivot my career

https://redd.it/rlyjuz
@r_devops
Dev to Devops outlook and transition?

I'm currently a junior dev working for a Fortune 500 working a lead role. I love programming but am pretty versatile. I also enjoyed automating and scripting quite a bit which has lead me to setting up some Azure DevOps pipelines, remediating some middleware issues, and handling a majority of our organization CICD tasks.

I have a potential internal promotion into a devops role from software development. I have been told it's 100% devops minus some POC work and shared libraries I'll be writing. The salary increase isn't much more and I fear that my dev skills will decay, I won't know as much as I'm expected to aka I'll perform horribly in this role, and that this potential career pivot will affect my future opportunity (dev to devops).

Can anybody who came from a dev role give some insight? It seems like most DevOps people come from sysops backgrounds or IT. I also know little to no networking or security. Is this an opportunity I should capitalize on or pass? It's below 6 figures and would require a lot of learning outside of work which is why it's trivial for me (if it was like 150k and I get to learn- hell yeah lol).

https://redd.it/rlzdv9
@r_devops
Docker Registry in production

Would you use the Docker registry container in production? Why or why not?

Edit: to clarify, would you choose docker registry over other private registry options

https://redd.it/rly8pq
@r_devops
Use ansible to provision VM's or containers

I've been using ansible to provision everything including a large server running lots of services. It's working pretty well but I like the idea of separating it into different VM's.

What are my options for doing this? I'm not sure if docker is the right solution for me since it limits to 1 command running per container unlike a VM.

And I don't need the caching capabilities of docker. Anytime I run ansible it should change whatever on the server has changed from the ansible script, like it does when you run ansible on a real server.

And there's no simple way to point an ansible playbook at a container, like you can point it to a server or VM through SSH. I'd have to copy my entire ansible playbook to the docker directory and then run the ansible command within the Dockerfile.

The system I use now where I'm provisioning the large server using lots of ansible roles works well. I just wanted to see if there's any simple way to reuse my existing ansible roles (and not have to change them much) to provision isolated VM's or containers which could bring some benefits.

https://redd.it/rm2apr
@r_devops
Anyone can help me ?

I'm developing a website and I need to deploy it in AWS with Kubernetes maybe. I'm still sure about all the technology I will use but if you know Kubernetes it is possible that you can handle other tools.

https://redd.it/rm2nx1
@r_devops
India Salary check 🇮🇳

Folks how much are Devops engineers getting in India? What's the max salary you have heard. Also mention the skillset

https://redd.it/rm3cd1
@r_devops
Introduction to DevOps on Coursera

I've mentioned here before about the graduate course that I teach on DevOps and Agile Methodologies at New York University (NYU) Courant Institute and Stern School of Business and some of you have expressed that you wish you could take it and I said I was brining parts of it to Coursera. Well... this is my second course in the series: Introduction to DevOps that you can audit for free. (the first being Introduction to Agile Development and Scrum)

The focus of the course is on the cultural and technological transformation that is required to be successful at DevOps. It is appropriate for anyone, including non-technical practitioners and managers, who want to understand the new mindset that is required to transform their organization into the DevOps culture. In order to change your culture, you need to learn new ways of thinking, working, organizing, and measuring and so the course is broken down into these four focus areas to ensure that your DevOps journey is successful (because DevOps a continuous journey, not a destination).

In the interest of fast feedback and continuous improvement, I welcome any comments about the approach or content. You can view the introductory video here: https://www.coursera.org/lecture/intro-to-devops/course-introduction-KhZRS

https://redd.it/rm6b0c
@r_devops
Load tester with custom scripting

Hey there,

I have an environment we are trying to load test, but my usual load testing software is failing me, so I was hoping to get some alternative suggestions.

There is a portion of the test where we make a call and get a JSON request back, then need to use that JSON data for our next call. Easy, right? Most any modern load tester can handle that.

The problem is the way the JSON I am getting is formatted. For some reason the JSON data is quoted, like this:
{d:"{v:200,a:"apple"}"}

So, the JSON has to be ran through the parser twice. First time you get D : (string with everything else) then run it a second time on the string to get the 'Real' data. My current load tester cannot handle this.

I doubt any load tester is going to handle this natively, so I guess I need to find a load tester that will take the response, let me hand it off to some custom code where I fix the JSON issue and let it hand back variables back to the load tester.

... I've already suggested that the JSON response we are receiving get fixed, but unfortunately, we have no control over how that comes apparently.

Anyone have any suggestions as to a replacement load tester that can handle this situation?

https://redd.it/rm6p9v
@r_devops
Recommend me an on-prem build server running on Windows?

I've been managing a Jenkins build server for a while, but I'm getting a bit fed up with stuff not working as smoothly as I want it to.

Can anyone recommend me an alternative (Preferably but not necessarily free)?

* It needs to be able to run MSBuild to build Windows desktop software using .NET and .NET Framework.
* It should be able to run on an on-prem Windows server, without external cloud dependencies.
* It needs to handle access permissions in a reasonable way (Individual permissions for Windows groups, running with restrictive non-administrative account permissions, etc).
* I would prefer it could be configured without learning yet another custom scripting language.
* It must be able to send emails to users who caused builds to fail (duh).

In an age where it seems everything has moved to managed cloud services, building websites, using Linux servers or docker images, finding on-prem tools for Windows infrastructure seems to be rare.

https://redd.it/rm8t1k
@r_devops
SWE or Observability?

Hi everyone, I’m looking to gain a little bit of insight from those who are more experience than me. This week I’ve received two internship offers from medium-sized companies, an SWE internship, and an Observability internship, for a few months. I’m currently not sure what’s the best option, what are your thoughts? Which one is more beneficial long term when looking into applying at larger companies?

Also, just to clarify, is Observability the same as DevOps? A different branch from DevOps? Does Observability include the same amount of coding an SWE would? I’m quite new to Observability, so any insight is appreciated.

https://redd.it/rm8nb3
@r_devops
Mono-repo vs. multi-repo

I know that there is a debate about storing all source code in a mono-repo vs multiple repos.

I am thinking about it from a security perspective:

A separation to multiple repos reduces the risk of source code exposure/leakage.
More granular access control can be applied on distinct repos.

However, maybe this isn't a high risk as having an insider threat or an account takeover that may inject a malicious code, so setting up codeowners will do the work even in a mono-repo.

What are your thoughts?

https://redd.it/rmadw8
@r_devops
Controlling GitHub Organization Repository Creation

Hi All,

For any of you that use or are a part of a GitHub Enterprise organization, how does your organization manage the creation of new repositories? Do you allow any member to create new ones, or do you have a process/control mechanism for their creation?

My organization has been exploring the idea of setting up a review process for the creation of new organization repositories (not forks or branches), but it doesn't seem like there's a straight forward way to do this aside from either only allowing the organization owner to create the repositories, or having a written policy without any technical controls.

Thanks in advance for your input.

https://redd.it/rm7bgy
@r_devops
Open Winter School on Software Engineering

We invite students and professionals in software engineering and related areas to participate in the first International Winter School on Software Engineering. The School is organised by HSE University’s Faculty of Computer Science and will take place online on February 14-18, 2022.

Participation is free, and everyone's invited: undergraduate and postgraduate students, young specialists, researchers, etc. You just need to register.

The School aims at spreading and sharing knowledge of state-of-the-art software engineering tools and techniques. Major topics include software process mining, architectures, software development methodology, coding and code management, teams management, testing, DevOps, CI/CD, empirical software engineering, and software engineering for researchers.

Among the School’s partners are JetBrains, Innopolis University, and Schaffhausen Institute of Technology. The speakers come from both industry and academia, including ones from the Max Planck Institute of Molecular Cell Biology and Genetics, IT University of Copenhagen, the University of Toulouse, etc.

Application deadline is January 28, 2022: https://cs.hse.ru/wsse

https://redd.it/rmd0ch
@r_devops
Starting my first DevOps Engineer position

Coming from the classic corporate IT world working as a Sys Admin, I‘ll enter the world of DevOps in February.

My programming skills are subpar to be bluntly honest and I have no idea how developers work.
I‘m also a little nervous since it‘s a complete switch from a Windows environment to Linux and Apple only.

It‘s a local web development agency and the technologies used in DevOps are Docker, Kubernetes, nginx, Ansible (among other stuff like Python scripting).
I got access to a cloud hoster‘s page and already created an Ubuntu server to screw around with.
Also got some documentation for Linux basics and some of the mentioned technologies but trying to work through that stuff I feel like an idiot who doesn‘t understand anything.


Could anyone provide me with resources to study and/or do some exercises?
Mainly DNS in Linux and Docker would be helpful.


Thanks a lot and y‘all have wonderful holidays!

https://redd.it/rmdxxe
@r_devops
Linux Foundation 35% off certifications - is this a good chance or a repeated campaign?

I want to get the CKAD certification. Linux foundation currently (until 12am tonight) has a 35% sale. Is this really a special deal and a unique opportunity or is this a recurring thing and I can expect such a sale soon again?

https://redd.it/rmfgca
@r_devops
AWS CodeDeploy multiple artifacts to same EC2 target.

I've encountered a problem with CodeDeploy pipeline that is driving me nuts. I'm new to AWS (come from Azure DevOps, where what I'm trying to do was trivially easy), so please bear with me.

In CodeDeploy, I'm trying to build a pipeline that deploys two artifacts from separate repositories to the same target EC2 machine.

In my pipeline, there are two source triggers from two separate CodeCommit repositories, one for each artifact I want to build. These triggers create two CodeBuild artifacts, each stored in S3.

Once the Deploy stage of the pipeline begins, the idea is to deploy both artifacts onto the same target server into two separate folders. For example, one artifact should be in "/home/user/artifact1", while the second would be in "/home/user/artifact2".

This "works"... it deploys the first artifact successfully to "/home/user/artifact1".

When it begins to deploy the second artifact, the first artifact is completely removed from the EC2 instance. "/home/user/artifact1" is now an empty folder. The pipeline then successfully deploys the second artifact. This leaves me with a successfully completed pipeline execution, but the final state of the EC2 instance has only the last artifact deployed.

I feel like I'm missing something simple... but coming from a heavy Azure background, learning AWS has just not been intuitive for me. Compared to deployment pipelines in Azure DevOps, the AWS CodeDeploy tool feels extremely limited. It seems like this should be trivial to do, so I'm obviously missing something... Any help would be great, because AWS documentation hasn't been very enlightening.

Thanks.

https://redd.it/rmenaj
@r_devops
Automate git push with Ansible

Hi everyone,

I’m trying to automate deploys. I have two repositories. First I am cloning the repository (called DEV) to my PC, then push from my PC to the repository called PROD.

Here my first yaml, this way I am cloning the external repository (DEV) on my local PC

--- -
hosts: localhost
gather_facts: false
tasks:
- name: clone repo test
git: repo: https://github.com/test/test-repo.git
dest: /home/user/git-test/
clone: yes
update: yes

How do I push the repository located in */home/user/git-test* (local) to PROD repository using Ansible?

Any examples?

https://redd.it/rmghv1
@r_devops