Reddit DevOps
267 subscribers
31K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Feedback wanted! Koncrete: Cloud-hosted CD for Kubernetes

Hey Devops reddit! We are David, Scott, and Tian - we've been working on a cloud-hosted CD service for k8s called Koncrete that we would love some feedback on.

# What is this thing?

Koncrete is cloud-hosted continuous delivery for Kubernetes, powered by ArgoCD. It's a super quick and simple way to get started with Gitops. In minutes you get ArgoCD with a few handy integrations pre-configured - like Authentication, Github webhooks, and Slack notifications. You can test it out for free here, it should really only take a couple of minutes to setup.

While setting up Argo itself is not particularly difficult, configuring integrations and hosting can be a distraction for those getting started with Gitops. Getting started with Koncrete is as easy as connecting a gitops ready repo (or our example repo) and a Kubernetes cluster*.*

# Background

We are the team behind Kalm, an open source k8s toolset we built during the W21 YC batch. While building Kalm, we had the experience of learning GitOps for the first time, and thought it was weird that the bulk of the tutorials we found were all about "How to Install Flux/Argo", and very little about GitOps best practices. We joked that it was as if we were searching for "How to Write Better Blogs" and all we were getting back were "How to Self-Host Wordpress" results.

So we decided to create a one click GitOps service for people want to focus more on setting up well crafted GitOps projects, and less on configuring and maintaining GitOps operators.

We're leveraging a lot of great open source projects (like ArgoCD) to make this happen. We plan to open source core libraries along the way.

# How to try it!

We're looking for help! We really need feedback from Kubernetes enthusiasts! Specifically:

