Reddit DevOps
268 subscribers
2 photos
31K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Can anyone help with adding --net:container:CONTAINER_NAME option in kubernetes for a container.

Hi all, I have 2 containers, in one I have a java application and in another one I have open-vpn. I need to make the first container use the network of the second one. I managed with --net option locally on my computer and it works. Container 1 shares the network of container 2.

My question is how to do this in kubernetes? I am new to this stuff and also I am not a devops but a java developer so bare with me if explanations are not so good. :)

Thanks!

https://redd.it/okvhck
@r_devops
How does Azure's Deployment groups work?

Recently, I've been working with Azure pipelines to setup releasing our project to our On-Prem Dev environment. I was able to set up the a Deployment group in order to get my release working pretty easily, but I do have questions regarding how that PowerShell script works and how secure it is.


I would like to get a better understanding how this works before I start implementing it in our Prod environment.

This is the article I followed while setting up the Deployment group (https://medium.com/software-development-turkey/deploying-to-on-prem-server-with-using-azure-devops-pipelines-842f4aa226a7)

https://redd.it/okwomj
@r_devops
Service Sizing Calculation

I'm trying to build a sizing calculator for a service which processes work items, so that I can give my customers an idea of what their compute costs will be. For example:

* I have 500 work items arriving per hour. We can assume these arrive at a constant pace.
* Each work item will take \~110 seconds to complete, on average.
* There is a tolerance of no more than 15 minutes of delay between work item submission and result.

Is this enough data to determine the number of workers I need to stay current? I can't quite get my head around it, and can't seem to find the right terms to google.

https://redd.it/okwij8
@r_devops
A live coding exercise

Hey All.

So I will be appearing for the first round of technical interview with a cloud provider company.

As per the process, they are going to do the a live coding exercise.

I have been out of the interview loop for a while and wondering if any one has any suggestions about coding exercise that I can take/do before this interview.

Any other general suggestions will be welcomed as well.

Thanks.

iking

https://redd.it/ol0qqu
@r_devops
Would learning Python be useful for DEVOPS?

My company is pushing me towards the Devops team and I'm trying get a jump start on being successful. Do you think it's a good idea to learn python?

Also, I got the green light to take a class. Im not trying to do a 3 month coder camp but where can I take a 2 week (in-person) course on specifically python?

https://redd.it/ol1olh
@r_devops
API catalogue....

Hi guys

Current gig has API's documented and built all over the place. We have multiple vendors each doing their own thing. Some of it is in Confluence, other's just have a Swagger link...We prob do have YAML files for all the API's across the vendors though - in total, prob close to 100 API's

I could build a little database of API's by cobbling together all the relevant documentation. Maybe it's as simple as an Excel sheet to start with but I wanted to understand how others are dealing with this?

In my case, it's a growing org with lots of new joiners - still all working remotely and an increased need for 'self service' (to test at very least).

I'm learning bits about devops model as a PM but don't know if this is an issue others face?

Thx

https://redd.it/ol13cy
@r_devops
AWS Cost Analysis Comparing Lambda, EC2, Fargate

I've found a blog article while doing some digging into cost comparison between different services. I posted it to /r/webdev as well, but figured it's just as relevant for anyone who's poking around in here, too. Here's the link:

https://blogs.perficient.com/2021/06/17/aws-cost-analysis-comparing-lambda-ec2-fargate/

Here's the /r/webdev post:

https://old.reddit.com/r/webdev/comments/ol4xlv/awscostanalysiscomparinglambdaec2fargate/

This is my submission statement:

> I think this was an interesting breakdown of some possible costs when considering the different services that AWS provides for infrastructure. I was discussing with a peer about the price of engineering hours and possibly opportunity cost to migrate to or from an overall serverless system.

> The article doesn't go into detail about that topic per se, but does an interesting job considering other factors. I thought it'd be cool to generate some discussion and see what others thought.

> If anyone knows of any analysis of the cost of switching between Lambdas, EC2, containers, etc. in terms of engineering hours, I'd really like to see it.

https://redd.it/ol5328
@r_devops
Clarification on integration and E2E stage in a pipeline

The context of this is I am sorting out CI pipelines and their various stages using Azure DevOps Pipelines.

I have these stages pretty well laid out:

1. Check what Microservices have changed (ignore those that haven't).
2. Build the Microservices with changes.
3. Run their Unit Tests.
4. If their Unit Tests pass, COPY the passing Build into a Docker image for that Microservices.
5. Push the built Docker image to an image repository (ACR in my case) for more testing.

Now I'm sorting out integration and E2E testing. After spending more hours than I care to admit on sorting this out, I think I have a strategy and game plan to actually start implementing it (a lot of this is based on what is in this repo):

1. Deploy these images to a Kubernetes cluster in the Hosted Agent using something like KIND or Minikube in the pipeline.
2. Run my integration tests.
3. Run my E2E tests.
4. If they are passing, either merge to production (in the case of my PR pipeline) or deploy to AKS (in the case of my Release pipeline).

My questions are these:

1. Just looking at two basic examples of integration and E2E/Selenium tests, they look awfully similar. It looks like the integration tests are doing what the E2E tests should be doing.
My understanding of integration tests (which is probably wrong) is that they are kind of a gray area between white box unit tests and black box E2E tests. Whereas unit tests are meant to test a specific function() in the code, integration tests are meant to test multiple related function() in the code for the same microservice and will typically not involve the whole stack, mocking network requests when they are needed, and will not typically involve the other Microservices. You are looking at integration between units in the microservice and not between other microserivces.
E2E is what would be testing the whole stack and integration between Microservices.
If my assessment of integration testing is correct, then I don't see why they need to be run after the cluster has been deployed since the tests would be isolated to the microservice and could just be run after unit testing.
Can someone clarify this? Should the integration tests be testing integration between Microservices and not just units within the same microservice? Is there a need for integration tests if doing E2E testing?
2. Should the integration and E2E testing stages be run in parallel or should E2E depend on the integration tests passing?

Thanks for the advice.

https://redd.it/ol3cam
@r_devops
Deploy angular application using aws Codepipeline

Hi folks,

I need quick help
I have an angular applications. I need to deploy it on cloud-front using aws code pipeline and store Repo files on S3

Can anyone give me any hint or link or resource from where I can take help to complete this deployment

Thanks in advance

https://redd.it/ol090c
@r_devops
From NLP to software architecture, how?

Hello all,
Iama n NLP Engineer and life is good, except that recently I got interested in software architecture (backend +devops). I would love to ask how can I gain such a skill? I really get amazed by designing software like when to use this kind of database, how can we be easily scalable, what is a message a queue and when to use it?

I am now trying to find a part time job or an internship beside my main job to get the hang of it. If you can help me in any way I will deeply appreciate it (either advice, resources, a part time job!).

Also if you are a software architect, a backend engineer, or a devops guy, how do you feel about it and what do you find interesting in it?

Looking forward to hearing from you.

https://redd.it/ol8ew6
@r_devops
Companion app, iOS, as your writing code

Companion tools, such as a app as your coding

Are there any apps, such as GitKraken or even a Gitlens equivalent,
That is a companion app that updates in real time as your coding to see errors or i sites to your work flow?

https://redd.it/ol3wbb
@r_devops
How to get into AI/ML from an SMB "Devops" perspective?

Like probably most people here, I work for a small custom development business and my "DevOps" job is pretty much just automating builds - there's no real DevOps or CI/CD involved. I'm already working on automating myself out of a job and looking at the alarming rate at which AI is improving, I probably won't need to finish that work. So at least learning to use it as a tool would likely be a good investment in the future.

Unfortunately, I have no hard background in development (or IT at all) and AI seems to involve a lot of math that is simply way over my head. There are frameworks and services that somewhat abstract that away but I also don't have a real use case for it - we don't generate the traffic that would justify something like an AI-based SIEM or things like that. Looking into becoming a dev is also not too enticing to me - I tend to get lost without real-world confinements.

So is there any way to explore the technology that has at least somewhat justifiable value for a smaller company? I work for a very young company, if not a startup, and they're all over the blockchain and 3D printing and NFTs and such so there wouldn't be a lot of barriers, I just have to come up with a decent excuse.

https://redd.it/ol3dv9
@r_devops
Jumping into Devops too early in my software developer career ?

I’m about one year into the field as a Junior Software Developer. My job is very full stack and I’ve touched a lot of code in the last year. Backend, working with API’s, some basic SQL, building out two websites using Vue.js, and maintaining some pretty rough legacy applications among other things.

Because of some culture issues (understaffed, underpaid, small company, owner doesn’t understand how SDLC works etc.) I’ve started looking for other opportunities. I just got referred by a friend of mine who is a hiring manager at a large bank. It’s for a Devops Engineer role. They know my level of experience and still want to interview me. I feel like I’m pretty under qualified as I have very little (tbh none) operations experience.

I’ve been studying up to prepare for the interview and the manager told me to look into Terraform, Ansible and just IaC in general. It’s all very interesting to me but I would anticipate a very steep learning curve if I were able to get an offer.

I’m wondering if making such a drastic career trajectory change this early on would be unwise. I feel like I’m still just scratching the surface of straight software development and if I wasn’t a fan of working in Devops it would be tough to get back into a software eng role. On the other hand, this could be a great opportunity to learn a lot more about the operations.

From what Ive read online, most Devops roles involve a lot of collaboration and team efforts. I’m very much so an extrovert and some of my favorite experiences in this current role is when I get to work with others on projects instead of just being silo’d away at my desk writing code. But it’s hard for me to know if I would like either path better at this point . I like solving problems, I like helping people and I like building things. I don’t know if I’m necessarily married to being a software dev.

This role would also be a significant raise (50k/yr->atleast 70k/yr).

Should I seriously consider this opportunity, or just keep looking for a different software engineer role?

https://redd.it/ol1x6f
@r_devops
Azure DevOps build iOS app

Hi there.

maybe this post in wrong place, but....

Decided to reduce build ios app time, by adding job Cache@2

Plus, added cocoapods-binary and all_binary! into my Podfile.

And now, during building app, I'm getting the error like:

/Users/runner/work/1/s/node_modules/react-native-app-auth/ios/RNAppAuth.m:5:9: 'AppAuth.h' file not found


Has anyone encountered with this? Thanks!

https://redd.it/ol12bm
@r_devops
Internship interview question: CI CD Pipeline for a team of 5

Hello DevOps pros! I am interviewing for an internship and have no prior DevOps experience (which they know about of course, I do have a background in Web development though). I am struggling a bit to find a good answer to the question above, so far my answer is too generic and I am just dropping names without fully understanding what I am talking about. Any help/explanation would be greatly appreciated! I have watched YouTube videos/read about it of course but a concise answer escapes me.

https://redd.it/olbyk7
@r_devops
hybrid applications monitoring



I would like the help of the forum,

We have a number of hybrid applications, so when the customer makes a certain transaction, it starts in the public cloud (aws, azure,gcp, etc..) and continues inside to On-Prem (mainframe, as400, etc..). With which monitoring tool is it possible to get a holistic picture of the customer journey from end to end?

https://redd.it/okt3j2
@r_devops
A few useful resources that you may need when developing

Hello to everyone!

As an interface developer, you've probably struggled to find images, svgs, or icons to add to your app, and sometimes the images you have are high-resolution, which takes a long time to draw when the website is rendered, making it difficult for the website to work, or can't find high-quality images.

Here are a few resources you may need when developing your app.

1. Free Icons Icons are known to express some information while providing good UI. These are used in many websites and as a frontend developer you probably need them in any website you'll be making. Here are some free icons resources.

Font Awesome: [Font awesome](https://fontawesome.ru/)
Bootstrap icons: Bootstrap icons

2. Free High Quality Images If you are wondering where to get free high quality images for your backgrounds, nature, people etc here are good sources

Unsplash: [Unsplash](https://unsplash.com/)
Pexels: Pexels

3. Free SVG illustration Svg are essential part of modern websites and we no longer need to create them from scratch using html/css or other design tools like figma. Undraw: Undraw Freepik: Freepik

4. Free image resolution compressor These tools will compress your images to reduce resolution and thus helps better your site's performance without affecting image quality. tinyPNG: TinyPNG Img2go: Img2go

5. Remove Background

I want to put it somewhere on my site where the green color will lead to a bad UI, Removing the green background and deciding to add my own or just put it without the background would be the best solution, but I don't know photoshop-that's where I'm going

Remove.bg: Remove.bg

Hope these resources save you a lot effort, happy coding!!

https://redd.it/oksozv
@r_devops
Which tool/solution should be used for collection of logs, metrics and traces if the majority workload is in AWS and you are thinking to expand to multi cloud?

Please write in the comments if you think multiple options should be used or if something different from the given options should be used.

View Poll

https://redd.it/oleddu
@r_devops
Is this job description asking for too much of one DevOps Engineer?

Here's the job description:

* Experience in Windows and Linus OS
* DevOps experience, **AWS** Associate Certification, or higher
* Automated Testing, build and CICD
* Experience in tools like **Bash, GIT, Jenkins, uDeploy, AWS, and Azure DevOps** lines
* Knowledgeable in using the monitoring tools like **Dynatrace, Splunk, Prometheus** etc
* Infrastructure as Code tools such as **CloudFormation, Terraform**
* Understanding of Container technologies, development & orchestration such as **Docker, K8s & OpenShift**
* Experience developing and supporting **microservices** and **event-driven architectures**
* Fluent in **shell scripting** languages
* AWS building blocks such as **EC2, ECS, Fargate, Elasticsearch, Kinesis, Kinesis Data Streams, Cloudwatch, DynamoDB, RDS (MariaDB, Aurora, MSSQL), Lambda, ALB, ElastiCache/Redis**
* Excellent written and verbal communication & collaboration skills
* Integration engineering
* Experience using modern technology, practices, and architectures – **RESTful APIs, Java, React, microservices, micro-front ends, K8S, OpenShift, AWS, CI/CD to name a few.**

I always think when they say "Experience in..." as "how long is a piece of string?" -- wish they would more clearly define such things. What do you think?

https://redd.it/olfsr6
@r_devops
Thoughts on K3s for various projects

I've recently been messing around with my Raspberry Pi's that have been sitting around stagnant for a moment and decided to turn one into a music streaming device using Balena Cloud and balena-sound.

The project is a solution to my work at home environment, to make transferring to different areas easy so that I can have music wherever I go. It made me think about how much easier tools like this and Kubernetes have made remote management for me.

So I was wondering about how I could implement K3s into my work's environment, perhaps in the way of development environments for the various dev teams, to try and help them with their workflow and with onboarding new devs.

Anybody got any projects they've made with K3S for work or otherwise? Or any thoughts on the use of things like Balena Cloud and K3S for managing various solutions.

https://redd.it/ole7wg
@r_devops