Reddit DevOps
277 subscribers
70 photos
32.2K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Proxmox best practices?

Hey all, I recently got a position as an Infrastructure Engineer at a hosting company and wanted to get some good jumping off points for getting up to speed ASAP.

I mostly have a Systems Administration background and am fairly experienced with linux.

The company is looking at automating their Proxmox clusters to deploy various webservers (mostly nginx and wordpress) and have version controlled configuration management. I know that we'll be using ansible and git for automating configuration but I'm not super familiar with automating deployments.

So far I've found that packer and terraform both support proxmox but I'm trying to find out best practices and plan for the future so that I'm not stuck changing to a completely different workflow after I get everything implemented.

Can anyone recommend a good blog or course I can go through to get up to speed with these? Other advice is also appreciated as well as recommending any other tools I should look into.

https://redd.it/e7y4g8
@r_devops
Using cheap/simple flash drives in RAID for local dev storage of K8s/Docker

Hey all. I am reminded of a video I saw a few years ago where a guy used a USB hub and multiple USB flash drives, windows software RAID, etc. Not that it makes a lot of sense to do this.. but I thought also to a video/article I found more recently where they used a few raspberry pis as K3s "nodes" and was curious if the combo of a few RaspPis + a cheap USB hub along with some cheap 64GB or so flash drives, would make for a neat little project where by you configure the main K3s (or K8s) to use the USB flash drives (in raid) as a storage pool of some sort. Then, you can fire up some microservices that have their own DBs, where the DB instances utilize this storage pool for their storage space.

Is this possible.. and would it be totally stupid to even try? I am not entirely sure if you set up a single "blob" of storage like this that is then shared/distributed to separate microservice DB instances or not.

https://redd.it/e7xljj
@r_devops
Is Prometheus useful if you're already using DataDog/Scalyr/Loggly?

Started playing with Prometheus recently and so far I have yet to find anything it does that I can't do with the third-party log/metrics service we're already using at my company.

Obviously Prometheus is free, and it's self-hosted. I understand its appeal in those areas. But if I'm at a company that's willing to pay for a hosted service and that doesn't mind shipping logs and metrics to that service, will Prometheus still add something valuable I should be aware of?

https://redd.it/e80ga1
@r_devops
Bachelor project. Need help choosing topic

Hey y'all. I need your help figuring out my bachelor project.
As a student of computer science, I am allowed to choose between writing a thesis or programming something.

I definitely want to program something. No doubt there. Yet, I don't know what to do.
My current interests in the world of Dev are the following: Devops, Data science/analytics, cybersecurity.
I would like to create something, that doesn't necessarily have to be used in the real world, but with which I could use to apply (increase my chances of being accepted) and put on my cv/portfolio.

So far I've had these ideas:
Create an AI that has an answer to everyday legal questions and other areas like brand,...

I'd really appreciate any input, thanks in advance.

https://redd.it/e5f1sd
@r_devops
Is anyone in their current situation of good fortune COMPLETELY on luck? What's your story?

Title says it all.

So you lucky SOBs, what opportunities fell completely in your lap through no doing of your own?

https://redd.it/e82yqs
@r_devops
CI / CD Novice Question

I'm trying to create CI/CD pipeline with Terraform. Currently, I'm able to integrate Terraform with BitBucket / Atlantis in a simple EC2 setup.

Is it possible to have a pipeline where:

1. Do staging (Beta, Prod) with specifications in each stage (like the way Terraform does)?
2. Developer will select if it's Spring Boot project or a node project; and the build system will take care of appropriate compiler/builder. This way, a developer can avoid tinkering with systems like Jenkins etc.

Kindly help me with what stacks are available (preferably free) to achieve this? I hope I'm not asking something too abstract/naive.

https://redd.it/e81g9a
@r_devops
Where should I go?

I work as a "web engineer" for a major player in restaurant and live entertainment worldwide, earning 52k a year before taxes. My boss is a great person I had a friendship with prior to being hired as a contractor.



