aboutsummaryrefslogtreecommitdiff
path: root/content/logs
diff options
context:
space:
mode:
Diffstat (limited to 'content/logs')
-rw-r--r--content/logs/2019-11-16-compiling-emacs.org36
-rw-r--r--content/logs/2020-07-13-k8s.org73
-rw-r--r--content/logs/2020-07-14-fritzbox.org16
-rw-r--r--content/logs/2020-08-22-genpass.org35
-rw-r--r--content/logs/2020-12-28-k8s-private-registry.org57
-rw-r--r--content/logs/2021-12-26-nfs-k3s.org61
6 files changed, 0 insertions, 278 deletions
diff --git a/content/logs/2019-11-16-compiling-emacs.org b/content/logs/2019-11-16-compiling-emacs.org
deleted file mode 100644
index 23a2181..0000000
--- a/content/logs/2019-11-16-compiling-emacs.org
+++ /dev/null
@@ -1,36 +0,0 @@
----
-title: "Compiling emacs from source code on Fedora"
-date: 2019-11-16
-lastmod: 2020-08-25
-tags: ['emacs', 'emacs27', 'linux', 'fedora']
----
-
-Compiling emacs from source and installing on fedora.
-
-* Installing Packages
-Install the following packages:
-#+BEGIN_SRC
-sudo dnf install git autoconf make gcc texinfo \
- gnutls-devel giflib-devel ncurses-devel \
- libjpeg-turbo-devel giflib-devel gtk3-devel \
- libXpm-devel libtiff-devel libxml2-devel -y
-#+END_SRC
-
-* Cloning Repository
-Clone repository [[http://savannah.gnu.org/projects/emacs/][savannah.gnu.org]]:
-#+BEGIN_SRC
-git clone -b master git://git.sv.gnu.org/emacs.git
-#+END_SRC
-
-* Compiling
-Navigate to emacs folder (~cd emacs~) and execute the following steps
-
-#+BEGIN_SRC sh
-./autogen.sh
-./configure
-make -j$(nproc)
-sudo make install
-#+END_SRC
-
-After verify version with ~emacs --version~, it should be equal or higher than
-=28.0.50=.
diff --git a/content/logs/2020-07-13-k8s.org b/content/logs/2020-07-13-k8s.org
deleted file mode 100644
index b55c982..0000000
--- a/content/logs/2020-07-13-k8s.org
+++ /dev/null
@@ -1,73 +0,0 @@
----
-title: "Road to local k8s"
-date: 2020-07-13
-tags: ['kubernetes', 'linux', 'fedora']
----
-
-* Goal
-The goal is to deploy kubernetes on my local networks, and keep everything as
-reproducible as possible.
-
-* Stack
-
-I'll use Fedora Core OS, Matchbox and Terraform [fn:1], a match the requirements
-for Tectonic [fn:2]
-
-** Steps
-- Network Setup DHCP/TFTP/DNS [fn:3]
-- Matchbox [fn:4]
-- PXE network boot environment
-- Terraform Tectonic [fn:5]
-
-** Network Setup DHCP/TFTP/DNS
-First learning the basics again:
-
-- https://linuxhint.com/install_dhcp_server_ubuntu/
-- https://www.youtube.com/watch?v=XQ3T14SIlV4
-
-
-To check open ports
-#+BEGIN_SRC sh
-lsof -Pni | grep LISTEN
-#+END_SRC
-
-Run the provided [fn:dnsmasq] image with ~dnsmasq~ and PXE toolkit
-
-#+BEGIN_SRC sh
-docker run --rm --cap-add=NET_ADMIN --net=host quay.io/coreos/dnsmasq \
- -d -q \
- --dhcp-range=192.168.1.3,192.168.1.254 \
- --enable-tftp --tftp-root=/var/lib/tftpboot \
- --dhcp-match=set:bios,option:client-arch,0 \
- --dhcp-boot=tag:bios,undionly.kpxe \
- --dhcp-match=set:efi32,option:client-arch,6 \
- --dhcp-boot=tag:efi32,ipxe.efi \
- --dhcp-match=set:efibc,option:client-arch,7 \
- --dhcp-boot=tag:efibc,ipxe.efi \
- --dhcp-match=set:efi64,option:client-arch,9 \
- --dhcp-boot=tag:efi64,ipxe.efi \
- --dhcp-userclass=set:ipxe,iPXE \
- --dhcp-boot=tag:ipxe,http://matchbox.example.com:8080/boot.ipxe \
- --address=/matchbox.example/192.168.1.2 \
- --log-queries \
- --log-dhcp
-#+END_SRC
-
-
-** Matchbox
-** PXE network boot environment
-** Terraform Tectonic
-
-------
-* Links
-[fn:1]https://coreos.com/tectonic/docs/latest/install/bare-metal/metal-terraform.html
-
-[fn:2]https://coreos.com/tectonic/docs/latest/install/bare-metal/requirements.html
-
-[fn:3]https://coreos.com/matchbox/docs/latest/network-setup.html
-
-[fn:4]https://coreos.com/matchbox/docs/latest/deployment.html
-
-[fn:5]https://coreos.com/tectonic/releases/
-
-[fn:dnsmasq]https://github.com/poseidon/matchbox/tree/v0.7.0/contrib/dnsmasq
diff --git a/content/logs/2020-07-14-fritzbox.org b/content/logs/2020-07-14-fritzbox.org
deleted file mode 100644
index df0fb52..0000000
--- a/content/logs/2020-07-14-fritzbox.org
+++ /dev/null
@@ -1,16 +0,0 @@
----
-title: "Friz.box turned off DHCP"
-date: 2020-07-14
-tags: ['fritz.box', 'DHCP']
----
-
-If you turned off your DHCP server follow these steps to connect to FritzBox
-settings.
-
-- Set your computer IP to ~169.254.1.2~ and your mask to ~255.255.0.0~
-- Then go to ~169.254.1.1~, login and re-enable the DHCP server.
-
-On gnome turn the wired connection off on again to apply the settings.
-
-Note: why in the hell does FritzBox 7490 require a land-line telephone to be
-physically factory reset?
diff --git a/content/logs/2020-08-22-genpass.org b/content/logs/2020-08-22-genpass.org
deleted file mode 100644
index c9a0a98..0000000
--- a/content/logs/2020-08-22-genpass.org
+++ /dev/null
@@ -1,35 +0,0 @@
----
-title: "Moving from Github to Gitlab pages"
-date: 2020-08-22
-tags: ['gitlab']
----
-
-This was quite simple, I had just to create a simple Gitlab pipeline job and
-publish to pages this is done by:
-
-#+BEGIN_SRC
-image: clojure:lein-2.7.0
-
-before_script:
- - lein deps
-
-test:
- script:
- - lein test
-
-pages:
- stage: deploy
- script:
- - lein package
- artifacts:
- paths:
- - public
- only:
- - master
-
-#+END_SRC
-
-- before_script :: will download all the dependencies with ~lein deps~.
-- test :: is self explanatory.
-- pages :: will compile the cljs into js with ~lein package~ and publish it into
- pages.
diff --git a/content/logs/2020-12-28-k8s-private-registry.org b/content/logs/2020-12-28-k8s-private-registry.org
deleted file mode 100644
index 9a571ef..0000000
--- a/content/logs/2020-12-28-k8s-private-registry.org
+++ /dev/null
@@ -1,57 +0,0 @@
----
-title: "K8S private gitlab registry using podman"
-date: 2021-12-28
-tags: ['kubernetes', 'linux', 'podman', 'gitlab', 'k3s']
----
-
-This is based on [[https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/][Log in to Docker Hub]].
-It is just a bit different to use podman
-
-First we should take a look at podman-login man page:
-
-#+BEGIN_SRC bash
-man podman login
-#+END_SRC
-
-It will give some valueable information like the location of auth.json file.
-Now we can login using podman:
-
-#+BEGIN_SRC bash
-podman login registry.gitlab.com
-#+END_SRC
-
-Then check the ~auth.json~ file located at
-~${XDG_RUNTIME_DIR}/containers/auth.json~ (as described by the manual).
-
-#+BEGIN_SRC bash
-cat "${XDG_RUNTIME_DIR}/containers/auth.json"
-#+END_SRC
-
-It will print your auth config:
-
-#+BEGIN_SRC json
-{
- "auths": {
- "registry.gitlab.com": {
- "auth": "..."
- }
- }
-}
-#+END_SRC
-
-Now copy that file over to the server and register it in k8s with the following command:
-
-#+BEGIN_SRC bash
-kubectl create secret generic regcred \
- --from-file=.dockerconfigjson=auth.json \
- --type=kubernetes.io/dockerconfigjson
-#+END_SRC
-
-Once you have created you can list by ~kubectl get secret~:
-
-#+BEGIN_SRC
-NAME TYPE DATA AGE
-regcred kubernetes.io/dockerconfigjson 1 53s
-#+END_SRC
-
-
diff --git a/content/logs/2021-12-26-nfs-k3s.org b/content/logs/2021-12-26-nfs-k3s.org
deleted file mode 100644
index 5785d4f..0000000
--- a/content/logs/2021-12-26-nfs-k3s.org
+++ /dev/null
@@ -1,61 +0,0 @@
----
-title: "Enable NFS on K3S"
-date: 2021-12-26
-tags: ['kubernetes', 'linux', 'helm', 'k3s']
----
-
-By default [[https://k3s.io/][K3S]] comes only with [[https://github.com/rancher/local-path-provisioner][local-path]] storage class, and if you are running
-with more than one node in your cluster you may want to use a more "distributed"
-solution. For may case I opted for NFS.
-
-To check the current storage class you can run:
-
-#+BEGIN_SRC bash
-k3s kubectl get storageclasses
-#+END_SRC
-
-And it will print something like:
-
-#+BEGIN_SRC
-NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
-local-path (default) rancher.io/local-path Delete WaitForFirstConsumer false 154d
-#+END_SRC
-
-To start adding First you need to install [[https://github.com/helm/helm][helm]] on your server. To do so you may
-run:
-
-#+BEGIN_SRC bash
-curl -sSL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
-#+END_SRC
-
-*Be careful when running scripts directly into bash always check the source*
-*Sometimes is also recommended to do not pipe directly to bash*
-
-Once it is installed we need to add the [[https://kubernetes.io/docs/concepts/storage/storage-classes/#nfs][NFS storage classes]]. It has two
-providers, I have chose [[https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner][NFS Subdir External Provisioner]].
-
-Add the helm repo
-
-#+BEGIN_SRC bash
-helm repo add nfs-subdir-external-provisioner https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/
-#+END_SRC
-
-Then we need to actually install the provider
-
-
-#+BEGIN_SRC bash
-helm install nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner \
- --set nfs.server=x.x.x.x \
- --set nfs.path=/exported/path
-#+END_SRC
-
-Set the ~nfs.server~ and ~nfs.path~ accordingly with your setup.
-
-After that if we run ~k3s kubectl get storageclasses~ it will now print another
-NFS provider:
-
-#+BEGIN_SRC
-NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
-local-path (default) rancher.io/local-path Delete WaitForFirstConsumer false 154d
-nfs-client cluster.local/nfs-subdir-external-provisioner Delete Immediate true 76m
-#+END_SRC