Introduction Quickly wanted to write about a method I used to extract 2 lines from one of my posted and add it to all my other posts. clip=$(sed -n '5,6p' file-with-option.md) ls -1 | xargs -i sed -i "4a $clip" {} Quick explaination. We are saving the lines 5 and 6 from our desired file into $clip. Then we list all the files without fuzz, pipe them to xargs and set to run the commands individually, appending our $clip variable to line 4 ...
How I Understand Kubernetes
Kubernetes There are so many pieces and aspects to this product it is hard to narrow the scope of this paper. Distribution These are exactly like Linux distrobutions, where they all share the same “kernel” of options, while achieving them in different ways. rke2 k3s k0s minikube Tools Common tools handle a lot of differnet aspects, but these are the most common (That I’ve seen) flux This is for syncronizing your envrionment to a configuration repository. One Repo can hold many enviroments and act as a package manager. Because of this, a “bootstrapping” step is required. argocd This is a tool for deploying your application to the cluster. It works in a lot of a the same ways as Flux, but seems more focused on the application side rather than the configuration of the cluster AND applications. helm This provides a templating scheme to create “packages” that can be deployed with either of the options above, or even itself. Helm offers the ability to deploy from its binary and manage the application from there. kubectl This is the tool to control your cluster in various ways directly. Turn off pods, grab logs, very similar to running “docker” or “podman” istioctl Important Files /home/user/.config/kubeconfig This holds all of the connection data to one or more of your clusters in an environment. Rancher can help create this file, and most distros have a file stored somewhere for this. Most of the above tools refernce this file in order to work with your cluster. Kustomizations These files are either created by the cluster or by hand, then they are meant to directly apply to the cluster. My way of thinking of it is a direct binary. Nothing is managing this file except yourself, has complete access to the system, and a sure fire way to drift your cluster from a desired state to a rogue state.
Getting Started with Hugo
Introduction Getting started with static site generators I had a few qualifications. Portability, no NodeJS, and manage everything from text files. Installed the extended version using the .deb file and then installed the PaperMod theme hugo new site MyFreshWebsite --format yaml git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod git submodule update --init --recursive git submodule update --remote --merge echo 'theme: ["PaperMod"]' >> hugo.yaml