Skip to content

Instantly share code, notes, and snippets.

@IngwiePhoenix
Created November 4, 2024 18:39
Show Gist options
  • Save IngwiePhoenix/fe271dc7b6578accab6e9754760ae4d2 to your computer and use it in GitHub Desktop.
Save IngwiePhoenix/fe271dc7b6578accab6e9754760ae4d2 to your computer and use it in GitHub Desktop.
Piped in k3s
## Protip.
# Cheat and use (their) charts.
# You do _NOT_ want to set _THIS_ up manually nor on your own. It's actually a pain in the ass.
# ... trust me, I tried.
---
apiVersion: v1
kind: Namespace
metadata:
name: piped
---
apiVersion: postgresql.easymile.com/v1alpha1
kind: PostgresqlDatabase
metadata:
name: piped-db
namespace: piped
spec:
engineConfiguration:
name: default-cluster-instance
namespace: postgres
database: piped
masterRole: "piped-role"
dropOnDelete: true
waitLinkedResourcesDeletion: true
---
apiVersion: postgresql.easymile.com/v1alpha1
kind: PostgresqlUserRole
metadata:
name: piped-db-user
namespace: piped
spec:
mode: MANAGED
rolePrefix: "piped"
userPasswordRotationDuration: 720h
privileges:
- privilege: OWNER
database:
name: piped-db
generatedSecretName: piped-db-creds
---
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: piped
namespace: kube-system
spec:
repo: https://helm.piped.video
chart: piped
targetNamespace: piped
valuesContent: |-
frontend:
env:
BACKEND_HOSTNAME: <snip>
backend:
config:
PROXY_PART: https://<snip>
FRONTEND_URL: https://<snip>
API_URL: https://<snip>
database:
connection_url: jdbc:postgresql://default-cluster-rw.postgres/piped
secret:
name: "piped-db-creds"
username: "LOGIN"
password: "PASSWORD"
ingress:
backend:
ingressClassName: "traefik"
hosts:
- host: <snip>
paths:
- path: "/"
main:
ingressClassName: "traefik"
hosts:
- host: <snip>
paths:
- path: "/"
ytproxy:
ingressClassName: "traefik"
hosts:
- host: <snip>
paths:
- path: "/"
postgresql:
enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment