Lodra

joined 2 years ago
MODERATOR OF
[–] Lodra 3 points 1 day ago

OP, my personal preference is to supply raw k8s manifests in a project. These are far easier to manipulate using tool called kustomize. Just think of it as an alternative to helm. The big thing is that kustomize removes the need for forks because it can run against manifests defined by a url.

[–] Lodra 4 points 1 day ago (2 children)

It looks safe to me in the sense that I don’t see any malicious code in here. I don’t think the committee is trying to sneak in security hopes or similar. So all good on from that perspective.

It’s a very simple helm chart which is consideration! Here’s the thing with charts. They’re meant to be an official means of distributing your app’s manifests for k8s. One package with all runtime needs defined. If the chart supports every tweak I need, then it’s great! If it doesn’t, then I need to modify it myself. This usually means forking the project, making edits, and templating from the fork. It’s a lot of overhead for end users. If the maintainer is willing, it’s so much easier to create an issue or submit a PR with the needed changes.

Your project has some stars and forks. People are likely using it. Grats! The helm chart doesn’t like meet everyone’s needs and I would expect this to spur some extra issues and PRs. Is that good or bad? That’s up to you!!

[–] Lodra 1 points 3 weeks ago

There are many reasons to use k8s. Managing multiple nodes is one good one. But more importantly, k8s gives you an api-driven runtime environment. It’s really not comparable to docker compose.

[–] Lodra 2 points 3 weeks ago* (last edited 3 weeks ago) (2 children)

Yea I’m not a fan of helm either. In fact, I avoid charts when possible. But kustomize is great.

I feel the same way about docker compose. If it wasn’t already obvious, I’m biased in favor of k8s. I like and prefer that interface. But that’s just preference. If you like docker compose, great!

There’s one point where I do disagree however. There are scenarios where a local k8s cluster has a good and clear purpose. If your production environment runs on k8s, then it’s best to mirror that locally as much as possible. In fact, there are many apps that even require a k8s api to run. Plus, being able to destroy and rebuild your entire k8s cluster in 30s is wonderful for local testing.

Edit: typos

[–] Lodra 14 points 3 weeks ago (13 children)

Honestly, k8s is super easy and very lightweight to run locally if you know the rights tools. There are a few good options but I prefer k3d. I can install Docker/k3d and also build a local cluster running in maybe 2 minutes. It’s excellent for local dev. Even good for production in some niche scenarios

[–] Lodra 2 points 1 month ago (1 children)

Awesome. Also be sure to use a vpn and and extension to randomize your browser fingerprint!

[–] Lodra 4 points 1 month ago (3 children)

Well this is legit. I recently cancelled my kagi subscription for privacy reasons. This might make me reconsider. Is anyone here with access willing to test it out and report back?

[–] Lodra 23 points 1 month ago (4 children)

I expect someone will start a business to remove that aftermarket

[–] Lodra 26 points 1 month ago (19 children)

I get that he earns money from people watching the video. But 26 minutes is pretty rough when I really just want a text dump of the results. Did anyone spot a list somewhere?

[–] Lodra 5 points 1 month ago (2 children)

There’s cryptpad though I don’t have a clue how complicated it is to manage. But it’s a decent user experience.

[–] Lodra 5 points 2 months ago

Well that’s fair. I had to look closely. It’s a ready made soup. Not just spice. I’m finally getting this post now.

[–] Lodra 6 points 2 months ago (2 children)

Oh ok. I didn’t realize it’s specifically for soup. But also, it’s probably tasty in some soups like a carrot or butternut squash soup 🤣

 

Why even bother with the perforation? It doesn’t do anything anymore. I think this nonsense started when Covid caused toilet paper shortage in the US. The sheets are made up and the lines don’t matter!

16
submitted 5 months ago by Lodra to c/devops
 

Someone posted a blog here a little while ago. I wrote up a big response only to find that OP deleted the post. I figured I might as well post my response here since it took me 45m to type out of my phone 🫠


What an interesting list. Some of these suggestions are good with others are not. I think we can reorder things a bit and make this more reasonable.

~~Jenkins~~

Jenkins is terrible! It should have been killed off a decade ago. Seriously, just don’t use Jenkins. There are much better offerings now.

Source control and CI/CD

The current trend is to rely on your source control provider for ci/cd. You may or may not have a choice in this space so let’s name some big ones. GitHub, Gitlab, Azure DevOps, Bitbucket, Gitea/Forgejo. They all act as a git server and all offer automation. Learn whichever your company uses. If you get to choose… GitHub is great! Gitlab is also good but the automations will be focused on bash and tend to get messy IMO. ADO is truly a Microsoft product with many nonsensical choices. I find it frustrating to use. I haven’t done ci/cd with bitbucket. If you want a foss option, check out forgejo (a fork of gitea). I have not used either yet though it looks nice and I really want to.

Containers

Docker is a fine choice. I really like some alternatives tools like buildah, podman, etc. but nearly every piece of documentation out there is based on docker. The choice is yours here but docker will probably give you the simplest experience.

