Reddit DevOps
269 subscribers
4 photos
31K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Career change from Network administrator to DevOps

Hi everyone 👋,

Since few months I'm thinking of changing my career towards devops. This culture interesting me very hard and I'm already doing some self practice with the tools that I got already (cicd GitHub actions, docker, powershell and linux scripting etc..)
I'm still busy with my research in this domain to know and practice more as much as i can.
I would like to know what kind of challenges i may expect in real world, which tools i should manage and what should be starting point of someone who wants to become a "devops engineer".
I know that the tools and technology used are highly dependent from the organization business for which I'll be working but any ideas, examples, and suggestions will be appreciated
Thank you in advance,

https://redd.it/nu8qkp
@r_devops
First CICD pipeline

Hey all, I am creating my first CICD pipeline and wanted to run by you guys to see if I am missing anything or doing any bad practices.

Stack: Python+Flask app, GitHub Repo, GCR, Cloud Build (CICD) and GKE

I have separated my project in two GitHub repositories:

* One repo for the application
* One repo for the k8s manifests

I've got two triggers pipeline

1. Any commits to main branch (application)

* Run unit tests
* Run a docker build and tag my image to $SHORT\_SHA
* Push docker image to GCR
* Clone repo (k8s manifests) / checkout production branch
* Modify the tag in my k8s manifest to point to the latest $SHORT\_SHA using sed
$ sed -i "s/COMMIT\_ID/${SHORT\_SHA}/" manifests/deployment.yaml
* Run the kubectl apply -f manifests/deployment.yaml

​

2) Second trigger is to the manifests repo - Any commits to main branch

* Run the kubectl apply -f manifests/deployment.yaml

I understand CICD can be done in a different ways and it depends on my needs but this is a personal project I am working on to practice CICD skills so I wanted to check if you would change/add any stage as I mentioned above.

Appreciate the help in advance.

https://redd.it/nv43ud
@r_devops
HAProxy mysql check with query

Hi guys!

​

I have 3 mysql galera nodes and 2 haproxy for load-balancing.

I have a simple mysql check in my haproxy config:

# MySQL Cluster BE configuration
backend pxc-cluster_backend
mode tcp
balance leastconn
option mysql-check user haproxy
server galera1 10.x.x.x:3306 check weight 1
server galera2 10.x.x.x:3306 check weight 1
server galera3 10.x.x.x:3306 check weight 1

If i know right this mysql check just make a login into the db and done.

Is it possible to make the check with a simple select? I think if on galera1 can i make a select from any db is ok, if no it's bad and make it down in the config.

I need this to avoid any network issue.

Have you any advice?

https://redd.it/nv4az9
@r_devops
Rancher and Helm charts

I was wondering if Rancher and Helm charts are widely used in the industry?
What are your experience with these tools

https://redd.it/nv6m5w
@r_devops
For those in DevOps/SRE roles in the gaming industry, what's your typical day like?

I'd like to learn about DevOps and SRE in the context of gaming such as:

* The sorts of challenges you encounter
* The tools you use that may be specific to the industry
* The variety of teams that you collaborate with, hopefully as close to the product as possible

Thanks!

https://redd.it/nv75wh
@r_devops
Did anyone else notice various alexified smart things like light bulbs and power strips stopped working last night during the fastly.com outage?

I crashed around 2am, but when I did so, I had to manually turn off several "smart" bulbs as well as several things plugged into certain "smart" plugs (including an Amazon plug). (Elsewhere, while Prime Video worked, the images served to its X-Ray feature were broken, and other non-alexified smart devices were also offline) This morning, everything was working as usual, which is to say, Alexa is taking the wrong action about 30% of the time.

I am pretty sure most of that is related to fastly being down, I have to admit, I dumbly did not anticipate my apartment breaking because some third rate idiot devop at some company I've never heard of was jerking off to furry porn instead of feeding the goddamned hamsters, his one fucking job.

https://redd.it/nv98rp
@r_devops
Stuck in Tutorial Hell!

I've been studying DevOps tools and practices for the past 6 months and I am stuck in an endless loop of learning. I am a Certified AWS CCP and SA Associate and I am also currently learning Terraform and Containers. I also have knowledge of Linux(Ubuntu to be specific) and BASH. I am a CS graduate and I've been looking for a job in Devops for the past few weeks but the jobs that I come across require people with 2+ years of experience. How can I get a job easily because learning without applying the information you learn makes you forget real quick. I'd like to take Developer then DevOps AWS exam but I also need a job/experience to back up my certifications.

https://redd.it/nv6goj
@r_devops
Anyone used MetricBeat to scrape Prometheus metrics from Kubernetes pods, instead of Prometheus?

If so, how did the experience go? Any gotchas or takeaways?

https://redd.it/nv69m6
@r_devops
What certificate that you guys suggest for a beginner in wanting to dwelve into devops/sre?

As the title says any veterans in devops/sre can suggest me their go to cert to have to develop my knowledge on devops/sre and get acknowledge my skill with certificate, what certificate is the best for beginners to have?

