Reddit DevOps
269 subscribers
5 photos
31K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
How to write docker-compose file for vue js and setup environment variable

I want to create a Docker-Compose file in which Vue-js app and Postgres sql must be gross and also add environment variable.

https://redd.it/ndlz12
@r_devops
Next step for DevOps

Hey everyone,

I was given the wonderful opportunity to work as a Jr. Devops for some time but unfortunately due to the financial circumstances of the company, I was laid off a few days ago. I'm currently on the lookout for my next gig and in the middle of self study and job searching. I want to bolster and add to my skill set and was wondering what type of tech stacks are being utilized nowadays. For context, here are the tech stacks that I've used to date (I won't go into depth on what I've done but this should be enough for some context)

OS: RHEL 7/8
Languages: Perl, Bash, Python
Containers: Docker, Docker Swarm
Logs and alerting: NagiOS (I know...), Zabbix, ELK
Networks: LAG/LACP, BGP
Infra-as-code: Terraform, Ansible
CI/CD: Jenkins, Gitlab
Virtualization: QEMU


From projects/past experience:
K8's
Setting up Kubeflow

Happy to answer any questions that anyone might have. Thanks!

https://redd.it/ne0kqk
@r_devops
Help setting up teleport

Hi,


I am trying to setup teleport in my environment. I have a few questions :


1. Is there any way teleport gives user access to a specific server rather than all the servers at one's. Suppose a user has access to two servers in a cluster, can teleport only give access to one server at a time.
2. Should I use nginx to redirect requests coming into 443 for the proxy server to port 3080.
3. In their youtube page, they are configuring using Let's Encrypt. I have certbot installed in my machine. Should I just pass the acme url and it will automatically fetch from let's encrypt.
4. Is there any detailed guide as to how to setup teleport for production use. Their website is not upto the mark for me, like they don't specify how the authentication pin is set.


I am fed up with this product and trying to set this up because I don't have the necessary experience regarding this.


A sidenote, can someone please point out a video series where https, how certificates and CA, CA chain works. I really would like to improve my knowledge regarding this.


Any help will be appreciated.

https://redd.it/ndixko
@r_devops
How to get started with DevOps?

I'll be graduating in the month of June with a Bachelor's in Computer application. I heard about DevOps and it has started to interest me a lot. So I'm thinking of getting started with it. But I don't know from where should I start. I also want to know how much preparation time I need to put in so that I could get a job. Thank you in advance.

https://redd.it/ndwrf0
@r_devops
Who knows DevOps?

Howdy DevOps Community.
This is my first time posting here.
Ive been so interested in getting myself qualified to be called a devops engineer. I currently mess around with gitlab's CI/CD platform but their cert is waay expensive. Does anyone know of any other certifications or course that a beginner on the devops journey could look into, possibly free or at least not $600+

https://redd.it/ndfz0l
@r_devops
Cloud provider for medical device produced data in Europe.

Hi all.

We started a startup that manufactures a small diagnostic device that is operated through an application. All the data produced from the device are then stored on a cloud infrastructure (API + DB).

So far it is under testing environment and thus no problem. But If the time comes to get out in the market I'm wondering which European cloud provider to choose.

I read that AWS and US-based companies, in general, are better to be avoided due to data exposure to third countries.

Does anyone here have a similar experience? Which is the way to go?

Any suggestions are very welcome.

https://redd.it/nect0f
@r_devops
Is there a module cache for Terraform?

Terraform has the plugin_cache_dir to enable plugin cache but I have not found a way to set a directory for module caching.


Do you know how to achieve that modules are stored somewhere central instead inside each module directory (.terraform/modules)?

https://redd.it/nefd1t
@r_devops
WEBINAR AI(work)Ops: A Research View of AIOps Implementations

Register now for an insightful webinar by Valerie O’Connell, Enterprise Management Associates (EMA), Research Director of Digital Service Execution, on May 18 as she discusses her recent field research about AIOps, its key capabilities, challenges, and demonstrated benefits.
https://info.enterprisemanagement.com/a-research-view-of-aiops-implementations-ws

https://redd.it/nehdm1
@r_devops
The Easiest Way to Debug Kubernetes Workloads

Hi /r/DevOps,

Today I published an article about troubleshooting Kubernetes workloads using kubectl debug - a beta feature of Kubernetes. In the article I explain how to make it available in your cluster, how it works, as well as some use cases for it for debugging both pods and cluster nodes.

Here's link to the article: https://towardsdatascience.com/the-easiest-way-to-debug-kubernetes-workloads-ff2ff5e3cc75

Feedback is very much appreciated!

https://redd.it/negrgd
@r_devops
How does your team track work / measure impact?

Hey Folks!

We're playing around with different approaches to tracking work / measuring impact. One direction we're leading in is OKR, and Jira boards.

