Reddit DevOps
267 subscribers
1 photo
31K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Advice for moving to DevOps.

My IT background is owning a small computer repair shop for 9 years. I do hardware and software service for consumer electronics (laptop, PC, TV). I mostly use software by Microsoft, but I know a little bit of Linux.
I started researching the DevOps field and I think it would suit my interests and curiosity.
I saw that AWS is very popular, so I started a course to get certified for their Cloud Practitioner Certification.
Do you have any advice on what do I have to do and to learn to get a DevOps position?

https://redd.it/ffhjxm
@r_devops
What DevOps features can I implement in my IT job?

I'm very new to this, I've only learned about devops in the last few months and I'm trying to learn the tech, but what can I implement in my current role? I'm an IT tech at an MSP and while I dont do much of the server work I believe my boss would give me access to different resources if I asked. What should I be looking to automate? Right now the highest tier tech is a good powershell guy but that's about it. If you were starting pretty fresh and could build out the DevOps side of a business what would you look to do?

https://redd.it/ffjjsh
@r_devops
Looking for a new DevOps environment

Hey everyone!

I'm in the process of setting up a start-up in software engineering. While I already have clients, a business plan and idea of where to go with the business I'm still missing a key element: a DevOps environment. I'd love to hear your suggestions on one or more systems that can help me with:

\- Repositories (GIT)
\- Code Builds (CI/CD) + Deployment (preferably not Jenkins)
\- Ticket Management (I.E. Jira? Preferably a tool that links with the GIT-environment).

I'm happily willing to pay for a product, but as you can imagine: as a start-up I don't want costs to be too high.

Note 2: I'm also happily willing to set-up in the cloud OR host it in office. It really depends on what the system is.

​

Thanks in advance! If for anything, I'm always open for discussions: feel free to comment below.

https://redd.it/ffijbg
@r_devops
My code blew up this week - makes me feel like shit

I'm sure you can infer from the title that I am pretty junior. I made a pretty small but obvious error that started wreaking havoc before a senior SRE caught it and sounded the alarm. When we started diving into the change to see what happened, I saw what I did and was really embarrassed; it was such an obvious oversight, and I didn't write a test for that case which made it even worse.

Yes it was missed in the PR but I can't help but feel like I should have seen what I was doing wrong.

Does this ever get better lol

https://redd.it/ff8n6k
@r_devops
Kubernetes Time Machine

Wanted to share a really cool Time Machine capability for Kubernetes to prevent outages before they happen, and root cause if they happen. A 2-min demo video below.

[https://youtu.be/bJssh\_MUWgw](https://youtu.be/bJssh_MUWgw)

Disclaimer: I'm the developer behind this open-source project.

https://redd.it/ffo05j
@r_devops
What is runtime support?

I'm reading about Middleware, and one stated function it provides is "runtime support". What is meant by this exactly?

https://redd.it/ffj7cq
@r_devops
Does it look unprofessional if I change my e-mail address on my CV from [email protected] to [email protected]?

This would help with creating filters in Gmail for times when I'm not looking for a new permanent job or freelance contract as a DevOps Engineer.

https://redd.it/ffadvv
@r_devops
Where I start in Devops?

Good day, I'd like to know how I would start on the path of DevOps. I'm already doing some hybrid apps but have trouble with deploying backends that cause me to do additional steps. I'd like to learn to do CI/CD but not sure where to start or how I would approach my learning.

https://redd.it/ff9n64
@r_devops
How do you manage whitelisted IPs for docker instances?

I’ve recently been converting some of our apps to be run in docker with dynamic scaling of sorts.

All of our apps connect to a mongodb server hosted with a different provider. I was going to change authentication from whitelist to user pass to solve this issue but thought maybe someone else has solved this before.

How are you whitelisting dynamic instance ips to your database server?

https://redd.it/ffr4g6
@r_devops
GKE Cluster Management Fee

GCP announced recently that they are going to begin charging a cluster management fee for GKE starting on June 6th. This seems a bit like a bait and switch to me as many developers migrated there specifically for cost. Do you think this is likely to make developers trust Google Cloud less? AWS has always lowered prices which is in stark contrast to this move by Google.

I wrote a bit more about this and other announcements here: [https://thisweekindevops.com/2020/03/09/weekly-roundup-march-9th-2020/](https://thisweekindevops.com/2020/03/09/weekly-roundup-march-9th-2020/)

https://redd.it/ffttpb
@r_devops
Which file format to use to represent graph data structure.

Hey,

We have a tool at work where we use a graph-like structure to describe the relations between different objects which we import is in custom software to provide some actions.

The configuration structure looks like that:


Root
├── Objects
│ ├── objectA
│ ├── objectB
│ └── objectC
└─── Machines
├── MachineA
│ ├── objectA
│ ├── objectB
│ └── MachineC
├── MachineB
│ └── objectB
└── MachineC
├── objectA
└── objectD

So at the moment, we represent this with a huge unreadable json file which the json is like

{
"Root": {
"Objects": {
"ObjectA": {
"id" : "1",
"attr1": "x",
"attr2": "y",
"attr3": "z"
},
"ObjectB": {
"id" : "2",
"attr1": "x",
"attr2": "y"
},
"ObjectC": {
"id" : "3",
"attr1": "x",
"attr2": "ss"
}
},
"Machines": {
"MachineA": {
"machine_id" : "1",
"attr1": "ssx",
"id" : "4"
},
"MachineB": {
"machine_id" : "2",
"attr1": "rre",
"id" : "5"
},
"MachineC": {
"machine_id" : "3",
"id" : "6"
}
}

}
}

*This is a very simplified version because normally we have many other objects i.e Location, MachineOfMachines etc..*

Some context..

The situation at the moment is that when we want to edit the configuration (add,rename objects or edit attributes values) we have to generate the id logic which this messes up completely the whole id structure, therefore, even with a small change the diffs of new generated json files with the old ones are very confusing and unreadable. i.e If you want to change the ObjectC to ObjectCA it will generate the id of ObjectC to a new one and also the Id of the MAchines that are related with that. (Dont ask why, LEGACY :) )

..

Now, what I want to do is to create a simple text config without unnecessary info (i.e ids) so the user will have to edit only the necessary parts and the rest will be taken care from a parser.

In this case.. I am thinking to represent this config as a Graph and translate that to a much simpler text config file..

What file format do you recommend? TOML? JSONLines? Anything else? Also other recommendations/comments on my approach are welcome.

​

Cheers

https://redd.it/ffxt6g
@r_devops
How can I access my OpenShift Containers on a Private Subnet over the internet on a single AZ?

I can't use ELBs because it requires more than one Availability Zone. Can I use NGINX? How would you guys do a solution like this?

https://redd.it/ffz5v0
@r_devops
cloud-init: pause before mounting drive

I am trying to get cloud-init to pause before mounting / formatting my EBS volume. I was hoping these modules ran sequentially but it doesnt seem like they do. any help or advice?

In the below scenario I'm trying to make cloud-init wait for me to write a file. In the future, this would be a more sophisticated check but I am just trying for something I can control to validate it works.


This is implemented via terraform:

```hcl
part {
content_type = "text/cloud-config"
content = <<EOF
runcmd:
- while [ ! -f /tmp/sleep.txt ]; do echo "WAITING" && sleep 1; done
mounts:
- [xvdz, /ebs, 'auto','defaults,nofail','0','0']
fs_setup:
- label: None,
filesystem: 'ext4'
device: '/dev/xvdz'
partition: auto
EOF
}
```

https://redd.it/fg0ddl
@r_devops
Hashicorp Vault -> Azure Key Vault Migration

Title.

Is there any way to do this securely or "natively"? I can't seem to find a tool or mechanism that can do it, and [this Stack Overflow post](https://stackoverflow.com/questions/54744351/how-to-export-vault-secrets-as-zip-file) seems to suggest that it doesn't exist.

What are my options? Is there anything to be done other than exporting the secrets manually or through a script and recreating them in Azure Key vault? If that's what I have to do it's okay, just want to make sure there's not something I'm missing.

https://redd.it/fg4gyh
@r_devops
Linux to Windows Deployments

Question, How are you guys doing deployments to windows from linux machines?

We had a chef server and used knife winrm, but since chef server is now gone, im having issues setting this up on another subnet.

There was a proposal for installing powershell on linux since it would be fully supported on windows. But the linux support folks dont want that.

There was a proposal for just enabling SSH on the windows servers. But apparently they are too old and would need an update first.

&#x200B;

So just trying to see. Whats being used with minimal to no set up for linux-windows activities.

All i really need to do is log on or remotely access the server, wget something, unzip something, and get out. Nothing crazy.

\*everything being launched from Jenkins

https://redd.it/ffz4wy
@r_devops
Neat little vulnerability scanner for javascript apps

Hey y'all. I found this free scanning tool on my travels on the internets and thought this group may find it handy. It seems like a step up from `npm audit`. Cheers.

[AuditJS](https://www.npmjs.com/package/auditjs)

https://redd.it/fg1smb
@r_devops
EdgeMesh: Bringing the Service Mesh from DataCenter to Edge



Now more and more people are using Kubernetes to orchestrate containerized workloads and using Service Mesh to manage service communication. And Kubernetes and Service Mesh mostly rely on the data center network, in order to achieve efficient service discovery and communication.

But in scenarios of edge computing such as Manufacturing and AutonomousDriving, the work nodes often distributed in various decentralized areas. In this case, the services can't communicate directly, the connection of node to node and node to control plane is also very unstable. This indeed caused troubles: services cannot communicate with each othe and cannot achieve stable DNS resolution.

how EdgeMesh designed for edge scenarios:

1. DNS resolution achieve at the edge even if the connection to the control plane is lost.
2. Services Across Subnets can communicate with each other.
3. Edge gateway is introduced to serve external requests.

How Does it works?

[https://github.com/kubeedge/kubeedge/blob/master/docs/proposals/edgemesh-design.md](https://github.com/kubeedge/kubeedge/blob/master/docs/proposals/edgemesh-design.md)

https://redd.it/ffu7u3
@r_devops
Centralized configuration ?

What do you think about centralized configuration management in microservices
and tools like Lygeum configuration server ?

https://redd.it/ffvtdg
@r_devops
how to migrate all tmux sessions from one remote machine to another remote machine

how to migrate all tmux sessions from one remote machine to another remote machine

https://redd.it/ffuf25
@r_devops
zero to devops

hi community!

i am looking to switch/make jump to devops role and currently was a quality management professional with good understanding of programming in a completely non-technical position for 2years

kindly suggest what and how do i go about it!! would be tremendous help!

https://redd.it/ffx9f1
@r_devops