Skip to content

Commit

Permalink
Switch to newer bigger Hetzner machine
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Jan 21, 2025
1 parent 51a756b commit 7122515
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/hetzner-2i2c.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ ingress-nginx:
scope:
enabled: true
service:
loadBalancerIP: 138.199.149.127
loadBalancerIP: 116.203.245.43

static:
ingress:
Expand Down
30 changes: 25 additions & 5 deletions docs/source/deployment/k3s.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,32 @@ We can use the [quickstart](https://docs.k3s.io/quick-start) on the `k3s` websit
config of _disabling traefik_ that comes built in. We deploy nginx as part of our deployment, so we
do not need traefik.

```bash
curl -sfL https://get.k3s.io | sh -s - --disable-traefik
```
1. Create a Kubelet Config file in `/etc/kubelet.yaml` so we can
tweak various kubelet options, including maximum number of pods on a single
node:

This runs for a minute, but should set up latest `k3s` on that node! You can verify that by running
`kubectl get node` and `kubectl version`.
```yaml
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
maxPods: 300
```
We will need to develop better intuition for how many pods per node, but given we offer about
450M of RAM per user, and RAM is the limiting factor (not CPU), let's roughly start with the
following formula to determine this:
maxPods = 1.75 * amount of ram in GB
This adds a good amount of margin. We can tweak this later
2. Install `k3s`!

```bash
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server --kubelet-arg=config=/etc/kubelet.yaml" sh -s - --disable=traefik
```

This runs for a minute, but should set up latest `k3s` on that node! You can verify that by running
`kubectl get node` and `kubectl version`.

## Extracting authentication information via a `KUBECONFIG` file

Expand Down
Binary file added secrets/hetzner-2i2c-kubeconfig.yml
Binary file not shown.
Binary file removed secrets/hetzner-2i2c.yml
Binary file not shown.

0 comments on commit 7122515

Please sign in to comment.