I came into the job with experience in web design, html, css, familiarity with php and basic backend stuff like DNS records, cPanel, MySQL management, and copywriting. For the last 1.5 years I've been the go-to person for WordPress edits for our custom themes, while doing copywriting and writing SOP details for whatever is going on while sending out interior blogs to the higher ups. Kind of a jack of all trades and a master of none.



Lately my job has thrown me into doing more DevOps stuff since about July of this year, and I've really come to enjoy it, despite a few months ago being ready to throw in the towel. I've learned a great deal from my direct higher up, from things like setting up a CD/CI pipeline, AWS management, Git, Ruby, and a few other things I've come to love.



However, I don't know if this job will last. I'm learning at a steady pace but in the grand scheme of things, I'm totally useless to the business and they don't need me. And if it falls through, I don't feel like I have enough to bring to the table to get hired anywhere. Since there's already a DevOps guy, I'm wondering what direction I can take to stay relevant to the business and stay with them. The guy who hired me wants to keep me on, but his colleagues have expressed that they don't know what I provide as a resource so they don't know if I'm worth keeping on for 2020.



So I'm curious - should I move into a DevSecOps learning path, or just hold on as long as I can as a sponge and hope I can be the DevOps person somewhere else? The company had expressed they wanted me to be a front end engineer because I'm a bit of a creative artist, but I've fallen in love with DevOps stuff. If I follow DevSecOps, will I still be relevant to stay with this company?

https://redd.it/e81ang
@r_devops
Azure App Insights vs Sumo Logic

Hey reddit,

Can you please help me to decide (and to sell this decision to management) between those 2 products?

Previously I worked with AWS and really enjoyed sumo logic as a logging platform. Now a new gig is a Azure house, but for new application we can choose what we will use. Naturally, App Insights is a very strong candidate now...

​

What will be your preference and why?

https://redd.it/e824ka
@r_devops
what directory services do you use, and why?

AD? OpenLDAP? Okta? Nothing? Homemade database? NIS?

https://redd.it/e7ytfn
@r_devops
Issues with devops transition

I currently work as a Systems Administrator. The company that I work at is years behind the technology curve. Outside of my job, however, I have made a point to be active in open source software development projects as well as learning and applying devops methodologies and tools to the personal projects that I have been working on. My professional network is impressed with the kinds of things that I understand and am able to do. Thus I feel that I have a good breadth of knowledge in understanding both systems and development work, and I also have a good depth of knowledge in the specific technologies that I work with.

I am currently looking for a devops position, and in recently months, I have landed interviews with three different fortune 500 companies. In each instance, I had planned to talk about my personal endeavors and portfolio, however, none of the interviewers had much interest in hearing about this, they just wanted me to talk about my professional experience, which is obviously unimpressive in a context of current devops practices.

Obviously, it was a bit of a disappointing experience for me. The things I work on and technologies I use in my current job are completely out of my control, and I have even made several failed attempts at suggesting improved processes and practices. I am at a bit of a loss now as to how to proceed. I can't speak to having tried to change anything in my job because those attempts have failed (and I never really had that power to implement change in the first place). I can't speak to my personal projects and endeavors because it seems that in a professional contexts, people are less interested in that than what I'm doing in my job. Is there something that I should be doing differently? Am I missing something here?

https://redd.it/e826gh
@r_devops
Tool for repository/code quality

Hello guys, my boss is like a drug addict looking for metrics of how many times a line has been changed (aka churn), merge requests lead time, commit frequency and some others.

He is asking for a tool that can show numbers and charts about this metrics.

This week i will try to do some tests using the trial of the code climate, codacity and others.

Today the repository is hosted at gitlab but in the future will be moved to azure devops.

Have you guys worked with one of this tools? Have some tips? Know any tool free that can give him this kind of numbers?


Thanks

https://redd.it/e825zr
@r_devops
SaltStack worth Jenkins

Does anyone use salt with Jenkins I'll like to be able to run our salt states from within Jenkins. Currently my salt master has a Jenkins slave installed but I'm unable to run salt in a non root after reading salt doc to chown -r user /etc/salt and other folders within your Linux environment I'm still unable to run salt from Jenkins as a non root, is it even possible to sudo su from a step?

