Adding PeerTube.
This commit is contained in:
parent
72d7264a55
commit
c84a502b30
5 changed files with 96 additions and 0 deletions
9
kubernetes/apps/fediverse/kustomization.yaml
Normal file
9
kubernetes/apps/fediverse/kustomization.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
# Pre Flux-Kustomizations
|
||||
- ./namespace.yaml
|
||||
# Flux-Kustomizations
|
||||
- ./peertube/ks.yaml
|
7
kubernetes/apps/fediverse/namespace.yaml
Normal file
7
kubernetes/apps/fediverse/namespace.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: fediverse
|
||||
labels:
|
||||
kustomize.toolkit.fluxcd.io/prune: disabled
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: fediverse
|
||||
resources:
|
||||
# - ./helmrelease.yaml
|
||||
- ./postgresCluster.yaml
|
52
kubernetes/apps/fediverse/peertube/app/postgresCluster.yaml
Normal file
52
kubernetes/apps/fediverse/peertube/app/postgresCluster.yaml
Normal file
|
@ -0,0 +1,52 @@
|
|||
---
|
||||
apiVersion: postgres-operator.crunchydata.com/v1beta1
|
||||
kind: PostgresCluster
|
||||
metadata:
|
||||
name: peertube
|
||||
namespace: security
|
||||
spec:
|
||||
postgresVersion: 15
|
||||
patroni:
|
||||
dynamicConfiguration:
|
||||
synchronous_mode: true
|
||||
postgresql:
|
||||
synchronous_commit: "on"
|
||||
instances:
|
||||
- name: postgres
|
||||
replicas: 2
|
||||
dataVolumeClaimSpec:
|
||||
storageClassName: ceph-block
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
users:
|
||||
- name: peertube
|
||||
databases:
|
||||
- peertube
|
||||
options: "SUPERUSER"
|
||||
backups:
|
||||
pgbackrest:
|
||||
configuration:
|
||||
- secret:
|
||||
name: pgo-s3-creds
|
||||
global:
|
||||
archive-push-queue-max: 4GiB
|
||||
repo1-retention-full: "14"
|
||||
repo1-retention-full-type: time
|
||||
repo1-path: /peertube/repo1
|
||||
repo1-s3-uri-style: path
|
||||
manual:
|
||||
repoName: repo1
|
||||
options:
|
||||
- --type=full
|
||||
repos:
|
||||
- name: repo1
|
||||
schedules:
|
||||
full: "0 1 * * 0"
|
||||
differential: "0 1 * * 1-6"
|
||||
s3:
|
||||
bucket: "crunchy-postgres"
|
||||
endpoint: "erebor.hsn.dev"
|
||||
region: "us-east-1"
|
20
kubernetes/apps/fediverse/peertube/ks.yaml
Normal file
20
kubernetes/apps/fediverse/peertube/ks.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: cluster-apps-peertube
|
||||
namespace: flux-system
|
||||
labels:
|
||||
substitution.flux.home.arpa/enabled: "true"
|
||||
spec:
|
||||
interval: 10m
|
||||
path: "./kubernetes/apps/fediverse/peertube/app"
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: valinor
|
||||
wait: true
|
||||
dependsOn:
|
||||
- name: cluster-apps-external-secrets-stores
|
||||
- name: cluster-apps-crunchy-postgres-operator
|
Reference in a new issue