Reddit DevOps
270 subscribers
11 photos
31.1K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Any good reference material for learning to make helm charts?

My company is finally considering a move to container based infrastructure instead of the VMs. My first task is to containerize our apps most have official containers but I’m looking for a way to automate deployment. I tried using terraform and that worked in my rancher lab but not on our production rancher cluster since the generic kubernetes provider has no concept of a project and tries to create everything in the default project which I currently have no access to. My thought was to try helm instead. I’m open to other suggestions if anyone has a better idea.

Also how would one mount dynamic content to a config map at runtime? An example is logstash I want each of my pods to have a different configuration. I know I can do this all manually and it works fine but I’d like a way to automate the process. ATM the configurations are generated using ansible which for a logstash vm would copy everything over through a template. I’ve modified the logstash play to generate a directory with the config files.

Still new to the K8s game. I’m fine with standard container concepts but having a hard time figuring out how to apply the same knowledge to the kubernetes way of doing things.

https://redd.it/fl3ff6
@r_devops
Automated dependency updates without having Github

I am hosting all my code on Github and make use of the features dependabot offers (https://dependabot.com/), but in the past months I kept thinking about the same questions:

* What about people using Gitlab/Bitbucket or self-hosting their code (e.g. for compliance reasons). How do they do automated dependency updates?

* And I have had the cases where I wanted to have an automated pull-request, and thus an automated build, whenever e.g. a new node.js version is published to have always up-to-date applications/docker images and so on. What I did in that case, was to simply do a daily/weekly travis run where I would pull the newest node 12.x version and build everything. This works, but is not really elegant. Especially for softwares that gets many releases or rarely any.

What is your take on those two questions? How do you solve those problems?

The reason I am asking is because I am currently building a website to solve that problem for myself and wanted to see whether other people also might be interested in that solution (or maybe there is already an existing solution which I just don't know of)? The basic idea is that I notify developers over a channel (webhook?) whenever a software they uses get an update. I now got some time on my hands, so why not use it productively :D

https://redd.it/fkcr71
@r_devops
How hard will it be to crack Devops engineer job at Google products for example consider YouTube in this case. For a Devops job with 3 years experience requirement.



https://redd.it/fl4nwv
@r_devops
"Interview Question: What are some challenges you faced in your role or project, and how did you solve it?" What are the interviewers really looking for when they ask this question? What do they want you to talk about?

I have faced many challenges in my previous role as a Linux Systems Engineer, but I don't know which ones are relevant for the role?

https://redd.it/fkcoxt
@r_devops
PSA: Your friendly neighborhood OSS Project probably has fun stuff for you

Hi everyone,

Looking at all the "what should I learn" posts and people stuck at home. I just wanted to point out that lots of OSS projects are still ticking away and always looking for new contributors, etc. I work in Kubernetes and wanted to share some of our meetings for the week for those of you looking to get started:

First off on Thursday there's a public community meeting, these happen monthly and are a good 10k foot view of what's happening in the project: [https://youtu.be/04FiOd-bG8c](https://youtu.be/04FiOd-bG8c)

We also have 2 "Office Hours" sessions tomorrow for people to ask questions about Kubernetes, all skill levels are welcome, this covers problems that users actually have so I tend to learn a ton just by reading the chat: [https://discuss.kubernetes.io/t/kubernetes-office-hours-for-18-march/10116](https://discuss.kubernetes.io/t/kubernetes-office-hours-for-18-march/10116)

https://redd.it/fk7vvo
@r_devops
Automate Unit Tests Coverage Reports and Dependency Updates for Your Repositories.

Automation is one of the core topics that can influence and enhance the software engineering and software development processes. The software development life cycle consists of several repetitive tasks. Some of them occur on a monthly basis while others can occur more often on a daily, hourly, or event basis. For instance, creating the release branches and deploying to production environments is a routine task that needs to be executed on every release (depending on the release cycle this could be a daily, weekly, monthly, or yearly task). Another example is execting the unit tests of the software application. This task needs to be executed each time a change is integrated with the codebase to make sure the application stays healthy.

[Mor info](https://medium.com/@wshihadeh/automate-unit-tests-coverage-reports-and-dependency-updates-for-your-repositories-41be1b858eb3)

https://redd.it/fkb83d
@r_devops
Impact of Covid-19 and remote work on DevOps??

Have people started to see a big infrastructure impact following the Coronavirus outbreak? I am in Paris, the entire country of France is locked down and everyone has been told they must work from home. This was announced Friday night so most companies have had no time to think about DevOps for remote work.I know yesterday Google Teams crashed due to high demand of people working from home.I also wonder what the security impact will be, for instance secrets being shared via email if people can't access secure networks.


What have people experienced? what do you predict will happen? How can we be prepared?

https://redd.it/fk82uv
@r_devops
Debating job offer that would change a lot of things in my life.

​

Sorry for yet another post about my personal career but I have a new decision to make.

​

I currently live in a LCOL city with my wife and 15mo daughter. We bought a nice house for $300k and my parents live a couple blocks away and babysit for us whenever. I work remotely for a startup that is HQ in a major city. I earn 145k per year and some bonus.

​

I've been concerned about company performance and how much runway we have so have done a lot of interviews over several months without any offers. In the last few weeks I received two offers and need to get back to them ASAP. The first is a mostly remote job that is based in a town about 1.5 hours from my house. The job would be mostly remote with me driving out there for meetings a few times a month. They pay under-market and it would be about a 10% pay cut from where I'm at currently, but the company is on good ground otherwise. I tried to negotiate higher but it wasn't happening.

​

The second, more recent offer, is from Microsoft in Redmond (Seattle suburb if you didn't know). Its an SRE position on a special team and the earnings taking into account stock award, etc would be in the realm of 210-220k per year. They offered relocation assistance etc. So that is a significant increase in pay.

​

We lived in Seattle for many years and know it well and love many things about it, and miss some of our friends there. But traffic is atrocious, I would be required to work on-site 95% percent of the time probably, and commute to the office etc. We would have no grandma to watch our baby around the corner.

​

I'm really having trouble deciding if a 45% pay raise is worth the traffic and time away from probably the only kid I'm going to have. Seattle is a much more exciting place to be but as a working parent I'm not sure if that even matters that much.

​

I do want to further my career and save more money. And getting a great job offer in this crazy time of covid-19 feels very strange indeed with so many of my friends struggling to make ends meet.

​

Thoughts?

https://redd.it/fk80p1
@r_devops
Automated VM Deployment Tools

Hi, Windows OS, vSphere hypervisor and ansible. What would you recommend for simple os deployment from an image? I'd like to have a simple interface like Ansible Surveys so some lower sysadmins can make selections to deploy VMS based on secure templates. packer and terraform? Ansible playbooks? Any other options I'm missing?

https://redd.it/flcnzg
@r_devops
Create AWS ECS task definition and service in terraform but deploy updates (changing the docker tag that it deploys) outside terraform from CI sequence?

Does anyone have a nice way to do this? We have it working but it's annoying because making changes to the task definition or service causes weird diffs, you can kinda ignore_changes on certain fields but that has to be like commented out to make changes...

I started looking into AWS CodeDeploy as a different way to deploy... would that help with this at all?

https://redd.it/fleac9
@r_devops
Are devops positions remote friendly(er)?

I'm a jr full stack JS developer and have thought of adding Kubernetes to my study/project list as I hear devops is in demand. Probably Ansible, Terraform and related after that. My goal is full time remote work.

Do you guys think devops pairs well with remote work?

Or would you advise I learn back end cloud computing? I'm already ok at back end so I imagine porting that skillset to AWS should be straightfoward.

https://redd.it/fl9b8h
@r_devops
Looking for HA storage solution for Minio

Hi there!

​

Sorry if this is not the best place to post this, but it kinda seemed fitting. We're running Minio and do a lot of read/writes on it. It is currently not HA, and distributed minio works very slow once a node goes down, so I started looking for HA solutions for the file system. I tried using GlusterFS but it couldn't handle the load, and caused a 200 CPU ready. NFS is my next bet, but I saw that the only good way to make NFS highly available is with Pacemaker and only with 2 servers, which is kinda wired and not where I want to go.

Has anyone faced this issue before? It runs on Kubernetes but is currently bound to a single node with local storage. We don't currently have a supported NFS or anything like that in the environment so I cant bound the persistent volume to anything aside the local storage.

https://redd.it/flhomd
@r_devops
values.yaml: unable to parse YAML: error converting YAML to JSON

Quick question. Trying to map multiple ports to a container in a helm chart but getting

>\[ERROR\] values.yaml: unable to parse YAML: error converting YAML to JSON: yaml: line 37: mapping values are not allowed in this context
\[ERROR\] templates/: cannot load values.yaml: error converting YAML to JSON: yaml: line 37: mapping values are not allowed in this context


values.yaml

`service:`
`ports:`
`name: udp-graphite`
`port: 2003`
`target_port: 2003`
`protocol: udp`

`name: tcp-graphite`
`port: 2003`
`target_port: 2003`
`protocol: tcp`

`name: pickle-graphite`
`port: 2004`
`target_port: 2004`
`protocol: tcp`

`service.yaml`

`{{- if .Values.service.ports }}`
`apiVersion: v1`
`kind: Service`
`metadata:`
`name: {{ include "carbon-relay-ng.fullname" . }}`
`labels:`
`{{- include "carbon-relay-ng.labels" . | nindent 4 }}`
`spec:`
`type: {{ .Values.port_type }}`
`ports:`
`{{ toYaml .Values.service.ports | indent 4}}`
`selector:`
`{{- include "carbon-relay-ng.selectorLabels" . | nindent 4 }}`
`{{- end }}`

​

Not sure what the deal is there. From all the other examples i've seen on the web says that should be possible. using helm version

`version.BuildInfo{Version:"v3.1.2", GitCommit:"d878d4d45863e42fd5cff6743294a11d28a9abce", GitTreeState:"clean", GoVersion:"go1.13.8"}`

https://redd.it/flfeh2
@r_devops
Can i get an AWS job with a certification and no experience?

I'm going to take the AWS Cloud Practitioner exam soon. A week from now or so. Will I be able to get a job?

https://redd.it/fl9br2
@r_devops
Octopus Deploy - Darkmode & Better Linux Support

We're proud to ship Octopus 2020.1, our first release of the year, with some great updates and benefits.


* [Dark Mode ](https://octopus.com/blog/octopus-release-2020-1#dark-mode)📷 is cool and it's easier on your eyes.
* [Octopus and Octopus CLI are more at home on Linux and macOS](https://octopus.com/blog/octopus-release-2020-1#octopus-and-octopus-cli-are-now-more-at-home-on-linux-and-macos): AWS and Azure built-in steps are cross-platform, and you can now install and use the Octopus CLI via Homebrew, Yum, and APT.
* [Environment and tenant specific worker pools](https://octopus.com/blog/octopus-release-2020-1#environment-and-tenant-specific-worker-pools): New worker pool variables unlock the ability to have dedicated worker pools for different environments or tenant tags.
* [AWS and Azure deployment steps on Linux](https://octopus.com/blog/octopus-release-2020-1#aws-and-azure-deployments-work-on-windows-and-linux-machines): Deployment steps for AWS and Azure can now be executed seamlessly on Windows and Linux targets/workers

https://redd.it/flkoth
@r_devops
Elastic IP with NLB for k8s Service

Hey all,

I've got a service I'm trying to expose in my k8s cluster via NLB with an Elastic IP. Since (as far as I know) K8s still doesn't support EIP natively on NLB, what solutions have you all come up with? My initial thought is to stand up an NLB with EIP that just aims at an ASG of traefik machines that then proxy the traffic to an internal NLB defined as usual in a k8s service. That seems really crude to get to the goal but I really don't see a lot of better options. Any good reference designs I can borrow from?

https://redd.it/flf07a
@r_devops
Incident Response in a Remote World of Social Distancing

At RigD we have always believed that working collaboratively is crucial to business success and that driving this work through collaboration platforms, like Slack, would be transformative. While many companies have embraced this philosophy already, the current world events have forced most others to adapt their processes to account for remote work.

Here are a few pieces of advice that we’ve picked up from our existing users that might help when responding to incidents and using Slack.

* **Is it really an incident that needs swarming?** Establishing criteria to decide if something really qualifies as an incident is important to ensure your on-call team doesn't get overloaded and miss the big ones. It's easy to lose this disciple when the person who can help is only a quick message away.
* **Mitigate first!** Getting things back up and running should always be the top and most urgent priority during an outage incident. Understanding root cause and prevention measure comes later. When it's easy for others to engage on an incident, innocent discussion can distract from the mission.
* **Sharing is caring.** Making good regular updates is crucial to keeping things calm and establishing confidence in your team's ability to resolve the issue. This is easy to overlook as you are chatting away in Slack.

Care to share your own advice for incident response in Slack?

If you are thinking about adjusting to a Slack driven incident response process, we are here to [help.](https://rigd.io)

https://redd.it/flb5ba
@r_devops
Seperate devlopment and production containers?

Should I separate the development environment container from the production container (ei. into a Dockerfile and Dockerfile.dev)?

Otherwise I think I would have to either:

\- Parameterize the Dockerfile

\- Make a multistage file, and use targets when building containers

I think separating these would make the gap between between development and production greater, but make the setup simpler.

I'm quite new to deploying larger applications, so the pros and cons of the various approaches aren't quite obvious to me.

https://redd.it/fl7vdp
@r_devops
GCP Fundamentals Series: Three online half-day programs and take your skills to new heights

Cloud OnBoard is a free online instructor-led training program that enables developers and IT professionals to expand their skill set into the cloud. **Google Cloud Platform (GCP) Fundamentals Series** brings the Google Cloud Community together for three consecutive days of interactive learning and hands-on labs.


Choose one, two, or all three online half-day programs and take your skills to new heights:

* Core Infrastructure
* Big Data & Machine Learning
* Application Development with GCP

**March 24** **-** **26, 2020**

[https://cloudonair.withgoogle.com/events/apac-gcp-fundamentals-series](https://cloudonair.withgoogle.com/events/apac-gcp-fundamentals-series)

[https://imgur.com/a/0F4Yh6F](https://imgur.com/a/0F4Yh6F)

https://redd.it/flnzmh
@r_devops
I just took a job in DevOps (software sales) What Book would you recommend for me to get a basic understanding of DevOps etc?

Thanks in advance

https://redd.it/fl9xou
@r_devops