We're mostly an infrastructure support team. Based on the OKR model we're adopting, it requires us to create epics and plan work months in advance. OKRs will be created quarterly and be linked to a new Epic. As an infrastructure team, it seems counter productive to create new Epics each quarter as our work always exists in the same spaces and we don't exactly develop new features, our features are security patching and system availability improvements and live inside an Epic such as System Health.

In my opinion, our epics should live around service support models such as System Health, Infra work, etc and exist nearly indefinitely. Creating a new epic each quarter means we lose some easy reporting and visibility into work history in critical spaces and seems to create confusion and complexity when using the tools to collaborate within the team (i.e. no one understands where work items should go).

What is your experience in tracking work, what is the ideal way you'd setup a Jira board for effective tracking and collaboration in these tools?

https://redd.it/nei70k
@r_devops
User can't access EKS cluster after creation from Terraform module.

Background: I've got a kubernetes module that looks like [this](https://gist.github.com/IndieDiscovery/c97091ef6522bb7103f1d7244e121994) based off of "terraform-aws-modules/eks/aws." I try to run the following command after creation:

aws eks --region us-east-1 update-kubeconfig --name foo-prod --role-arn arn:aws:iam::12345678910:role/eks

But I still get the following error when doing a kubectl get po command:

An error occurred (AccessDenied) when calling the AssumeRole operation: User: arn:aws:iam::12345678910:user/indie is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::12345678910:role/eks

Any ideas? I even tried adding an assumeRole policy inline as follows:

{
"Version": "2012-10-17",
"Statement": {
"Effect": "Allow",
"Action": "sts:AssumeRole",
"Resource": "*"
}
}

However it doesn't seem to be working...

https://redd.it/nef3sq
@r_devops
Progressively Build an Optimized Docker Image for Python Projects

I'm working on a series of blog posts around cloud native, containers and microservices. I'm focusing on the "build" section from source code to docker images and I just posted about build Python images.

https://www.codingholygrail.com/build-docker-image-for-python-projects

My posts are by design minimalistic, self-contained, easily executable with progressive difficulty.

Please share your feedback if you're interested!

https://redd.it/nek0vq
@r_devops
Android emulator for the web in docker

Hi :)

I hope this is the right sub.

I am developing an app with a team and we need to show the progress of our development, but the person who we need to report to is too stupid and or lazy to install the apk that our ci produces.

I thought maybe there is a docker container that I can give the apk and it runs an emulator making it available as a website. Does something like that exist ?

I tried googling it but only found vnc accessible emulators or mobile testing.

https://redd.it/nef2oe
@r_devops
Jenkins Memory Consume in Ubuntu 20.04 LTS

I see a problem every day in Jenkins, like memory consume, however, the memory gets released when running echo 3 > /proc/sys/vm/drop_cache.

I try to understand you better when I run the job on Jenkins, then I have to run echo 3 > /proc/sys/vm/drop_cache. after that.

https://redd.it/nee8oe
@r_devops
cloudformation vs. ansible?

Hi, all. Just trying to explore my options.

In an AWS environment, is Ansible redundant vis a vis Cloudformation? Or does Ansible fulfill a different role? Anyone have experience with this? I'd like to know your thoughts on these two tools and if they can complement each other or if they overlap.

https://redd.it/nen2vg
@r_devops
Tired of dealing with maas, looking for alternatives.

I've been using Canonical MaaS to manage around 500 servers for a couple of years now. With regards to hardware, there is no consistency (servers have varying amounts of RAM, different CPUs, varying amounts of storage, etc). The nice thing about MaaS is that I can configure everything (network interfaces, storage, etc) from the GUI then simply hit deploy. However, the interface is slow, constantly crashes, we hit tons of bugs, and I'm tired of dealing with it.

I'm looking for a simple system where I can easily configure the systems and hit deploy, like MaaS, but stable. Does such a thing exist? I was looking at potentially using Foreman, but I'd rather not use Puppet for anything. After deploying the OS, I'm thinking about setting up Proxmox to manage KVMs. Really just need a simple system to configure/deploy the servers.

EDIT: I should not, I have no requirements regarding distro. I am perfectly happy to use CentOS, Ubuntu, Gentoo, Arch, whatever.

https://redd.it/nemuak
@r_devops
Changing career to Devops Advice

I have worked for 4 years as an embedded software engineer. I got my masters in computer science late 2018 where I learned about systems security, advanced systems programming, data science, machine learning and computer networking. Unfortunately after I got my masters, I had to remain working as an embedded software engineer for 2 more years because I was bound by a contract (this was the only way to get them to allow me to switch to part-time employment so I could study full time).