https://redd.it/e81vqk
@r_devops
Books to learn Kubernetes theory

Hi,

​

I'm a French beginner system administrator in a company working with devops culture.

In a project I'm currently working on (6 microservices running on Docker called by Knime) I was asked to search about API Gateway vs Service Mesh. To my understanding Service Mesh seems to need a kubernetes cluster, which we don't have right now, but will move to this kind of architecture at the start of next year.

For now, I setup Kong as an API Gateway which works well, but I need to work on Kubernetes as I don't know anything about it.

I'm a little bit lost with the amount of information currently available online, as it seems for a valid Kubernetes cluster there is a lot of moving parts needed (dns, ingress, service mesh, etc.) and everytime I check a new concept I'm getting lost in a documentation that assumes that I know the theory behind Kubernetes.

​

Is there a good book that goes in-depth in the Kubernetes configuration ?

For example, Hashicorp Consul's documentation talks about "deployments" with "selector", "template" and "metadata", and I really don't know which configuration key is needed or important, etc.

I have a server at home in which I can, and will, setup a cluster, however I don't like following a tutorial without understanding what I'm doing.

https://redd.it/e8atqt
@r_devops
ELI5 What is the point of VMware on AWS?

Hi there. I've been using VMware for a long time and got into the public cloud and AWS in the past year and a half. Recently I saw that VMware offers the ability to setup a full managed VMware ecosystem on AWS.

My question is, what are possible use cases for it, aside from migrating existing VMware setups? Why would I want to deploy VMware vms and basically have another layer to my infrastructure when I can deploy them "locally" on AWS and get the same flexibility and much more?

I apologize if it sounds like I disrespect VMware, quite the opposite. I just can't think of any use case for running VMware on the public cloud, and wondered what might be actual use cases for it.

https://redd.it/e8anaw
@r_devops
AWS SA Associate -vs- Professional difficulty

Basically what the title says. For anyone who has taken both, how much more complex is the professional certification in comparison to the associate one?

Given they are both multiple choice, I’m wondering if the difference is that significant.

https://redd.it/e8awpv
@r_devops
Vault Auth methods for Users

Hi folks,

Curious to hear how y'all have provided access to users for vault. We currently don't actively use any of the given UI methods as a company so are looking at implementing a wrapper script around the AWS or Alicloud auth methods for access via CLI since we already have and use these accounts and don't want to manage another set of credentials.

Wondering if anyone else has done the same? Had some trouble with Alicloud, doesn't look like vault has the means to process the credentials if they are user based rather than server based. AWS looks to have better functionality but before I dive in thought I'd see if anyone else had done the same.

https://redd.it/e8b16f
@r_devops
What is LDAP and Why I should use it in my auth system?

Hi folks!

I've tried to set up IdP(Keycloak) and read a lot of materials about it. In every second article or docs, I've met the term **LDAP**. I don't understand how usually it uses in the auth flow. Is this some standard for security access to directories? And how it related to the web auth?

https://redd.it/e89spr
@r_devops
Jenkins inconsistency (files change every time)

I am new to Jenkins and still trying to understand how it actually works.

What I am trying to do is pretty simple. I trigger the build whenever I push it to my Github repo.