Kubernetes is an amazing runtime environment! IMO should be used as a standard interface for running resources in a public cloud. However, this is a huge jump and you’ll want to learn at least a dozen good tools here. This one is a many years long practice but absolutely worthwhile. A quick and very incomplete list of tools: k9s, k3d, helm, kustomize (better than helm in most cases), flux, Argo (better than flux), istio. Seriously these are just the basics.

Infrastructure Management

While ansible is good, I would be looking to retire it at this point. A big possible exception is if you are running your own hardware and don’t have a great interface for alternative tools. If somebody just gives you a VM to use, then ya use ansible.

Terraform is great but don’t use it. OpenTofu is a foss fork and people should honestly just use this instead. But both tools have some limitations and oddities. People seem to love using terragrunt as well to make this easier to use.

If you’re using k8s, there’s also the open tofu controller. I’ve haven’t personally used it, but people I 100% trust in this space absolutely love it.

Observability

Firstly I like the numeronym instead: o11y.

Don’t use nagios. It’s old and there are better alternatives.

Elasticsearch is ok but I don’t really like it. Everything is stored as a document and just… eh, there are better options.

Prometheus is quite good.

Here’s the biggest mistake that people make today. Use OpenTelemetry as the core of your o11y solution. It’s the 2nd biggest CNCF project (right behind k8s) and it’s a fantastic tool. It lets you collect telemetry data and build data pipelines to whatever storage devices you want. That includes Prometheus and elasticsearch but you also can choose many more options as well with only tiny configuration changes.

ChatGPT

This entire post looks 100% like a copy/paste from ChatGPT. AI is a cool tool but OP, you should learn to use it a little better. Tell it to not use so much fluff text or such a rigid structure. Make edits afterwards. And most important of all, make sure it’s actually providing good info.

 

Ever since the database maintenance two Weiss so, I’ve seen far less content in my home feed. I decided to dig a bit today and found that I’m just not seeing content from certain subscribed communities such as [email protected]. Turns out the most recent content from there is 15 days old. That lines up perfectly with the db maintenance.

Sooo. Are there any known issues since then? Maybe something with federation?

1
ECE and the .au domain (self.earlychildhood)
submitted 1 year ago by Lodra to c/[email protected]
 

I just stumbled on this new community. Having a young child, I figured I should join and learn! I also noticed that the Lemmy instance has a .au domain. I’m sure the theories and ideas will apply globally; but what about information regarding law, school systems, etc? Is this community intended for Australian info? Or is it acceptable that I ask questions specific to the US?

 

I made some changes to disk partitions. Now I'm seeing an issue with mounts. It's not a big problem but it's definitely confusing me.

[alex@rog-g15dk dev]$ sudo mount /home-temp
mount: /home-temp: can't find in /etc/fstab.
[alex@rog-g15dk dev]$ cat /etc/fstab
New                                         Partition    /home-temp   defaults            0 0 # /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
#                      
UUID=5E74-A00E                              /efi         vfat         noatime             0 2 
UUID=53a2c9bc-31dd-4e52-902f-633867253481   /            ext4         noatime             0 1 
tmpfs                                       /tmp         tmpfs        noatime,mode=1777   0 0 
/dev/nvme0n1p2                              /home        ext4         noatime             0 2 
/dev/nvme0n1p3                              /steam       ext4         noatime             0 2

Can anyone explain what 'mount -a' is trying to mount?

Here's the context on the changes I made. My desktop used to run windows. I recently installed linux as well (dual boot). A bit later I destroyed the windows partitions. This left the beginning 2/3 of the disk unused.

Today I decided to reclaim that disk space. I created 2 new partitions, copied some data to them, updated fstab accordingly, rebooted, and grew the steam partition to 700GiB. That process had a couple of small bumps, including a partition that was mounted to '/home-temp'. I destroyed that partition before using it all.

So this error is definitely caused by me. That's fine. I'm just trying to understand what's going on and how to clean up the little mess.

97
submitted 1 year ago* (last edited 1 year ago) by Lodra to c/[email protected]
 

I'm ditching Windows in favor of Linux on my personal desktop. And so I'm looking for advice on which distro I should start with.

About Me

I use Linux professionally all the time but mostly to build ci/cd pipelines and for software development/operations. I've never been a Linux admin nor have I ever chosen the distro I use. I'm generally comfortable using Linux and digging into configs/issues as needed.

Planned Usage

I use this machine for typical home usage: Firefox, a notes app (currently Notesnook), maybe office style tools like word and excel. I also use this for gaming: Steam, Discord, etc. Lastly and least important, I use this for a small amount of dev work: VSCode, various languages, possibly running containers.

What I'm Looking For

I'd like an OS that's highly configurable but ships with good default settings and requires very little effort to start using. I don't want it to ship with loads of applications; I want to choose and install all of the higher level tools. Shipping with a configured desktop is perfectly fine but not required. Ideally, I can have all of this while still keeping the maintenance low. I think that means a stable OS, a good package manager, stable/automatic updates, etc.

Last bit. Open source is rather important to me. I prefer free and free.

Anyone have good suggestions??

Edit

I'm aware of tools like Distro Chooser. They've recommended Arch Linux and Endeavor OS to me so far. But I'm not ready to trust them yet. I'm looking for human input.