I did my research on possible career changes and DevOps caught my eye. I checked out what it's about, the culture, mindset, the tools used (ansible, jenkins), cloud technologies like AWS, scripting with bash or python and containerization like docker and k8s. It all seems very interesting to me and it's kind of job where you are constantly learning new things and concepts, a breath of fresh air compared to where I am currently working. I have even taking up a CI/CD pipeline online course during off hours to familiarize with some popular tools used in Devops.

I was planning to apply for devops positions but I can't help but think I haven't learned enough about DevOps on my own to start applying for devops positions. Given my background, should I start applying for jobs or should I continue learning more about Devops on my own ?

Any help would be greatly appreciated! Thanks in advance.

https://redd.it/neqrlm
@r_devops
Bombed a software development interview

So I work as a DevOps/Cloud engineer and randomly applied to a development job. I didn't expect much but got a call and later an interview.

I have to admit I didn't prepare but I went with a "I got nothing to lose" attitude. Then after a short talk, I had to do some really simple programming exercise, some list sorting problem.

I'm not sure if it was a combination of nervousness, the fact that I haven't been actively programming too much lately, that I had to share my screen and camera or what, but I severly bombed the test. It was like I suddenly forgot most of the programming stuff I used to know and couldn't do that test, and that was supposed to be the first in a series of programming tests.

After a while I felt very uncomfortable and had to call it quits and explain the guy I had lost practice and couldn't keep going. I didn't want to lose anyone's time and the guy was cool about it but I felt and still feel awful. Sure, I don't NEED the job but it would've been a really good step up in my career and the fact that I couldn't pass even that simple task really hit hard.

While I do some programming in my current role, I feel like it's not enough. I do some automation, scripts, pipelines, etc.. but it's not the same as a software development job. This short and awful test opened my eyes that I really have to step up my programming.

Does anyone else have a similar story? What happened and what did you do / are doing to not go through that again?

https://redd.it/nev0nk
@r_devops
Could someone explain how ansible container is supposed to work ?

I am trying to setup multiple ansible with multiple requirements for multiple network vendors to push configurations to the devices.

​

We are using Jenkins to push these said configurations, at first I was using multiple virtualenv per project, but this proved to be not the best away to go forward with, since some packages require a host installation.


So, I was thinking of having one ansible per branch/ vendor, but I'm not sure how to deploy said containers using docker-compose (the standard that we have set internally). Could someone please explain?

​

I have managed to make a compose file that relies on a DockerFile, but I can only run the container, I can't have it set to "up -d".

https://redd.it/nem524
@r_devops
Using QA Automation Experience in Resume while Applying for Devops Position?

Graduated with a SE Degree. Didn't want to do dev work as my main thing (I like to code as a hobby in my free time when I feel like it instead of it being required of me.) I have a couple of personal projects on github. Bots, android apps, automation scripts, etc). I'm comfortable with most of the big languages, js, java, c/c#/c++, python, kotlin. I'm pretty comfortable with linux. I have a home server running ubuntu 24/7 where I host a bunch of different stuff.

I've been a QA Automation Engineer for about 2 years. Unfortunately a big chunk of that has been manual testing but I have done some coding. It's mostly consisted of using Postman (js) to automate API tests and using Ranorex (C#) for automating test cases. Otherwise I just write tests and click buttons which is easy enough.

I took the QA position because I needed a job ASAP, and figured I could transition to something else later if I didn't like it. No issues with QA or anything, but I want to get into something more technical and pays a bit better. The automation part of QA is fun, and I enjoy working with linux and writing scripts for automation. I figure something like devops would be suit me.

So now I'm looking for a devops position. I hear a lot of people have trouble breaking out of QA, and that some resumes get thrown out just because of the fact they have QA experience. I'm thinking I could apply to a junior devops position and work my way up from there. But I'm not sure if I should include my qa experience on my resume. Thoughts?

https://redd.it/nejzrt
@r_devops
Potential New job - Questions inside

Hello Everyone,

So recently I had a colleague tell me about a job opening at a company he works for. The role is for a sole DevOps engineer position at a company full of developers. It sounds like they are 'experimenting' with DevOps, as some of their developers are doing DevOps tasks (wearing the hats), but they don't have the bandwidth to do both their development duties + DevOps stuff.

Background:

My background is more of a cloud engineer currently and while I have an interest in a lot of the DevOps principles, I'm not sure if I would be capable of stepping into role to scope out and define DevOps vision and principles (Release Pipelines, Logging, Alerting, etc.) and turn around and build those building blocks. However, they are subjects I've been wanting to learn and get deeper knowledge in and are areas that do interest me.

Anyway, just thought I'd make a quick post asking the community of their thoughts on the subject, and if this was a good idea to consider this job. I know there are a lot of variables, so feel free to message me directly if it's easier to chat about specific topics.

Thanks!

https://redd.it/nem8vi
@r_devops