u/FormationHeaven

Greetings all,

Okay when setting up my k8s homelab i thought that monitoring was going to be bad, but holy am i lost on how to actually backup things.

My idea is simple : have velero backup only PVC's since i use gitops and use rclone serve s3

have velero write to a file first intead of making it give backup chunks. once that is done, rclone can sync it to something like gdrive on its own pace keeping in mind rate limits.

lets say this works, how am i even supposed to even restore from velero?

- If velero backups PVC's since it does file-level copying with kopia or whatever it has inside ,it should work for sqlite but what about postgres how does it even back that up and even how would it even restore it?

- Besides that, shouldn't we kinda scale every app to 0 so no write happens when restoring? how are you supposed to do that when you have argo re-syncing replicas.

I'm still in the brainstorming phase and im a begginer to k8s all together and i'm so confused.

Notes: im using proxmox with talos vms with the proxmox-csi, if that helps and somehow someone. (idk maybe you take snapshots and have velero save them ?? my brain is fried thinking about k8s backups.)

Someone with experience help out a fool, my brain is fried

reddit.com
u/FormationHeaven — 8 days ago

Greetings all,

So i have a beelink mini-pc running proxmox and a k8s cluster. The thing is i am very reluctant to buy another one since it has almost doubled in price, but i may need some extra compute.

I'm thinking of just adding a cheap 5 euro VPS and calling it a day and i want some suggestions on how to make it as secure as possible. My thinking is this :

  1. block all inbound ports on the VPS via the provider firewall
  2. Install tailscale both on the VPS and my homelab.
  3. Join it to my k8s cluster as a worker node via the Tailscale IP

profit?

reddit.com
u/FormationHeaven — 13 days ago
▲ 17 r/grafana

I have a cluster with 2 nodes a controlplane and a worker node.

The top 2 lines are both alloy-log that are taking a whopping 420-450mb each 1 for each node. Is this normal? its a just a small homelab i can't afford a -1GB just for logging.

In total the observability namespace has taken around 1.4GB and i thought i was being smart by not using a kube-prometheus-stack and trying to cut on memory usage by using a more 'lightweight' open telemetry collector and making grafana cloud carry me.

Im using the grafana-k8s-monitoring chart

helmCharts:
  - name: k8s-monitoring
    repo: https://grafana.github.io/helm-charts
    releaseName: grafana-k8s-monitoring
    namespace: observability
    version: "^3"
    valuesFile: values.yaml
    includeCRDs: true

with the following values.yaml

cluster:
  name: homelab

destinations:
  - name: grafana-cloud-metrics
    type: prometheus
    url: https://<some-prod-somewhere>.grafana.net/api/prom/push
    auth:
      type: basic
      usernameKey: metrics-username
      passwordKey: token
    secret:
      create: false
      name: grafana-cloud-credentials
      namespace: observability
  - name: grafana-cloud-logs
    type: loki
    url: https://<a-log-id>.grafana.net/loki/api/v1/push
    auth:
      type: basic
      usernameKey: logs-username
      passwordKey: token
    secret:
      create: false
      name: grafana-cloud-credentials
      namespace: observability

clusterMetrics:
  enabled: true

clusterEvents:
  enabled: true

podLogs:
  enabled: true
  namespaces:
    - auth
    - traefik
    - argocd
    - whoami
    - external-secrets
    - cert-manager
    - observability

integrations:
  alloy:
    instances:
      - name: alloy
        labelSelectors:
          app.kubernetes.io/name:
            - alloy-metrics
            - alloy-singleton
            - alloy-logs

alloy-metrics:
  enabled: true
  alloy:
    resources:
      requests:
        cpu: 50m
        memory: 128Mi
      limits:
        memory: 512Mi
  configReloader:
    resources:
      requests:
        cpu: 10m
        memory: 50Mi
      limits:
        memory: 128Mi

alloy-singleton:
  enabled: true
  alloy:
    resources:
      requests:
        cpu: 25m
        memory: 128Mi
      limits:
        memory: 512Mi
  configReloader:
    resources:
      requests:
        cpu: 10m
        memory: 50Mi
      limits:
        memory: 128Mi

alloy-logs:
  enabled: true
  alloy:
    resources:
      requests:
        cpu: 50m
        memory: 128Mi
      limits:
        memory: 512Mi
  configReloader:
    resources:
      requests:
        cpu: 10m
        memory: 50Mi
      limits:
        memory: 128Mi

Any help or suggestion would be appreciated.

u/FormationHeaven — 13 days ago

Greetings all,

I have a specific taste for games,

For example i can rescue Le'garde in under 25 mins in Fear and Hunger because of the things i know. A normal player could play for days or a week, without achieving this and i could do it purely because of information no grind for levels to progress.

Similarly in Outer wilds i can easily solve the puzzles since i already know them.

I like it when games rely on the feedback loop of : die -> gain information and info is the most valuable thing to progress in the game. I love knowledge is power and no need for grind of levels.

Another thing i value is Realism. Bear with me.

- In Fear and Hunger when you defeat an enemy you don't get xp, if an important limb gets cuts off its mostly game over. This immerses me into the game and it makes me think if the world of fear and hunger was real and it wasn't a game a missing limb is really game over, or if i killed a monster it doesn't increase my strength, vitality or anything, i only gain knowledge on how to deal with it.

- Another example for realism, in Swat 4 if you get shot you lose health and can't recover. I like it so much when its realistic and it doesn't have bs like any other shooter where you hide behind a rock for 10 seconds and its all good. Another good thing about Swat 4 is the realistic AI, if you shoot at them they run to take cover, they don't stand like NPC's out in the open, you know a reaction that a normal human would have if it happened in real life.

i hope i got the 2 things i like in games across and i hope some people can recommend me some cool games based on them

reddit.com
u/FormationHeaven — 15 days ago