https://redd.it/nvex54
@r_devops
Is it realistic to use some sort of VPN cluster for permissioning?

My company has been experimenting with the idea of using a VPN for a sort of permissioning. For example, users in like an "admin" group would have their request routed to a server inside whatever AWS VPC they are requesting, and have it routed out by an IP block everything has whitelisted, but a "Developer" role would go through the server and sent through the VPC with a different IP block that's only whitelisted for certain dev tools.

We currently have an OpenVPN instance running in AWS so that's what I'm familiar with, can it be done with it or is there another tool to do this with? Is it even worth it?

https://redd.it/nvhn1w
@r_devops
Need advice on setting up CI/CD

I work for a startup and we're at this stage where CI/CD would be massively helpful and we have the resources to focus on it.

- We keep most of our code on GitHub, and PRs have lint/test run in a GitHub action.
- Currently our android/iOS deploys are done via a manually triggered GitHub actions that runs on the CTOs computer.
- Web deploys are automatic through netlify
- AWS deploys are triggered manually through the AWS cli.

We've talked about the following strategies:
-moving everything to a cloud system (e.g. Circle CI)
- moving to a fully local solution such as a self hosted macOS server running Jenkins.
- moving to a hybrid model where GitHub actions handle CI (certain tests would be run on a local macOS server) while CD is handled by a cloud provider

Any thoughts or advice for somebody setting up a CI/CD solution for the first time?

https://redd.it/nve73j
@r_devops
DevOps AWS Kubernetes observability platform for root cause analysis

We are looking for people to help us prove our technology helps identify RCA. Contact me for a free trial.

https://redd.it/nvjmwt
@r_devops
Transfering Wordpress to k8s

Transfering wordpress site

Hello there, as I want to be prepared for the future I created my own K8s cluster for my business projects (sites or webapps for clients) but in the past I used just basic wordpress app.

Do u guys have any idea how to transform a already present wp site into a docker-container and deploying to kubernetes.

Thanks :)

https://redd.it/nuyu4d
@r_devops
Hands off, cloud based config management

Looking for something simple to handle basics - patching mostly. Want to have everything in IAC of some form.

This particular use case is for labbing with the most "production" aspect being Plex.

I've been looking at azure Automation but it seems a bit heavy handed.


On top I'm planning to run some other cicd product (devops agent, Argo, not sure yet) if there's maybe something open source that has both config management and deployment all in one?

It seems from my research that there's nothing quite simple and plug and play in the config management space yet.

https://redd.it/nvmjnb
@r_devops
what subjects to do for devops?

So I am going into my second semester of uni. I am studying a bachelor of information technology majoring in software engineering and I was wondering what classes I should take. These are the classes available:

\- system design engineering fundamentals

\- information system development

\- network engineering fundamnetals

\- operating systems

\- data security and information assurance

https://redd.it/nvnx86
@r_devops
Reproducible and portable development environment

Background: there are two machine, machine A has internet access while machine B does not, I can copy file from A to B

Machine B is for development purpose, so I need vim tmux git and some plugin include dot files on it; currently I use docker to build the image contains vim tmux and misc on machine A and copy to machine B for code development

And recently I heard about nix package management, so is it possible use nix to build development tools and port it to other machine?

I thought nix is somewhat more reproducible than docker, since docker image rely on the linux distributor, but I cannot find a way to make nix portable to offline machine

https://redd.it/nvoglp
@r_devops
Broke AWS account during internship. How bad of a situation did a I put myself in?

So I broke one of the AWS account during my 3rd week at this internship at a very large company. Users are still able to log in but there’s some API errors when it comes to getting any type of resource in the account. That is due to my dumbass using an AdminPriviledge ARN in my IAM terraform script. So when I did terraform destroy I messed up the privileges for everyone who has access to the account.

For the experienced engineers, how bad is this? Is this something to fire an intern over?

I was one of the “senior” interns coming already with experience with terraform and other DevOps tools. Now I just fucked up so badly when I was banking on getting a return offer due to my financial situation.

https://redd.it/nvl1og
@r_devops
What's your DevOps stack?

This is probably a broad question but curious as to what technologies people here use either in work or for personal projects for a full infrastructure to deployment or anything even in-between

At work we have started to migrate over to gitlab and leverage it's CICD tool and it's runners to deploy and run automated tests. We use quite a lot of Ansible for most of configuration and as well creation of our containers.

Some older pieces are still deployed with bash and salt stack. A large part of why I'm curious of how others do deployments is that we are hoping to move this over to AWX (Ansible tower) to help make our deployments HA and I'm curious how others handle this?

NOTE: we are not on kubernetes, nor is it a high priority to migrate, but still curious to hear If that is part of your stack and how it is!

https://redd.it/nvq8yv
@r_devops
Dashbird launches a new app for a faster and smoother AWS data observability

The brand new Dashbird app is here to bring your AWS data together for a faster, more secure, and smoother observability experience and to enhance team collaboration 🚀

Check out our 5 favorite updates to the new Dashbird app: https://dashbird.io/blog/dashbird-app-launches-new-version/

https://redd.it/nvqz31
@r_devops