Then, I try to \`ssh\` into a server.

My pipeline looks like this:


pipeline {
agent any
stages {
stage('SSH into the server') {
steps {
withCredentials([sshUserPrivateKey(
credentialsId: '<id>',
keyFileVariable: 'KEY_FILE')]) {
sh '''
cd ~/.ssh
ls
cat ${KEY_FILE} > ./deployer_key.key
eval $(ssh-agent -s)
chmod 600 ./deployer_key.key
ssh-add ./deployer_key.key
ssh root@<my-server> ps -a
ssh-agent -k
'''
}
}
}
}
}

It's literally a simple \`ssh\` task

However, I am getting inconsistent results.

When I check the log,

&#x200B;

**Failed Case**

Masking supported pattern matches of $KEY_FILE
[Pipeline] {
[Pipeline] sh
+ cd /bms/home/pdsint/.ssh
+ ls
authorized_keys
known_hosts
known_hosts.old
+ cat ****
++ ssh-agent -s
+ eval 'SSH_AUTH_SOCK=/tmp/ssh-hb6yX48CJPQA/agent.51702;' export 'SSH_AUTH_SOCK;' 'SSH_AGENT_PID=51703;' export 'SSH_AGENT_PID;' echo Agent pid '51703;'
++ SSH_AUTH_SOCK=/tmp/ssh-hb6yX48CJPQA/agent.51702
++ export SSH_AUTH_SOCK
++ SSH_AGENT_PID=51703
++ export SSH_AGENT_PID
++ echo Agent pid 51703
Agent pid 51703
+ chmod 600 ./deployer_key.key
+ ssh-add ./deployer_key.key
Identity added: ./deployer_key.key (./deployer_key.key)
+ ssh root@<my-server> docker ps -a
Host key verification failed.

When I \`ls\` inside the \`.ssh\` directory, it has those files.

In the success case,

&#x200B;

**Success Case**

+ cd /bms/home/pdsint/.ssh
+ ls
authorized_keys
authorized_keys.bak <----------
known_hosts
known_hosts.old
+ cat ****
++ ssh-agent -s
+ eval 'SSH_AUTH_SOCK=/tmp/ssh-yDNVe51565/agent.51565;' export 'SSH_AUTH_SOCK;' 'SSH_AGENT_PID=51566;' export 'SSH_AGENT_PID;' echo Agent pid '51566;'
++ SSH_AUTH_SOCK=/tmp/ssh-yDNVe51565/agent.51565
++ export SSH_AUTH_SOCK
++ SSH_AGENT_PID=51566
++ export SSH_AGENT_PID
++ echo Agent pid 51566
Agent pid 51566
+ chmod 600 ./deployer_key.key
+ ssh-add ./deployer_key.key
Identity added: ./deployer_key.key (./deployer_key.key)
+ ssh root@<my-server> docker ps -a
Warning: Permanently added '<my-server>' (RSA) to the list of known hosts.

It has the \`authorized\_keys.bak\` file.

I don't really think that file makes the difference, but all success logs have that file while all failure logs do not. Also, I really don't get why each build has different files in it. Aren't they supposed to be independent of each other? Isn't that the point of Jenkins (trying to build/test/deploy in a new environment)?

Any help would be appreciated. Thanks.

https://redd.it/e8f45q
@r_devops
How does Spotify get millions of songs and info about those songs from record labels into their storage system???

As a bit of a test I am trying to create a beta version of a music streaming app but then the question it hit me, how did Spotify upload millions of information about the songs (Like Artists and Song names) into their database along with the songs files themselves???

https://redd.it/e8gks7
@r_devops
Do we have to stop docker-compose every time we update the docker images that we are using?

I am trying to use a script to automate pulling docker images from my docker hub and then use \`docker-compose up\` to put my server up (I don't need to \`docker-compose build\` again since I'm using images).

One thing that I wasn't able to find the answer online is, do I have to stop docker-compose every time whenever I re-up the server with the updated images with new tags?

What I do right now is:

services:
frontend:
container_name: frontend
image: "dockerhub_url/...:tag"
ports:
- "80:80"

in my docker-compose.yml but when I change the tag to the recent one, not sure if I have to stop the docker-compose then put it up again.

Thanks in advance!

https://redd.it/e8i4qn
@r_devops
Does having a CDN such as AWS built with my website/App makes Music or video streaming faster and more reactive?

So I am currently working on a beta music and music video streaming app using the flutter framework but I realized that each time I try to skip to a next song, it takes some time to load before the next song plays. In order to solve this issue do you think that a CDN server will be able to help so that as soon as I skip to the other song it will play instantly or a bit faster?

https://redd.it/e8jauf
@r_devops