Run through our [getting started demo](https://docs.koncrete.dev/Getting-Started-0e835a43c944493ea5a591dea5dc804d) (free). Any and all feedback would be amazing.
If you have experience with GitOps - do you think something like this is useful? Why / why not?

We offer a free tier that is sufficient for hobbyist projects and small production clusters, so there's no cost to test :)

Thanks all!

Website - https://koncrete.dev

Documentation - https://docs.koncrete.dev

https://redd.it/oyry02
@r_devops
YAML in vscode not being validated with YAML extension

So I'm trying to setup YAML validation in VSCode for a myriad of YAML files my team is working with. I'm a little hung up on what is supposed to be done to set it up on windows. I installed the YAML extension and put in the \`settings.json\` where my yaml schema and files are located, i.e.:

"yaml.schemas": {
".\\path\\to\\schema.yaml": "*.yaml",
}

But when I go to my yaml files, no validation is happening. No redlines or nothing. Is there something else I need to do? The stuff I've looked at on the interwebs for help have been less than helpful...

https://redd.it/oyrfma
@r_devops
Heroku?

New client is intent on hosting production on Heroku. Is this as impractical as it sounds to me and do any of you have anything good or confidence building to say about it?

I'm worried about scaling.

https://redd.it/oyimkx
@r_devops
Bird – An Alternative to InSpec and Goss, Written on Raku.

Hi! I've created the Bird - https://github.com/melezhik/bird - Linux servers verification tool written on Raku ( former Perl6 ) and with Raku API. With recent changes with Opscode Chef and also if you want a programmatic API ( not YAML coding like in Goss ) you might want to take a look at the Bird. The project is still in alpha, but I am open for suggestions.

I've dropped an asccinema if someone wants to see a real example of work - https://asciinema.org/a/428954

https://redd.it/oywf4s
@r_devops
Advice on how to pass technical interviews

Tltr: 4-5 as a DevOps engineer, rejected a lot after the technical part of the interview, trying to go for senior positions.
wanted to learn from Your experience, what websites are good? company's that helps with technical interviews?

https://redd.it/oyf007
@r_devops
mOVING TO A devops workflow riddled with *probably* silly questions

Hi,


The place I work at is an old software house that uses old technology that wants to move into the devops approach. I'm working on an greenfield project that already has a base and we tend to work in a waterfall model approach. Here are the current tools we use:

- TortoiseSVN
- AngularJS Frontend
- Standard PHP backend
- SQL Server on a Microsoft dev server



So the project directory typically looks like this:

- /pages
- /js
- /php
- /configs


The pages would be using the set javascript files for each of the single page. JS files sends GET/POST requests to the PHP files. The PHP files uses the configs to basically communicate with the SQL server, performs the SQL Queries and returns to it to the JS to be used. So an example would be like:

- /pages/user.html
- /js/user.js
- /php/get_users.php

User.html would be a page that lists the users on the application, in the JS of that, it runs a HTTP GET request to get_users.php to essentially get the users. We would access the page via the server url so like `<devserver/projectname/pages/user.html>' so you see whatever changes you make. We also have a live server which contains a similar environment and how we usually deploy to live is just copy and paste the files to the live server and run any sql scripts on the live database so it is up to date and works with the current code base being pasted into it.

We now want to move into using these kind of tools/workflow:

- Git/GitHub
- CI/CD
- Laravel API


I've been familiarising myself with these tools to get a base. I've also been looking at docker but i'm not sure if we need it or not. I've taken all this information in but still not sure where to start and could really use some friendly advice on how to get this started or at least potentially be pointed in the appropriate direction.

I also have a couple of additional questions such as, if we were to move into the Laravel API approach, would that mean that the API would have to sit somewhere else rather than together with the frontend files?

I have to quickly go out to get my second dose of the vaccine but I thought I would post this to get a base and hopefully get some responses and will add more details when I get back. Thanks guys.

Edit: Formatting

https://redd.it/oyf3tl
@r_devops
Dockerizing existing dotnet application and deploying to Azure app service

Hi, this is my first week and just started using docker for doing a POC to dockerize an existing dotnet application which has 3 web portals connected to Azure SQL database. My team has already build some POC to create a dockerfile for 1 web portal and push the image to ACR and then deploy it to Azure App services. Now I need to build 2 dockerfiles for other 2 web portals and then push them to ACR and then deploy to separate Azure App services via Azure devops pipeline. I have created Azure Devops pipeline for building and pushing to ACR and then deploying to Azure app service and its working fine for the portal where dockerfile was already created by my team. I have created the dockerfile for another portal in similar manner but after deploying to app service facing application error. All the code for 3 web portals is in same github repo. Can anybody through any expert advice how do I proceed with deployment of remaining 2 webportals using docker and creating the dockerfile? I am a beginer in docker and don't have much idea about dotnet too.

https://redd.it/oyzafw
@r_devops
Switch from support to dev?

Hi all, I’m considering quitting my software support job to attend school to become a backend developer.

The reason is that I enjoy working with technology & code, but I hate working with customers.

Am I correct in assuming that backend devs typically don’t have to interact with customers?

What are the major stressors of dev jobs?

Are Devs typically expected to work over 40 hrs/week?

Thanks for your time.

https://redd.it/oy0i9y
@r_devops
What are the top barriers you are facing in adopting DevOps for your organization?

Adopting DevOps? How do you make your transition smooth with DevOps success? There are many reasons why DevOps uptake has been slow.

View Poll

https://redd.it/oz0lsm
@r_devops
How can I monitor nginx status?

I've been using a vm of Digital Ocean to run 3 containers (python+django / nginx / postgresql). So there is already an agent & dashboard to check RAM, CPU, storage usage, bandwidth, load.

How can I check nginx status? In particular, I would like to see requests per second. Any simple way to see this data?

I tried New Relic. But the setup & interface are complicated provided that I only check nginx. It cannot read status_url though I set the status page to localhost. I tried to curl https://127.0.0.1/nginx\_status and it's ok in ssh. But the agent cannot read the data. and I don't know why.

Next, I take a look at nginx amplify but the repo looks like it's not maintained 3 years ago

Any easy way to visualize nginx status data?

https://redd.it/oz0uks
@r_devops
evaluating dagger - programmable CI/CD tool

I recently got access to dagger (soon to be publicly open source), it's described as a programmable devops superglue. It basically aims to replace all your fancy bash scripts in your CI with a clean type-safe declarative configuration.

The language they used is called Cue, it was created by an ex-googler who created the GQL. Dagger allows to embed any script anywhere inside your cue config. The scripts are then executed transparently inside a container. Also it's being built by the former docker team.

I am evaluating it to replace all my devops scripts, especially the kube config templating and container build scripts. The tool is early but there are some supported packages already that you can re-use.

Curious to know if anyone played with it yet or if you have good alternatives.

https://redd.it/oz2tm7
@r_devops
Open source error management system

I'm trying to find something lightweight that I can push structured errors to from my application - so parameterised message text and the parameter values. I'd then be able to assign people to these errors to investigate, mark them as resolved etc.

I believe Sentry open source offers this but also comes with tracing etc. and feels way too heavyweight for what I want.

Hoping somebody can help with a recommendation as I'm unable to find anything so far!

https://redd.it/oz2pzl
@r_devops
OneDev 4.9 - open source git server with built-in CI/CD

The latest 4.9 release comes with service desk feature to create/discuss issues via email. This release also sees the ability to import repositories/issues from GitHub/GitLab/Gitea/BitBucket Cloud/JIRA Cloud/YouTrack.

For detail, please check: https://github.com/theonedev/onedev/wiki/4.9

https://redd.it/oz6lx2
@r_devops
Rundeck: Run job by schedule only?

Is there a way to remove the "Run Job Now" functionality and only be able to run jobs via schedule?

Rundeck is controlled by Puppet so changes will be made via the yaml file, not the console.

Coming up short looking for answers online.

Cheers

https://redd.it/oz6g76
@r_devops
New article about CDK (how to provision an Ubuntu-based EC2 instance)

Hello, I have been spending a bit of time lately playing with CDK and I wanted to share what I learned in a tutorial-style article.

Here it is: https://loige.co/provision-ubuntu-ec2-with-cdk

Let me know what you think! :)

