Avatar

rs5th

rs5th@lemmy.scottlabs.io
Joined
2 posts • 108 comments

DevOps dude, self-hoster, space nerd.

Direct message

On one hand, this is super cool, but on the other, it gives orcas and robots the chance to team up, and I’m not here for that.

permalink
report
reply

You’re in OK?! I just moved from OK to CO last summer. Hope your family and lab gear are doing okay after the storms.

permalink
report
parent
reply

The real gold was the friends we made along the way.

permalink
report
parent
reply

If anyone else has made it this far and are thinking “ah balls, I’m using ingress-nginx”, here’s the ingress annotation for you!

nginx.ingress.kubernetes.io/configuration-snippet: |
            if ($http_accept = "application/activity+json") {
              set $proxy_upstream_name "lemmy-lemmy-8536";
            }
            if ($http_accept = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") {
              set $proxy_upstream_name "lemmy-lemmy-8536";
            }
            if ($request_method = POST) {
              set $proxy_upstream_name "lemmy-lemmy-8536";
            }

permalink
report
parent
reply

Here’s a cronjob to clean up the useless activity table every day:


apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: postgresql-cleanup
  namespace: lemmy
spec:
  schedule: "0 0 * * *"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: postgres-cleanup
            image: postgres:alpine
            command: ["psql", "--host=postgresql", "--dbname=postgres", "--username=postgres", "--command=DELETE FROM activity WHERE published < NOW() - INTERVAL '1 day';"]
            env:
            - name: PGPASSWORD
              valueFrom:
                secretKeyRef:
                  name: postgresql
                  key: postgres-password
          backoffLimit: 0
          ttlSecondsAfterFinished: 3600

permalink
report
parent
reply
11 points
*

You did a Kubernete! Congrats!

Edit to add: one Kubernetes instance talking to another!

permalink
report
reply

It uses Elon Musk’s Starlink satellite technology to communicate, though it is unclear if it was the cause of the loss of contact.

Surely this is the surface vessel and not the sub. Starlink communications are around 11 GHz, which can only propagate a couple meters in salt water.

permalink
report
reply

The BBC live stream said “one pilot and four mission operators” about 15 min ago.

permalink
report
parent
reply

I believe the M900 has both a SATA port and a M.2 slot, so some options for internal storage.

You could also plug in a big spinning drive via USB 3. USB 3 can move data faster than a magnetic drive can pull it off the platters.

permalink
report
parent
reply