Edit 2: Hardware Info

I'm running on an ASUS ROG Strix GA15DK. It's just over 2 years old. The hardware was shiny but not top-tier at the time. It’s not new at this point but also not old by Linux standards.

  • AMD Ryzen 7 5800X Processor
  • NVIDIA GeForce RTX 3070
  • 16GB DDR4 3200 MHz RAM

Edit 3

It's official. I installed EndeavourOS! I got it to work without any issues. Yup, first try. It definitely didn't take me ~10 tries :D

Thanks for all the input all! Wonderful crowd here!!!

 

cross-posted from: https://programming.dev/post/1562654

FYI to all the VS Code peeps out there that malicious extensions can gain access to secrets stored by other VS Code extensions as well as the tokens used by VS Code for Microsoft/Github.

I really don’t understand how Microsoft’s official stance on this is that this is working as intended…

If you weren’t already, be very careful about which extensions you are installing.

 

Here's an upcoming feature for those wanting to use multiple profiles in VSCode but don't enjoying micro managing settings across many different profiles. And good news: This feature is currently being developed!

The feature request is Extend from the Default Profile. The idea is to allow users to organize settings into various layers. Global settings in the default profile. Maybe python specific settings in a python profile. And then golang specific settings in a golang profile. Or however else you want to organize things! This will be a huge help when working with many different workspaces and languages which all need little adjustments.

This idea actually dates back all the way to November, 2016! While it has nearly 600 votes, nobody implemented the feature. Thankfully, the new feature (again, issue 156144 was requested about a year ago and was actually a part of the Iteration Plan for June 2023. Unfortunately, it wasn't completed in time (that's ok! Thanks devs!) and was pushed to the July 2023 iteration. Hopefully, we'll have this feature released soon.

If you're as excited as I am for this one, then vote for the feature with a thumbs up.

Yes, it's already in development but votes can make this feature a priority. You can also vote for specific implementation details too!

 

I love the new feature to hide posts! But it's a bit clunky if I want to find an older post. Any chance we can get an option to not hide posts when viewing a specific community? I.e. Only hide posts when I'm scrolling through the main feeds.

12
submitted 2 years ago by Lodra to c/vscode
 
  • Accessibility improvements - Accessible View for better screen reader support, Copilot audio cues.
  • Better editor group and tab resizing - Set min tab size, avoid unnecessary editor group resizing.
  • Skip subwords when expanding selection - Control whether to use camel case for selection.
  • Terminal image support - Display images directly in the integrated terminal.
  • Python extensions for mypy and debugpy - For Python type checking and debugging in VS Code.
  • Remote connections to WSL - Connect to WSL instances on remote machines using Tunnels.
  • Preview: GitHub Copilot create workspace/notebook - Quickly scaffold projects and notebooks.
  • New C# in VS Code documentation - Learn about C# development with the C# Dev Kit extension.
14
Hidden Gems: VSNotes by Patrick Lee (marketplace.visualstudio.com)
submitted 2 years ago by Lodra to c/vscode
 

This is the first of a (hopefully) recurring series where we showcase extensions that are likely unknown to most users. Starting with patricklee.vsnotes!

Marketplace Description

VSNotes is a simple tool that takes care of the creation and management of plain text notes and harnesses the power of VS Code via the Command Palette.

Why I like it

VSNotes seems to be built for frequent note taking. E.g. Taking daily meeting notes and keeping them organized. There are quite a few alternative extensions like dendron.dendron that do this quite well but are much more complicated. I like VSNotes for its simplicity. It's easy to use.

More importantly, I don't want to create a large number of notes. I just want to manage a few organized files and have them accessible at all times. Here's a screenshot from my work laptop.

No date stamps. No tags. No subdirectories. Nice and simple. Having these notes embedded in VS Code gives me the expected benefits like markdown syntax and preview. But my favorite part is the Activity Bar icon (far right in my screenshot). These notes aren't stored in my active workspace. They can be but I choose to store these notes in ~/notes instead. This means that the files within that directory are globally available regardless of which workspace is active. If you work with many different repositories and workspaces, this is fantastic!

A few use cases

  • Basic notes that are always open... duh. So you don't have to send yourself messages in Slack
  • Commands.md: Some bash magic. Some kubectl favorites. Some fancy git commands. All copy/paste-able into the embedded terminal
  • Diagram.d2: I manually set the file extension. Now I can preview terrastruct.d2 diagrams conveniently!

My Configuration

{
  "vsnotes.defaultNotePath": "~/notes",
  "vsnotes.defaultNoteTitle": "{title}.{ext}",
  "vsnotes.noteTitleConvertSpaces": "-",
}
6
submitted 2 years ago by Lodra to c/vscode
 

First and foremost everyone, welcome to our new little community!

I've watching the subscriber count climb slowly over the last ~36 hours from 0 to the current 64 subscribers. Exciting stuff! And impressive too, given that we don't have any content yet 🙂

So I'd like to hear from the crowd. What content do you want to see here? Maybe some periodic posts like monthly patch notes? Reply with your ideas!

view more: next ›