(Just- migrated this instance over to kubernetes… just testing federation…)

11 points
*

You did a Kubernete! Congrats!

Edit to add: one Kubernetes instance talking to another!

permalink
report
reply
7 points
*

NOT only did I do it in kubernetes, But- I built all of the manifests by hand.

AND- I am not using that crappy nginx proxy. I created the manifests to use my default traefik proxy’s ingressroute.

Edit- and thanks for the reply!

permalink
report
parent
reply
10 points

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
10 points
*

Oh sweet, here, I will share my lovely ingressroute in return… to replace the nginx stuff everyone else is using.

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: lemmy
  namespace: lemmy
spec:
  entryPoints:
    - websecure
  routes:
    - kind: Rule
      match: Host(`lemmyonline.com`) && (Headers(`Accept`, `application/activity+json`) || Headers(`Accept`, `application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"`))
      services:
        - name: lemmy
          port: http
    - kind: Rule
      match: Host(`lemmyonline.com`) && (PathPrefix(`/api`) || PathPrefix(`/pictrs`) || PathPrefix(`/feeds`) || PathPrefix(`/nodeinfo`) || PathPrefix(`/.well-known`))
      services:
        - name: lemmy
          port: http
    - kind: Rule
      match: Host(`lemmyonline.com`) && Method(`POST`)
      services:
        - name: lemmy
          port: http
    - kind: Rule
      match: Host(`lemmyonline.com`)
      services:
        - name: lemmy-ui
          port: http

Thanks!

Edit- could be consolidated down to only two rules, I left it expanded out to be a tad easier to read.

permalink
report
parent
reply
5 points

Can we please make this the top post in the fediverse?

permalink
report
reply
3 points

I didn’t think it was that cool, if you want a more interesting story-

Check this one out: https://lemmyonline.com/post/3751

permalink
report
parent
reply
1 point

115 mph is ridiculous.

permalink
report
parent
reply
2 points
*

I am working on exporting this video with sound…

https://www.youtube.com/watch?v=JqqDlPlWRA0

But, here in a few days, I am going to have a interesting write-up over on https://static.xtremeownage.com/blog sharing the story too.

Edit- note, those glitches are youtube, and not my camera. The camera was 100% stable the entire time. I need to export/transcode to H264 and reupload.

permalink
report
parent
reply
3 points

Hi from Midwest!

permalink
report
reply
2 points

Hi from the west coast best coast!

permalink
report
parent
reply
2 points

Hey!

permalink
report
parent
reply

Hey back from the midwest too!

permalink
report
parent
reply
3 points

Test test :)

permalink
report
reply
2 points

What going on, eh?

permalink
report
reply

Chat

!chat@beehaw.org

Create post

Relaxed section for discussion and debate that doesn’t fit anywhere else. Whether it’s advice, how your week is going, a link that’s at the back of your mind, or something like that, it can likely go here.


Subcommunities on Beehaw:


This community’s icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

Community stats

  • 232

    Monthly active users

  • 755

    Posts

  • 17K

    Comments