https://redd.it/oz6p6n
@r_devops
I got into a fight with a DevOps Engineer....

Guys

So I posted this the other week but deleted as I was so embarrassed, but I think it's worth talking about how NOT to handle things...

Long story short, I got into an argument with a senior DevOps engineer over using YAML pipelines... Yes you read that correct. He wanted to continue using classic and I updated one to use YAML.. he wasn't happy.

What I should have done is walk away and bring it up with manager, instead a disagreement turned into a heated one, which punches were thrown. He hit the ground screaming in fright, embarrassment and rage...

The stupid thing is we had beers after it and are all good.

It was caught on security footage and I was fired. Ive been in a helpdesk job for the last week as I need the cash. No matter how much someone annoys you at work, never do stupid shit like this as I've probably ruined my career.

https://redd.it/oz8bxo
@r_devops
How to build on-demand cloud service with Hetzner Cloud?

So I want to build a cloud service where users can rent a game server for a specific time. For that, I want to use Hetzner Cloud as a cloud hosting provider. The way I've imagined it on a high level:

1. User rents a game server for N hours.
2. Backend creates a cloud server on Hetzner Cloud with their Hetzner Cloud API.
- Specify cloud-init user data in the API request payload to start the game server with parameters like random password.
- An image with the game server is used to create the cloud server.
3. User waits until the server is online.
4. Backend keeps track of the cloud server and deletes it after the time expires with the Hetzner Cloud API.

Does that approach make sense?

One thing that isn't great for the user experience is that the cloud server creation isn't instant and takes few minutes.

Another challenge is to keep the image up-to-date, not only the distro but also the game server itself.

https://redd.it/oz7r2r
@r_devops
6 Tools to Run Kubernetes Locally



All of the tools listed here more or less offer the same feature, including but not limited to:

1. Multi-Node cluster
2. Persistent volumes
3. Networking
4. Certificates
5. Bare-metal support
6. Dashboard
7. Kubernetes Versions
8. Add-ons
9. Cross-platform
10. Tracks upstream Kubernetes

https://yankee.dev/6-tools-to-run-kubernetes-locally

https://redd.it/ozch0y
@r_devops
tf-free: A project to create free resources on all cloud-providers

Hey r/DevOps,

I've created a project where you can create all the free resources available from the major cloud providers in a single command. I used it as a way to learn infrastructure as a code without relying on companies or external training, and without spending fortunes as well. Furthermore, I hope it helps you, as it did for me.

You are welcome to contribute and ask questions, it is not finished by any means, so be aware you must learn the basics before messing with its configurations.

https://redd.it/ozdlb8
@r_devops
🛠 Deployment strategies in Kubernetes

📓 Learn what are the different deployment strategies available in Kubernetes and how to use them. Read more...

https://redd.it/ozesk2
@r_devops