Some more articles reformatting
This commit is contained in:
parent
ebb609f027
commit
652becdaaa
8 changed files with 58 additions and 23 deletions
19
content/blog/kubernetes/single-node-cluster-taint.md
Normal file
19
content/blog/kubernetes/single-node-cluster-taint.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
---
|
||||||
|
title: kubernetes single node cluster taint
|
||||||
|
date: 2021-01-06
|
||||||
|
description: How to schedule worker pods on your control plane node
|
||||||
|
tags:
|
||||||
|
- kubernetes
|
||||||
|
---
|
||||||
|
|
||||||
|
## The solution
|
||||||
|
|
||||||
|
On a single node cluster, control plane nodes are tainted so that the cluster never schedules pods on them. To change that run :
|
||||||
|
{{< highlight sh >}}
|
||||||
|
kubectl taint nodes --all node-role.kubernetes.io/master-
|
||||||
|
{{< /highlight >}}
|
||||||
|
|
||||||
|
Getting dns in your pods :
|
||||||
|
{{< highlight sh >}}
|
||||||
|
add --cluster-dns=10.96.0.10 to /etc/conf.d/kubelet
|
||||||
|
{{< /highlight >}}
|
|
@ -15,7 +15,7 @@ stories while having a drink... and that's it!
|
||||||
|
|
||||||
## Professional Career
|
## Professional Career
|
||||||
|
|
||||||
I'm currently employed as a System and Network Architect at an awesome company named AlterWay, 3 years and counting. Before that I worked for 7 years at another awesome company named Intersec where I lead the IT team.
|
I'm currently employed as a System and Network Architect at an awesome company named AlterWay, 4 years and counting. Before that I worked for 7 years at another awesome company named Intersec where I lead the IT team.
|
||||||
|
|
||||||
### Intersec
|
### Intersec
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
title: "Gentoo"
|
title: "Gentoo"
|
||||||
linkTitle: "Gentoo"
|
description: Gentoo related articles
|
||||||
weight: 1
|
|
||||||
description: >
|
|
||||||
Gentoo related articles
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
I am a long time gentoo user, my first installation dating back to something like 2004.
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
---
|
---
|
||||||
title: "Installation"
|
title: "Installation"
|
||||||
linkTitle: "installation"
|
description: Installation of a gentoo system
|
||||||
weight: 1
|
|
||||||
description: >
|
|
||||||
Installation of a gentoo system
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Introduction
|
||||||
|
|
||||||
|
When installing a gentoo system for the first time, please refer to the wonderfull [gentoo handbook](https://wiki.gentoo.org/wiki/Handbook:AMD64). This page is just installation notes shorthand when you know exactly what you are doing.
|
||||||
|
|
||||||
## Installation media
|
## Installation media
|
||||||
|
|
||||||
You can get a bootable iso or liveusb from https://www.gentoo.org/downloads/. I recommend the minimal one. To create a bootable usb drive juste use `dd` to copy the image on it. Then boot on this brand new installation media.
|
You can get a bootable iso or liveusb from https://www.gentoo.org/downloads/. I recommend the minimal one. To create a bootable usb drive juste use `dd` to copy the image on it. Then boot on this brand new installation media.
|
||||||
|
@ -17,6 +18,8 @@ Once you boot on the installation media, you can start sshd and set a temporary
|
||||||
passwd
|
passwd
|
||||||
{{< /highlight >}}
|
{{< /highlight >}}
|
||||||
|
|
||||||
|
Don't forget to either run `dhcpcd` or manually set an ip and gateway to the machine.
|
||||||
|
|
||||||
## Partitionning
|
## Partitionning
|
||||||
|
|
||||||
There are several options depending on wether you need soft raid, full disk encryption or a simple root device with no additional complications. It will also differ if you are using a virtual machine or a physical one.
|
There are several options depending on wether you need soft raid, full disk encryption or a simple root device with no additional complications. It will also differ if you are using a virtual machine or a physical one.
|
||||||
|
@ -50,6 +53,8 @@ mkfs.fat -F 32 -n efi-boot /dev/sda2
|
||||||
mount /dev/sda3 /mnt/gentoo
|
mount /dev/sda3 /mnt/gentoo
|
||||||
{{< /highlight >}}
|
{{< /highlight >}}
|
||||||
|
|
||||||
|
Make sure you do not repeat the mistake I too often make by mounting something to /mnt while using the liveusb/livecd. You will lose your shell if you do this and will need to reboot!
|
||||||
|
|
||||||
## Get the stage3 and chroot into it
|
## Get the stage3 and chroot into it
|
||||||
|
|
||||||
Get the stage 3 installation file from https://www.gentoo.org/downloads/. I personnaly use the non-multilib one from the advanced choices, since I am no longer using and 32bits software except steam, and I use steam from a multilib chroot.
|
Get the stage 3 installation file from https://www.gentoo.org/downloads/. I personnaly use the non-multilib one from the advanced choices, since I am no longer using and 32bits software except steam, and I use steam from a multilib chroot.
|
||||||
|
@ -178,6 +183,7 @@ scp root@collab-jde.nexen.net:/etc/hosts /etc/
|
||||||
|
|
||||||
### root account access
|
### root account access
|
||||||
|
|
||||||
|
I switched to an ed25512 ssh key some time ago but left this here for posterity :
|
||||||
{{< highlight sh >}}
|
{{< highlight sh >}}
|
||||||
mkdir -p /root/.ssh
|
mkdir -p /root/.ssh
|
||||||
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDN1ha6PFKgxF3MSWUlDaruVVpj3UzoiN4IJEvDrCnDbIW8xu+TclbeGJSRXXBbqRKeUfhX0GDA7cvSUIAz2U7AGK7wq5tbzJKagVYtxcSHBSi6dZR9KGb3eoshnrCeFzem1jWXG02PZJGvjB+ml3QhUguyAqm9q0n/NL6zzKhGoKiELO+tQghGIY8jafRv4rE4yyXZnwuCu8JI9P8ldGhKgOPeOdKIVTIVezUmKILWgAF+Hg7O72rQqUua9sdoK1mEYme/wgu0bQbvN26owGgBAgS3uc2nngLD01TZToG/wC1wH9A3KxT6+3akjRlPfLOY0BuK4OBGEGm6e0KZrIMhUr8fHQ8nmTmBqw7puI0gIXYB2EjhpsQ7TijYVqLYXbyxaXYyqisgY0QRWC7Te5Io6TSgorfXzi7zrcQGgWByHkhxTylf36LYSKWEheIQIRqytOdGqeXagFMz2ptLFKk4dA61LS5fPXIJucdghvnmLPml8cO9/9VHQ7gq7DxQu7sIwt/W13yTTUyI9DSHwxeHUwECzxAb5pOVL6pRjTMH8q1/eAMl35TFSh6s5tGvvHGz9+gMlE9A2Pv8CyXDBmXV6srrwxTSlglnmgdq6c9w3VtBKu572/z0cS6vqZMgEno4rIiwyhqNWdjbMXYw/U0q/w5XC9zCcSuluxvaY14qqQ== adyxax
|
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDN1ha6PFKgxF3MSWUlDaruVVpj3UzoiN4IJEvDrCnDbIW8xu+TclbeGJSRXXBbqRKeUfhX0GDA7cvSUIAz2U7AGK7wq5tbzJKagVYtxcSHBSi6dZR9KGb3eoshnrCeFzem1jWXG02PZJGvjB+ml3QhUguyAqm9q0n/NL6zzKhGoKiELO+tQghGIY8jafRv4rE4yyXZnwuCu8JI9P8ldGhKgOPeOdKIVTIVezUmKILWgAF+Hg7O72rQqUua9sdoK1mEYme/wgu0bQbvN26owGgBAgS3uc2nngLD01TZToG/wC1wH9A3KxT6+3akjRlPfLOY0BuK4OBGEGm6e0KZrIMhUr8fHQ8nmTmBqw7puI0gIXYB2EjhpsQ7TijYVqLYXbyxaXYyqisgY0QRWC7Te5Io6TSgorfXzi7zrcQGgWByHkhxTylf36LYSKWEheIQIRqytOdGqeXagFMz2ptLFKk4dA61LS5fPXIJucdghvnmLPml8cO9/9VHQ7gq7DxQu7sIwt/W13yTTUyI9DSHwxeHUwECzxAb5pOVL6pRjTMH8q1/eAMl35TFSh6s5tGvvHGz9+gMlE9A2Pv8CyXDBmXV6srrwxTSlglnmgdq6c9w3VtBKu572/z0cS6vqZMgEno4rIiwyhqNWdjbMXYw/U0q/w5XC9zCcSuluxvaY14qqQ== adyxax
|
||||||
|
|
|
@ -1,11 +1,19 @@
|
||||||
---
|
---
|
||||||
title: "Gentoo Kernel Upgrades"
|
title: "Gentoo Kernel Upgrades"
|
||||||
linkTitle: "Kernel Upgrades"
|
description: Gentoo kernel upgrades on adyxax.org
|
||||||
weight: 1
|
|
||||||
description: >
|
|
||||||
Gentoo kernel upgrades on adyxax.org
|
|
||||||
---
|
---
|
||||||
# Gentoo kernel upgrades
|
|
||||||
|
## Introduction
|
||||||
|
|
||||||
|
Now that I am mostly running OpenBSD servers I just use genkernel to build my custom configuration on each node with :
|
||||||
|
{{< highlight sh >}}
|
||||||
|
eselect kernel list
|
||||||
|
eselect kernel set 1
|
||||||
|
genkernel all --kernel-config=/proc/config.gz --menuconfig
|
||||||
|
nvim --diff /proc/config.gz /usr/src/linux/.config
|
||||||
|
{{< / highlight >}}
|
||||||
|
|
||||||
|
Bellow you will find how I did things previously when centralising the build of all kernels on a collab-jde machine, and distributing them all afterwards. Local nodes would only rebuild local modules and get on with their life.
|
||||||
|
|
||||||
## Building on collab-jde
|
## Building on collab-jde
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,14 @@
|
||||||
---
|
---
|
||||||
title: "LXD"
|
title: "LXD"
|
||||||
linkTitle: "LXD"
|
description: How to setup a LXD server on gentoo
|
||||||
weight: 1
|
|
||||||
description: >
|
|
||||||
How to setup a LXD server
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Introduction
|
||||||
|
|
||||||
|
I have used LXD for many years successfully, I was never satisfied with the docker way of doing container images pulling who knows what from who knows where. Until recently I managed full machine containers running Alpine Linux and was very happy with the simplicity of it.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
{{< highlight sh >}}
|
{{< highlight sh >}}
|
||||||
touch /etc{/subuid,/subgid}
|
touch /etc{/subuid,/subgid}
|
||||||
usermod --add-subuids 1000000-1065535 root
|
usermod --add-subuids 1000000-1065535 root
|
||||||
|
@ -15,6 +18,8 @@ emerge -q app-emulation/lxd
|
||||||
rc-update add lxd default
|
rc-update add lxd default
|
||||||
{{< /highlight >}}
|
{{< /highlight >}}
|
||||||
|
|
||||||
|
## Initial configuration
|
||||||
|
|
||||||
{{< highlight sh >}}
|
{{< highlight sh >}}
|
||||||
myth /etc/init.d # lxd init
|
myth /etc/init.d # lxd init
|
||||||
Would you like to use LXD clustering? (yes/no) [default=no]:
|
Would you like to use LXD clustering? (yes/no) [default=no]:
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
---
|
---
|
||||||
title: "Steam"
|
title: "Steam"
|
||||||
linkTitle: "Steam"
|
description: How to make steam work seamlessly on gentoo with a chroot
|
||||||
weight: 1
|
|
||||||
description: >
|
|
||||||
How to make steam work seamlessly on gentoo with a chroot
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Introduction
|
||||||
|
|
||||||
I am not using a multilib profile on gentoo (I use amd64 only everywhere), so when the time came to install steam I had to get a little creative. Overall I believe this is the perfect
|
I am not using a multilib profile on gentoo (I use amd64 only everywhere), so when the time came to install steam I had to get a little creative. Overall I believe this is the perfect
|
||||||
way to install and use steam as it self contains it cleanly while not limiting the functionalities. In particular sound works, as does the hardware acceleration in games. I tried to
|
way to install and use steam as it self contains it cleanly while not limiting the functionalities. In particular sound works, as does the hardware acceleration in games. I tried to
|
||||||
achieve that with containers but didn't quite made it work as well as this chroot setup.
|
achieve that with containers but didn't quite made it work as well as this chroot setup.
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
|
|
||||||
{{ .PublishDate.Format "2006-01-02" }} - {{ .Description }}
|
{{ if ne .PublishDate.Year 1 }}{{ .PublishDate.Format "2006-01-02" }} - {{ end }}{{ .Description }}
|
||||||
|
|
||||||
{{ partial "toc.html" . }}
|
{{ partial "toc.html" . }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue