Created
November 4, 2024 18:39
-
-
Save IngwiePhoenix/fe271dc7b6578accab6e9754760ae4d2 to your computer and use it in GitHub Desktop.
Piped in k3s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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